Back to the overview

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.

Demo login. The members area uses one shared demo PIN, which the AiNa team gives out on request. It is not printed here because the demo is public. After five wrong attempts from one address, login pauses for ten minutes. A session lasts 12 hours; Log out is at the bottom of the sidebar.

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

  1. 9:00. A bakery owner asks for a pre-order site. An operator types the request into Claude Code and says "aina build".
  2. 9:05. AiNa asks four questions: pickup slots, payment, staff view, budget. The braindoc is written.
  3. 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.
  4. 10:15. Marketing copy and the ops runbook complete the set. The package is pushed to a private GitHub repo.
  5. 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

PartTechnologyWhere
Document engineAiNa skill: personas run by the user's Claude CodeThe user's machine
Live demo appFastAPI, Jinja2, HTMX, SQLiteAiNa hardware, port 5100, kept alive by PM2
Reverse proxyCaddy, path prefix /__ainaappAiNa hardware, port 8080
TunnelCloudflare tunnel (HTTPS)Public address to Caddy, re-pointed automatically
Public addressesVercel: static site, plus a rewrite-only project for the appaina / 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.

MethodPathAccessReturns
GET/healthzpublicok
GET/publicPitch page
POST/loginpublicForm field pin; 303 to /app or 401
POST/logoutmember303 to /
GET/api/packagesmemberJSON list: slug, title, summary, docs[], code[]
GET/app/packages/{slug}/docs/{file}memberRendered document
POST/app/ideasmemberForm 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.