Chat-to-app builder; apps created since 2026-05-13 use TanStack Start (older ones React + Vite) with Postgres via Lovable Cloud or Supabase.
Build Kit / AI app
How to build an AI-powered app for free
An app built around a model: a chat or form that streams answers, often over the user's own documents, with usage limits and a paid plan. Here is a stack that costs nothing to launch, open-source code to start from, and a plan you can paste into an AI builder.
Like chat with your PDFs, an AI writing assistant for real estate listings, a support bot trained on your docs.
Your Build Kit
AI app
An app built around a model: a chat or form that streams answers, often over the user's own documents, with usage limits and a paid plan.
- User accounts
- Payments
- AI features
- To launch
- $0
- After the free tiers
- ~$76/mo
- Build time with AI
- 20–60 h
Build it with
Browser builder for any JavaScript frontend with Node.js backends (Expo for mobile), plus Bolt Cloud hosting, databases and domains.
Generates Next.js apps with Tailwind and shadcn/ui and deploys them to Vercel.
Agent builds and hosts full-stack web apps with managed PostgreSQL built into every app.
The stack
Every pick has a free plan you can launch a business on, unless it says otherwise. Free tiers checked 2026-10-27.
App framework
TanStack Start MIT
Lovable builds new apps on it (React with server functions), so the code you export runs anywhere that hosts Node or Workers. React apps that need server code and deploy to Node, Workers or most serverless hosts.
Or: React + Vite, Next.js
Free and open source
Stays free
UI components
shadcn/ui MIT
The components AI tools know best: Lovable, v0 and Bolt use them by default, and the code is copied into your project. Copy-into-your-project React components built on Tailwind CSS and headless primitives, with a CLI and registry.
Free and open source
Stays free
Database
Supabase Apache-2.0
Lovable Cloud and Bolt Cloud run on Supabase, so the AI creates your tables and login for you; you can also connect your own Supabase project. A full Postgres backend (database, auth, storage, realtime, edge functions) for an MVP, especially one built with an AI app builder.
Free
- 500 MB database per project (shared CPU, 500 MB RAM)
- 5 GB egress + 5 GB cached egress per month
- 50,000 auth MAU
Free projects pause after 1 week of inactivity, and Free has no backups or point-in-time recovery.
Pro, from $25/mo per org incl. $10/mo compute credits (one Micro instance)
Login
Supabase Auth MIT
Comes with your Supabase project, and its row-level security rules use the logged-in user directly. Apps already on Supabase Postgres that want auth wired to row-level security.
Or: Clerk, Better Auth
Free
- 50,000 MAU (plus 50,000 third-party MAU)
- Social OAuth providers and anonymous sign-ins included
- Basic MFA included; phone MFA not included
It lives inside a Free Supabase project, so it pauses with the project after a week of inactivity.
Supabase Pro, $25/mo per org (100,000 MAU, then $0.00325/MAU)
Hosting
Cloudflare Workers Service
Free static files with no bandwidth cap, and commercial use is allowed. Publish on your AI builder while you build (its own custom domains need a paid plan), then connect the GitHub repo here to serve it on your domain for free. Full-stack apps and APIs on a global edge, with free static assets.
Workers Free
- Commercial use: no non-commercial clause found
- 100,000 requests/day (Error 1027 beyond that; resets 00:00 UTC)
- 10 ms CPU per request, 128 MB memory
The daily request cap is hard and each request gets only 10 ms of CPU, so heavy server rendering needs the $5 plan.
Workers Paid, $5/mo (10M requests included)
Email sending
Resend Service
Supabase’s built-in email is only for testing, so send login and app emails through your own domain. Developer-friendly transactional email for new apps.
Or: Brevo, Mailgun, Amazon SES
Free
- 3,000 emails/month, max 100/day
- 3 verified domains
- Marketing email to up to 1,000 contacts
The 100-per-day cap bites first, and received (inbound) emails count toward the quota too.
Pro $20/mo: 50,000 emails, no daily cap
Payments
Stripe Service
Lowest fees. If you sell worldwide and don’t want to handle VAT and sales tax, use a merchant of record instead (Polar or Paddle, or Stripe’s own Managed Payments for about 3.5% more). Most SaaS and online stores that want full control and the widest feature set.
Or: Polar, Paddle, Dodo Payments
Standard pay-as-you-go pricing
- US: 2.9% + 30¢ per successful domestic card charge
- +1.5% for international cards
- +1% when currency conversion is needed
Not a merchant of record by default: sales tax/VAT is your job unless you add Stripe Tax or Managed Payments (+3.5% per sale, digital products, Checkout/Payment Links only).
2.9% + 30¢ per US card charge, no monthly fee
AI model
Google Gemini API Service
Its free tier is enough to prototype. Move to a paid model (Claude Haiku costs cents for most apps) before real users send personal data, because Google may use free-tier prompts. Free prototyping with fast Flash models.
Or: OpenRouter, Groq, Claude API
Free tier
- Free: Gemini 2.5 Flash, Flash-Lite and Pro, 3.x Flash and Flash-Lite, Gemma 4
- Paid-only: 3.1 Pro Preview, Gemini 4 Argon
- Per-model RPM/RPD shown only in AI Studio; daily limits reset at midnight Pacific
Free-tier data is used to improve Google products and may be human-reviewed; apps for EEA, Swiss or UK users must use Paid Services.
Gemini 2.5 Flash-Lite $0.10 input / $0.40 output per 1M tokens
Vector search (for AI)
pgvector (Supabase or Neon) PostgreSQL
Keeps embeddings next to your data in the same database, at no extra cost. RAG and semantic search next to relational data.
Included on Supabase Free and Neon Free
- Supabase Free: 500 MB database
- Neon Free: 1 GB storage, 100 CU-hours per project/month
- HNSW index up to 2,000 dims (4,000 with halfvec)
A 1,536-dim vector takes about 6 KB, so free storage fills fast.
Free; pay your Postgres host
Analytics
PostHog MIT
Startups wanting analytics, replays, flags and experiments in one tool.
Free
- 1M analytics events/month
- 5,000 web session recordings (2,500 mobile)
- 1M feature-flag requests, 1,500 survey responses
One project only; the self-hosted 'hobby’ install is officially unsupported and unlikely to scale past a few hundred thousand events.
Pay as you go: $0 base, e.g. $0.00005/event above 1M; 6 projects, 7-year retention
Error alerts
Sentry FSL-1.1-ALv2
Catching and debugging frontend and backend errors with stack traces.
Or: UptimeRobot, Better Stack
Developer
- 1 user
- 5,000 errors, 5M tracing spans, 50 session replays per month
- 5 GB logs, 1 cron monitor, 1 uptime monitor
Only one user, so adding a teammate means the paid Team plan.
Team $26/mo billed yearly ($29 monthly): unlimited users, 50k errors
Start from open source
Worth studying before you prompt, or self-host one instead of building from scratch.
React component library for ChatGPT-style chat UIs (threads, streaming, tool UIs).
Full-featured chat app template with multiple models, chat history, file storage and auth.
Defaults to Vercel AI Gateway (needs AI_GATEWAY_API_KEY when not on Vercel) plus Neon and Vercel Blob.
Self-hosted multi-provider AI chat with agents, file search, code execution and multi-user auth.
All-in-one AI app for chatting with documents (RAG), agents and multiple LLM providers.
UI kit and libraries
Copy-into-your-project React components built on Tailwind CSS and headless primitives, with a CLI and registry.
Utility-first CSS framework.
The official component/template collection, Tailwind Plus, is paid.
Open-source icon set with packages for React and other frameworks.
Self-host open-source fonts as npm packages.
Font files keep their original licenses (mostly SIL OFL).
Performant form state and validation for React.
TypeScript-first schema declaration and validation.
Hand-drawn-style whiteboard app and embeddable React component.
Collaborative interface design, prototyping and whiteboarding tool.
AI skills and MCP servers
Guides and connections that make your AI builder produce better code.
Plan the product and key user action first, build UI one component at a time, use real copy and style keywords, ask questions in Plan mode.
- Bolt: Prompt effectivelyService
Plan the app and first prompt, use Enhance prompt, and make small one-at-a-time changes.
Describe the product surface, context of use, and constraints and taste (2025-12-15); the Academy guide adds patterns and starter prompts.
- AGENTS.mdMIT
Open 'README for agents’ format stewarded by the Agentic AI Foundation (Linux Foundation); used by 60k+ open-source projects.
Add an AGENTS.md file at the repository root
The plan
- 1
Write down the plan
30 minutes- Name the people who use it and the one job it does for them.
- List the screens: A chat or form UI that streams the answer; A server-side call to the model, with the system prompt kept on the server; Upload documents and answer from them (find the relevant chunks first).
- Sketch them on paper or in Excalidraw. Rough is fine.
- Download this kit as AGENTS.md and keep it in your project: it’s the brief your AI tool reads first.
- 2
Set up the foundation
Day 1- Start a new Lovable project and paste the prompt below.
- Connect Supabase from Lovable’s integrations, then turn on email and Google login.
- Publish it and open it on your phone to check it works.
- Connect the project to GitHub so you own the code.
Prompt for Lovable
Build an AI-powered app: an AI-powered app (chat with your PDFs) The main screens: A chat or form UI that streams the answer; A server-side call to the model, with the system prompt kept on the server; Upload documents and answer from them (find the relevant chunks first). Use Supabase for the database and login (email and Google). Turn on row-level security on every table so people only see their own data. Use shadcn/ui components, a clean light design, and make every screen work on a phone. Don’t add payments yet. Start with sample data so I can click through it.
- 3
Build the core
Days 2–7- A chat or form UI that streams the answer
- A server-side call to the model, with the system prompt kept on the server
- Upload documents and answer from them (find the relevant chunks first)
- Usage limits per user and a paid plan for more
- Save and reopen past conversations
Prompt for Lovable
Now build these, one at a time, and let me test each before the next: 1. A chat or form UI that streams the answer 2. A server-side call to the model, with the system prompt kept on the server 3. Upload documents and answer from them (find the relevant chunks first) 4. Usage limits per user and a paid plan for more 5. Save and reopen past conversations For AI features, call Google Gemini API from the server only, never from the browser, and limit how often each user can call it.
- 4
Take payments and send emails
Week 2- Add Stripe checkout.
- Mark orders as paid only from the payment webhook, never from the browser.
- Send emails through Resend, and add its DNS records (SPF and DKIM) so they don’t land in spam.
Prompt for Lovable
Add payments with Stripe. Use test mode first. Create a webhook handler on the server that verifies the signature and marks orders paid; never trust the browser for this. Send receipts and account emails with Resend from a server function.
- 5
Get it ready to launch
Week 2–3- Add PostHog and track the one action that means it’s working (a booking, a sale, a sign-up).
- Add Sentry so errors reach you before users complain.
- Go through the launch checklist below.
- Add a privacy policy and terms, then connect your own domain.
- Show it to ten people who have the problem, and watch them use it.
Prompt for Lovable
Review the whole app for security and launch problems before I go live: - every table has row-level security (or server-side checks) and I can’t read another user’s data, - no secret keys in the browser bundle or the repo, - inputs are validated on the server, and sign-up, login and forms are rate-limited, - error pages and empty states exist for every screen, - it works on a phone and with the keyboard. List what you find, fix the serious ones, and tell me what’s left.
Before you launch
- Row-level security (or server checks) on every Supabase table, tested with two accounts.
- No secret keys in browser code or in git. Rotate any that leaked.
- Server-side validation for every form, plus rate limits on sign-up and login.
- Payments confirmed by webhook only, and tested end to end in test mode.
- A per-user limit and a monthly spending cap on the AI API.
- Your sending domain verified (SPF, DKIM), so emails reach the inbox.
- Backups: know how to restore your data (free database plans often have none).
- Privacy policy, terms, and a way for people to contact you.
- Error alerts on, and an uptime check on the home page.
- Tested on a phone, with a keyboard only, and with a slow connection.
Risks to plan for
- Model costs grow with usage: cap usage per user and price above your cost.
- Wrong answers: show sources and let users report problems.
- Keep API keys on the server and rate-limit to stop abuse.
Free tiers and prices were checked by hand on 2026-10-27. They change often, so each pick links to its own site. Compare every option
What an AI-powered app usually needs
- User accounts
- AI features
- Payments