brown7477 / full-stack-ai

Home Page:https://full-stack-ai-one.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Full stack AI

Build a full stack Next.js app from an AI prompt.

Demo Video

Full Stack AI demo

What It Does

Full Stack AI, fsai, is a CLI that uses AI to build a full-stack app for you.

The AI will:

  • Generate a Next.js app with TypeScript and Tailwind
  • Add shadcn/ui for frontend components
  • Generate pages to create/update/delete data
  • Generate a Prisma/Drizzle schema
  • Add auth via NextAuth.js with GitHub/Discord/Google/Apple log in supported
  • Add account screen to change settings
  • Add Stripe for payments
  • Add Resend to send transactional emails
  • Generate CRUD APIs
  • Add light/dark mode

You can also enable the following by cloning the repo:

  • Drizzle instead of Prisma
  • Clerk/Lucia auth instead of NextAuth.js
  • npm/yarn/bun instead of pnpm
  • Other databases instead of Postgres

To enable these additional features today run the CLI locally, and update actions.ts. We'll release full support for these soon.

We've also been experimenting with a more general AI coder called Aleph0 which is in beta.

Getting Started

export OPENAI_API_KEY=...
npx fsai gen "Build a clone of Twitter called StackPrompt where people prompt instead of tweet. Allow users to follow one another and to like prompts. Use GitHub for log in. Charge users a monthly fee for premium functionality."

Then cd into the newly created app folder, set the environment variables and in the .env file and run npm run dev to see your app live in the browser at http://localhost:3000.

You can install the package globally and run as follows:

pnpm i -g fsai
export OPENAI_API_KEY=...
fsai gen "Build a clone of Twitter called StackPrompt where people prompt instead of tweet. Allow users to follow one another and to like prompts. Use GitHub for log in. Charge users a monthly fee for premium functionality."

Under the hood this project uses Kirimase.

Run locally

If you want to clone the repo and run it locally:

pnpm i
export OPENAI_API_KEY=...
npx tsx src/index.ts gen "Build a clone of Twitter called StackPrompt where people prompt instead of tweet. Allow users to follow one another and to like prompts. Use GitHub for log in. Charge users a monthly fee for premium functionality."

About

https://full-stack-ai-one.vercel.app


Languages

Language:TypeScript 96.5%Language:CSS 2.6%Language:JavaScript 1.0%