A playful AI companion built with modern web technologies. Features real-time streaming responses, intelligent rate limiting, and a polished cyberpunk-inspired UI.
$state, $derived)# Clone
git clone https://github.com/MaDrCloudDev/flirtatiousAI.git
cd flirtatiousAI
# Install
pnpm install
# Configure
echo "HF_ACCESS_TOKEN=your_token_here" > .env
# Run
pnpm dev
Get your token from Hugging Face Settings (requires inference.serverless.write permissions).
src/
├── lib/
│ ├── components/
│ │ └── Toast.svelte # Toast notification system
│ ├── notifications.svelte.ts # State management for toasts
│ └── types.ts # Shared TypeScript types
├── routes/
│ ├── api/flirt/
│ │ └── +server.ts # Streaming API endpoint
│ ├── +layout.svelte # Root layout
│ └── +page.svelte # Main chat interface
├── app.css # Global styles
└── app.html # HTML template
| Command | Description |
|---|---|
pnpm dev |
Start development server |
pnpm build |
Build for production |
pnpm preview |
Preview production build |
pnpm check |
Type check |
pnpm format |
Format with Prettier |
pnpm lint |
Check formatting |
Request:
{ "context": "Hi, I'm Alex..." }
Response: Server-Sent Events stream with JSON chunks
Rate limited to 3 requests per 5 minutes per IP.
MIT