AiNa documentation
Everything you need to use the live demo at ainaapp.mytechskill.com and to understand how it works.
1. User manual
Signing in
Open ainaapp.mytechskill.com and choose Members login. Enter the demo PIN.
Overview
Counts of packages, documents, generated code files and queued ideas, with the latest packages and ideas.
Packages
Each package is one AiNa run. Open one to see its documents (click to read, fully rendered) and the list of code files it generated.
Idea queue
Describe what an app should do, who it is for, and any must-haves. Your idea joins the queue as queued. The AiNa team turns queued ideas into packages and marks them built. Nothing you type is run automatically.
Roadmap
What is shipped in the demo and what is planned next.
2. A day with AiNa
- 9:00. A bakery owner asks for a pre-order site. An operator types the request into Claude Code and says "aina build".
- 9:05. AiNa asks four questions: pickup slots, payment, staff view, budget. The braindoc is written.
- 9:30. Intent, PRD and dev notes follow, each approved at its gate. The FastAPI starter is seeded and extended with orders and pickup slots, then run and checked.
- 10:15. Marketing copy and the ops runbook complete the set. The package is pushed to a private GitHub repo.
- 10:20. The package appears in the live demo gallery. The owner signs in with the PIN, reads the PRD, and queues a second idea for their café.
3. Technical architecture
| Part | Technology | Where |
|---|---|---|
| Document engine | AiNa skill: personas run by the user's Claude Code | The user's machine |
| Live demo app | FastAPI, Jinja2, HTMX, SQLite | AiNa hardware, port 5100, kept alive by PM2 |
| Reverse proxy | Caddy, path prefix /__ainaapp | AiNa hardware, port 8080 |
| Tunnel | Cloudflare tunnel (HTTPS) | Public address to Caddy, re-pointed automatically |
| Public addresses | Vercel: static site, plus a rewrite-only project for the app | aina / ainaapp .mytechskill.com |
browser → ainaapp.mytechskill.com (Vercel rewrite)
→ https://<tunnel host>/__ainaapp/… (Cloudflare tunnel)
→ Caddy strips /__ainaapp → 127.0.0.1:5100 (FastAPI)
Security choices: the session cookie is HTTP-only, SameSite=Lax and Secure over HTTPS, and is signed with a server secret. Document names are matched against a whitelist, so no file outside a package can be read. Submitted ideas are stored as plain text and escaped on display.
4. API reference
All member routes need a valid session; without one they redirect to /login.
| Method | Path | Access | Returns |
|---|---|---|---|
| GET | /healthz | public | ok |
| GET | / | public | Pitch page |
| POST | /login | public | Form field pin; 303 to /app or 401 |
| POST | /logout | member | 303 to / |
| GET | /api/packages | member | JSON list: slug, title, summary, docs[], code[] |
| GET | /app/packages/{slug}/docs/{file} | member | Rendered document |
| POST | /app/ideas | member | Form fields title (≤120), audience, description (≤2000); HTML row fragment |
GET /api/packages
[{"slug":"aina-website","title":"AiNa App Factory: website and live demo",
"docs":["01-braindoc.md","03-ideation-prd.md","04-dev-notes.md","09-ops-runbook.md"],"code":["Dockerfile","README.md","app/main.py", …]}]
5. Run AiNa yourself
AiNa is a Claude Code skill. Install it into ~/.claude/skills/aina-skill/, open Claude Code in an empty folder and say "aina build" followed by your idea. Output lands in ./aina-out/<slug>/ with docs/, app/ and a README. Set AINA_OUTPUT_MODE to folder, zip or git-repo.