Aiyu
Health Warn
- License — License: NOASSERTION
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Developer portfolio & CMS built with Rust (Axum), Vite, React 19, Tailwind 4, and SQLite. Admin panel, 52 themes, Gemini AI, LaTeX resume studio, blog, gallery, cron scheduler, and MCP server.
🌟 Aiyu — Developer Portfolio & CMS
A fast, self-contained developer portfolio and CMS built with Rust (Axum), Vite, React 19, Tailwind CSS 4, and SQLite — engineered for sub-10 ms responses and minimal memory overhead with an integrated Admin Panel, Gemini AI Core, LaTeX Resume Studio, Cron Scheduler, and MCP Server.
[!TIP]
Live Site: aiyu.co.in · Docs: Wiki · Quick Start · Full Benchmarks
🏗️ Architecture
flowchart LR
Client["Browser / AI Client"] --> Nginx["Nginx Proxy"]
Nginx --> Server["aiyu-server (Rust + Axum)"]
Server --> SPA["Vite + React 19 SPA"]
Server --> DB["SQLite (aiyu.db, WAL + FTS5)"]
Server --> Media["Native Rust WebP / HEIC Uploads"]
Server --> Jobs["60s Cron Engine & HTTP MCP"]
⚡ Performance
Engineered with a native Rust + embedded SQLite runtime for predictable low latency and near-flat memory under heavy load. Measured on fresh --no-cache production Docker builds with an identical 80 MB dataset (full benchmark report):
| Metric | Before (Next.js + Postgres) | Now (Rust + SQLite) | Improvement |
|---|---|---|---|
| Docker App Image | 546 MB (+ ~275 MB Postgres) | 213 MB (self-contained) | -61% (-74% stack) |
| Idle / After 5x Backups RSS | 282 MB / 613 MB (+ 109 MB pg) | 21 MB / 51 MB | -93% / -92% |
| 80 MB Backup Export / Restore | 2.74 s / 3.42 s | 0.81 s / 1.60 s | 3.4x / 2.1x faster |
/ Payload & p50 Latency |
1,089 KB · 41.7 ms | 54 KB · 6.1 ms | -95% · 6.8x faster |
/blogs Payload & p50 Latency |
5,698 KB · 205.9 ms | 389 KB · 45.9 ms | -93% · 4.5x faster |
✨ Key Features
- AI Neural Core (Gemini): Generate 64+ token light/dark themes, project copy, and dynamic subtitles from the admin panel.
- Resume Studio: Full-screen LaTeX resume IDE with live PDF preview, visual/code modes, snapshots, and AI job-tailoring.
- Task Scheduler & Encrypted Secrets: 60s Rust cron engine with visual builder, webhook jobs, image optimization, and AES-256
$envsecrets. - Dual-Route Notifications: Forward contact leads to n8n webhooks and push channels (Discord, Telegram, ntfy) simultaneously.
- 52+ Live Themes: One-click switching (Dracula, Tokyo Night, Nord, Catppuccin, etc.) with live token editing.
- Blog & Masonry Gallery: Markdown editor with FTS5 search, Notion sync API, native Rust WebP conversion, and HEIC upload support.
- MCP Server & Ops Dashboard: Built-in HTTP Model Context Protocol server, API docs, live host health metrics, and AI log analysis.
🎬 Watch the Story
Scroll-driven life story recorded from the production build (pnpm record, 2× speed):
| Desktop | Mobile |
|---|---|
![]() |
![]() |
| Module | Desktop (1920x1080) | Mobile (430x932) |
|---|---|---|
| Home | ![]() |
![]() |
| About | ![]() |
![]() |
| Projects | ![]() |
![]() |
| Apps | ![]() |
![]() |
| Blogs | ![]() |
![]() |
| Gallery | ![]() |
![]() |
| GitHub | ![]() |
![]() |
| Contact | ![]() |
![]() |
| Admin | ![]() |
![]() |
🚀 Quick Start
Docker (Recommended)
Runs in a hardened, read-only Debian-slim Rust + Vite container (213 MB) with embedded SQLite (/app/data/aiyu.db) behind Nginx — no external database needed.
git clone https://github.com/aiyu-ayaan/Aiyu.git && cd Aiyu
cp .env.example .env
# Set ADMIN_USERNAME, ADMIN_PASSWORD, and a generated JWT_SECRET in .env:
node -e "console.log('JWT_SECRET=' + require('crypto').randomBytes(64).toString('hex'))"
pnpm docker:up # prebuilt image (docker-compose.yml)
# or: pnpm docker:up:dev (build locally via docker-compose.local.yml)
pnpm docker:verify # verify non-root, read-only rootfs, cap drops
Open Portfolio at http://localhost and Admin at http://localhost/admin.
[!NOTE]
Upgrading from PostgreSQL? Follow development/docs/SQLITE_CUTOVER.md to migrate and hash-verify viaaiyu-server import-postgres.
Local Development
Prerequisites: Node 24+, pnpm, stable Rust toolchain (cargo), and libheif1 (optional, for HEIC uploads). No external database is needed — SQLite (data/aiyu.db) is created, migrated, and seeded automatically on first start.
git clone https://github.com/aiyu-ayaan/Aiyu.git && cd Aiyu
cp .env.example .env # set JWT_SECRET, ADMIN_USERNAME, ADMIN_PASSWORD
pnpm install
pnpm dev # starts Vite (:3000) + debug aiyu-server (:8080)
- Site:
http://localhost:3000(hot-reloads on save; override ports withPORTandRUST_PORT) - Admin Panel:
http://localhost:3000/admin/login - Local Production Build:
pnpm build && pnpm start(serves release binary +web/distonhttp://localhost:8080) - Backup / Restore: Export or import full site ZIPs (DB + uploads) directly from Admin → Database (
/api/admin/export&/api/admin/import).
.env)
| Variable | Required | Purpose |
|---|---|---|
JWT_SECRET |
Yes | Signs admin session tokens (64-byte hex recommended) |
ADMIN_USERNAME / ADMIN_PASSWORD |
Yes | Admin panel login credentials |
NEXT_PUBLIC_BASE_URL / SITE_URL |
Optional | Canonical URL for SEO, sitemap, and OpenGraph tags |
NEXT_PUBLIC_AUTHOR_NAME |
Optional | Default author name in metadata |
NEXT_PUBLIC_N8N_WEBHOOK_URL |
Optional | Webhook endpoint for contact form routing |
GITHUB_AUTH_ENABLED / GITHUB_CLIENT_* / GITHUB_ALLOWED_ID |
Optional | GitHub OAuth sign-in for Admin |
APP_PORT / NGINX_HTTP_PORT |
Optional | Port overrides for Docker/local runs |
📁 Project Structure
├── server/ # Rust (Axum) API, SPA/static serving, SQLite migrations, cron & MCP
├── web/ # Vite 8 config, React Router 7 entry, route modules
├── src/ # Shared React 19 UI components, contexts, hooks, styles, libs
├── scripts/ # Dev runner, security verification, screenshots, k6 & perf bench
└── docs/ # Guides, architecture notes, and benchmark charts
🧪 Tests, Checks & Benchmarks
pnpm test # Vitest unit & component tests
pnpm test:ui # Playwright end-to-end tests
pnpm server:test # Rust unit & integration tests
pnpm lint && pnpm web:typecheck
# Memory + latency benchmark against a running server:
node --env-file=.env scripts/perf/bench.mjs --url http://localhost:8080 --pid <server-pid> --backups 5
🛠️ Tech Stack & Docs
- Backend: Rust (Axum), Tokio, SQLx, SQLite (WAL + FTS5), native
image/libwebp-sys/libheif1, JWT, AES-256-CBC - Frontend: Vite 8, React 19, React Router 7, Tailwind CSS 4, Framer Motion, GSAP
- Security: Non-root container,
read_onlyrootfs,noexec /tmp,cap_drop: ALL, rate limiting, CSP headers - Wiki: Quick Start · Admin Manual · Deployment · Security · API Docs
Source-Available (View & Learn Only) — All Rights Reserved (LICENSE) • Built by Aiyu Ayaan.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found



















