a minimalist ai-powered portfolio template that creates an interactive ama (ask me anything) experience
check out the live demo to see my own version in action.
- interactive ai chat interface
- customizable ai personality
- modern, minimalist design
- content moderation built-in
- mobile-responsive layout
- deploy anywhere (vercel, custom server, etc.)
- easy to customize and extend
- clone and install:
git clone https://github.com/yourusername/aifolio
cd aifolio
npm install- create
.envfile:
GROQ_API_KEY=your_groq_api_key_here
ALLOWED_ORIGINS=*
NODE_ENV=development
PORT=3000- run locally:
# using express (works everywhere)
npm run dev
# or using vercel
npm run vercel-dev- fork this repo
- connect to vercel
- add environment variables
- ship
edit the system prompt in api/chat.js to create your own ai personality. the current template uses satoshi nakamoto as an example.
you can choose different groq models by changing the model parameter in api/chat.js:
model: "llama3-8b-8192", // fast, good for most uses
// or
model: "mixtral-8x7b-32768", // more capable, longer context
// or
model: "gemma-7b-it", // balanced performance- modify
styles/style.cssfor visual changes - update
index.htmlfor layout changes - replace
og-image.jpgandfavicon.svgwith your own assets
- cors protection (configurable in
.env) - content moderation (built into the ai prompt)
- rate limiting (add your own in
server.js)
| variable | description | default |
|---|---|---|
GROQ_API_KEY |
your groq api key | required |
ALLOWED_ORIGINS |
cors allowed origins | * |
NODE_ENV |
environment | development |
PORT |
server port | 3000 |
aifolio/
├── api/
│ └── chat.js # ai chat endpoint
├── styles/ # css styles
├── scripts/ # frontend js
├── server.js # express server
├── index.html # main page
├── vercel.json # vercel config
└── package.json # dependencies
# install dependencies
npm install
# run with express
npm run dev
# run with vercel
npm run vercel-dev# deploy to vercel
npm run deploy
# or run on your server
npm startcontributions welcome! please feel free to submit a pull request.
originally crafted by me, efeuc.uk, now open for all.
mit - see the license file for details.
got questions? open an issue or check the discussions.