Documentation
For members of the AiNa site, for operators who fulfil build requests, and for developers who want to run AiNa themselves.
User manual
The members app at ainaapp.pharmtech.me has four areas: the Gallery of builds, each build's stage documents, the Request a build form, and My requests. Operators also see an Operator queue.
Signing in
- Open ainaapp.pharmtech.me.
- Choose Continue with Google and pick your Google account.
- You land on the Gallery. Your account menu is at the top right; use it to sign out.
Reading a build
Each card in the Gallery is one complete AiNa build. Real build marks a build produced by an actual AiNa run (this site's own build is the first); Sample marks a synthetic example written in AiNa's exact document structure.
- Open a card to see the build's intent and its stage tabs (on phones, a Stage picker).
- Step through the stages in order: Braindoc, Intent and SOW, PRD, Dev notes, and the reviews that follow.
- Use Request a build like this to start a request with that build's idea filled in.
Requesting a build
Describe what you want built (at least 20 characters), who it is for, and any must-have features. Your sign-in email is filled in as the contact address. After sending, the request appears in My requests as Queued. Status moves through Building to Done, and a Open result button appears when the operator attaches the result link. Each member can send up to 20 requests a day.
For operators
Operators are the email addresses listed in the app's AINA_OPERATOR_EMAILS setting. They see the Operator tab: every request, newest first, with a status picker, a result link field (https only) and a note to the member. Saving updates what the member sees on their next refresh (My requests also refreshes itself every 30 seconds).
A day in the life
Priya, a solo founder, has an idea for a booking tool for her partner's pilates studio.
- Morning: she reads the overview, signs in with Google, and opens the Studio Bookings sample. The braindoc names the exact pain she has seen: double-booked evening classes.
- She reads the PRD's acceptance criteria and realises she also needs drop-in bookings. She presses Request a build like this and adds that as a must-have.
- Afternoon: the operator picks up the request, sets it to Building, and runs AiNa locally with her intent.
- Evening: the status turns Done with a link to a private repository holding her full document set and a working app.
Technical architecture
| Part | What it is |
|---|---|
| Overview site | Static HTML (this page and the overview), self-contained, served by Vercel project aina at aina.pharmtech.me. |
| Members app | React 19, TypeScript and MUI on Vite, served by Vercel project ainaapp at ainaapp.pharmtech.me with single-page routing. |
| API | Vercel Node functions in app/api/ using Web-standard Request/Response handlers. The same files run locally through a Vite dev middleware. |
| Sign-in | Clerk with Google. The browser holds the session; every API call sends the session token, and the server verifies it and looks up the email itself. |
| Storage | Upstash Redis over REST: req:{id} JSON documents plus sorted-set indexes per user and overall. An in-memory fallback is used only when no database is configured. |
| Content | Stage documents are markdown files bundled into the app and rendered without raw HTML. |
Security choices: identity never comes from the request body; operator actions are allow-listed on the server; production refuses API calls when sign-in is not configured instead of falling back to an open mode; responses carry nosniff, frame-deny and strict referrer headers.
API reference
All routes return JSON. Errors look like {"error": "code", "message": "human text"}, with a fields map on validation errors. Authenticated routes need Authorization: Bearer <Clerk session token>.
| Route | Who | Does |
|---|---|---|
GET /api/health | Public | { ok, store: "upstash" | "memory", auth: bool } |
GET /api/me | Member | { email, operator } |
GET /api/requests | Member | Your requests, newest first. Operators may add ?all=1. |
POST /api/requests | Member | Create a queued request. Body: intent (20-2000), audience, must_haves, email. |
PATCH /api/requests?id= | Operator | Set status, result_url (https), operator_note. |
POST /api/requests
{ "intent": "A booking app for small yoga studios with waitlists", "audience": "studio owners" }
201 { "request": { "id": "k3J9...", "status": "queued", "created_at": "2026-11-28T10:00:00Z", ... } }
| Status | Meaning |
|---|---|
400 invalid | A field failed validation; see fields. |
401 unauthenticated | Missing or expired session. |
403 forbidden | Operator-only action. |
413 too_large | Body over 8 kB. |
429 rate_limited | More than 20 requests today. |
| 503 | auth_not_configured or store_unavailable; safe to retry later. |
Run AiNa yourself
npx aina-skill@latest # installs into ~/.claude/skills/aina-skill
# restart Claude Code, then:
/aina-skill # describe what to build
You need Claude Code, Node and python3. Output lands in aina-out/<slug>/ with docs/ and app/. Choose AINA_OUTPUT_MODE = folder, zip or git-repo. The engine is your own Claude session by default; set AINA_ENGINE=openrouter with an OpenRouter key to offload the analyst personas.
FAQ
Do I need an API key?
No. Your Claude Code session is the engine.
Which stacks does it build?
Two golden stacks by default: FastAPI with HTMX for backend-heavy apps, and Next.js for frontend-heavy apps. You can steer it to another stack in your request.
How long does a build take?
Typically 20 to 60 minutes of your Claude session, depending on how many stages you include.
Is my data used anywhere?
Running AiNa sends nothing to us. On this site, your request text and email are stored only to fulfil the request.