Building iR Labs: a Studio Site Where AI Agents Build
Most small software projects begin with a vague message: "I need an app that does something like this." The client knows the problem but not how to write it down, and the architect spends the first week turning a conversation into a requirements document. I wanted a way to shorten that step, and to let people describe what they need in their own language. That is the problem iR Labs tries to address, and this post covers how I built the website for it.
iR Labs is a one-architect software studio where a team of AI agents turns a client's requirement into a reviewed PRD and then into working software. The tagline is "Describe it in your language. Agents build it." The repo I am writing about is the website, which currently ships Phase 1 of my plan.
Why I built it
I build web apps, games, AI tools and Android apps as side projects, and I work as a software architect. The name iR Labs fits the family of names I already use: iR News, iRStudios, irai and irEV. It is short, easy to say in English and in Telugu, and "Labs" signals an experimental studio where agents build things.
Two things mattered to me. First, a person should be able to explain a project in English or Telugu without translating in their head. Second, I stay in the loop as the human reviewer, so the site needed to make that arrangement visible rather than pretend the agents work alone.
What it does
Phase 1 includes these pieces:
- Landing page with a live office scene. It shows the client, me as the human in the loop, and the agents.
- A
/teampage introducing the agents. - A
/startintake where an agent named Echo asks the client a fixed set of questions, keeps asking "anything more?", and then shows a summary to submit. - An English / Telugu toggle across the site.
- A record shelf at
/recordsholding my projects, moved over from the Work section of iramesh.com. Each project is a record on one of four shelves: AI and LLM, Mobile Apps, Web and Tools, Media and Play.
On the record shelf, you pull a record out and it slides onto a deck, spins, and reads the project aloud with live captions. The voice is a pre-recorded neural voice (Kokoro-82M), or the browser's own speech engine if a recording is missing or its text no longer matches.
How it works
Stack
The front end is Vite, React and TypeScript, with React Router and Framer Motion. I chose a static single-page app because Phase 1 needs no server-side routes. That keeps deployment simple and performance good. Next.js and Supabase are planned for Phase 2, when API routes become necessary. The lesson I would pass on: do not adopt a full-stack framework before you have a route that needs a server.
Data-driven scenes and agents
The office animation is Framer Motion plus CSS on SVG, driven by a file, src/data/timeline.json. The scene respects prefers-reduced-motion. Agents are defined in one config, src/data/agents.ts, which feeds both the hero and the /team page. Putting the agents in a single source means I change a name or role once and both places update.
Language support
Translations live in src/i18n.tsx. Noto Sans Telugu is self-hosted through Fontsource, so Telugu text renders properly without depending on a third-party font request.
The intake pipeline
The intake questions are defined in src/data/intake.ts, in both languages. When the client submits, POST /api/submit (implemented in server/submit.ts) does the following:
- Validates the answers.
- Rate-limits by IP.
- Builds the PRD with
server/prd.ts, which produces a self-contained HTML file. - Sends a summary plus the PRD file to my Telegram through
server/telegram.ts.
During npm run dev, the same handler is served by a small plugin in vite.config.ts, so local behaviour matches production without a separate server.
Deployment
The site is live at labs.iramesh.com on Cloudflare Workers: static assets plus a small Worker for /api/submit. Cloudflare Workers Builds deploys every push to main, running npm run build and then npx wrangler deploy. The file wrangler.jsonc attaches the custom domain, so Cloudflare creates the DNS record and certificate. Security headers come from public/_headers. The Worker in worker/index.ts handles the API route and serves the static site for everything else.
The Worker needs two secrets, a Telegram bot token and my chat ID, set with wrangler secret put. The repo also keeps a vercel.json and an api/submit.ts so it still works if imported into Vercel, where the same two values are added as Sensitive variables.
Secrets handling
Locally, secrets live in the macOS Keychain under the service name ir-labs, never in files or git. A small script, scripts/secrets.sh, can set a value with hidden input, verify the Telegram token (printing only the bot username), and run a command with the secrets in its environment. It avoids .env files for anything sensitive.
Adding records and narration
To add a project, I append an entry to src/data/records.ts with its shelf, title, text, tags, links, and optionally a hand-written narration. It appears on the shelf immediately and is read by the browser voice. To give it the neural voice, I run npm run dev, then uv run scripts/narrate.py (which needs ffmpeg). The script records only new or changed projects and updates public/audio/work/manifest.json. The fallback to the browser voice when the text no longer matches the recording is a small design choice I like: stale audio never contradicts the caption.
What I learned
- Keep one source of truth per concept. Agents, intake questions and records are each one data file. The UI reads them, so adding content does not mean touching components.
- Match dev and production handlers. Serving the real submit handler through a Vite plugin meant I tested the actual code path locally.
- Start static, add a server when forced to. A single Worker for one API route was enough, and the rest stayed plain static assets.
- Design a fallback for generated assets. Pre-recorded audio can drift from text. Detecting a mismatch and falling back to browser speech keeps the experience correct.
- Treat secrets as an operational habit. Using the Keychain and platform secret stores removes the temptation to leave a token in a file.
Try it
You can see the current build at https://ir-labs-ir.vercel.app. Switch the language toggle to Telugu, open the /start preview, and pull a record from the shelf to hear it narrated.
Conclusion
iR Labs Phase 1 is a small, static-first site with one server route, built so that adding agents, questions or projects is a data change. Phases 2 to 4 are laid out in the repo's plan document. If you have a requirement you would like to describe, or questions about any of the choices above, write to hello@iramesh.com.