Skip to main content
AI tutorials

Build and Self-Host Full-Stack Next.js Apps with an Open-Source AI App Builder

Learn how to install the open-source AI app builder on Windows, configure its required API key, generate a full-stack application, edit it visually or in code, manage data, connect GitHub and domains, and prepare the builder for secure production deployment.

Build and Self-Host Full-Stack Next.js Apps with an Open-Source AI App Builder

What This AI App Builder Does

This open-source web application transforms a plain-language prompt into a complete full-stack Next.js project. Instead of manually assembling a frontend, backend, database, hosting environment, authentication flow, and deployment pipeline, you describe the application you want and follow its construction through a live browser preview.

Open-source AI app builder interface

Generated applications are real Next.js projects rather than locked, no-code artifacts. You can inspect and modify every file, connect the project to GitHub, attach a custom domain, and deploy it to Vercel, Docker, or another Node.js environment.

The builder is also designed for multi-tenant use. Projects run in isolated sandboxes and can be separated by user, team, or customer, making the project suitable both for personal development and for embedding app generation inside another product.

Key Features

Prompt-to-application generation

Enter an application idea in natural language and the AI generates a full-stack Next.js application. A live preview refreshes while the agent works, allowing you to inspect progress without waiting for a separate build-and-deploy cycle.

Visual and source-code editing

You can select an element in the preview and change properties such as text or color. The builder writes the modification back to the relevant source line and rebuilds the project automatically. For deeper changes, the integrated Monaco editor provides access to every generated file with an editing experience similar to Visual Studio Code.

Built-in project infrastructure

  • A dedicated SQL database for each project, with separate development and live environments.
  • Tools for browsing records, running queries, inspecting schemas and migrations, and taking backups.
  • Project controls for analytics, limits, environment variables, secrets, scheduled jobs, runtime logs, mobile builds, payments, and settings.
  • Hosting, SSL, CDN support, and a deployment pipeline for generated applications.
  • Isolated sandboxes that wake on demand when a project has been idle.

Versioning and portability

Every AI build creates a restorable checkpoint. The diff viewer identifies what changed between versions, and previous states can be restored when a generated update does not produce the intended result. Projects can also be duplicated or transferred using an import code.

Integrations and deployment options

  • Bidirectional GitHub synchronization for pushing and pulling changes.
  • Figma frame links that the agent can use as a design source.
  • Custom domains with guided DNS configuration and HTTPS support.
  • Deployment to Vercel, Docker, or a standard Node.js environment.
  • White-label and multi-tenant foundations for customer-facing products.

Technology Stack

The builder uses Next.js 16 and React 19, including the App Router, server components, and streaming. TypeScript supplies end-to-end type safety, while Tailwind CSS 4 provides the styling system.

Monaco powers the browser-based code editor. The interface also uses Radix UI, Lucide icons, Sonner notifications, and a cmdk command palette. The dependency surface is intentionally lean: the project does not bundle authentication, payment, or AI SDKs and instead communicates through a single API key.

Installation Requirements

The documented installer targets Windows and has the following requirements:

  • Operating system: Windows 10 or Windows 11.
  • Shell: PowerShell 5.1 or PowerShell 7 or newer.
  • Network: Internet access for downloading the installer script and required project files.
  • Privileges: A standard user account is sufficient.

The README does not provide a manual package installation command or a list of installer prompts. Use the project's published PowerShell installer page and follow the instructions displayed there.

Set Up the Builder

  1. Confirm your PowerShell version. Open PowerShell and verify that your environment meets the minimum requirement.
  2. Open the installer page. Visit the PowerShell installer link provided by the project.
  3. Review the script before running it. As with any remotely downloaded PowerShell script, inspect its contents and confirm that the source is the expected project publisher.
  4. Run the documented installation process. Follow the current instructions on the installer page rather than relying on an unlisted command.
  5. Configure the API key. Building applications requires an API key. The README states that this is supplied through one environment variable, but it does not name that variable. Use the name and value format shown by the installed project's configuration documentation.
  6. Start the web application. Use the startup procedure supplied by the installer or local project documentation, then open the displayed local address in your browser.

The source code is free to run, but AI builds consume API credits. Initial credits are available for free according to the README, with charges applying as usage increases.

Create Your First Application

1. Start with a focused prompt

Describe the intended users, main screens, data, and expected actions. A specific request gives the agent a clearer implementation target than a broad instruction.

Build a customer feedback portal with a public submission form, a dashboard that lists feedback by status, and a detail page where team members can update each item.

This example stays within the builder's documented capabilities: full-stack Next.js generation, database-backed behavior, and browser-based editing. Review the generated implementation before treating it as production-ready.

2. Watch the live preview

Keep the preview visible while the agent generates files and rebuilds the application. The sandbox interface reports its state, including when an idle environment is waking, rather than silently appearing to fail.

3. Refine the interface visually

Select a preview element when you need a small design adjustment. For example, change a heading, button label, or color directly in the preview. The corresponding source is updated and rebuilt automatically.

4. Inspect the generated code

Open the Monaco editor and review the generated routes, components, database access, and configuration. Because the output is a standard TypeScript and Next.js codebase, you can refine it manually and retain full ownership of the result.

5. Work with project data

Use the database panel to inspect schemas and migrations, browse or edit records, and run SQL queries. Keep development and live data separate, and create backups before performing substantial schema or data changes.

6. Publish the application

The live preview can be published to a public address. You can later connect an existing domain or purchase one through the interface. Domain controls support a bare domain, a www. address, or a custom subdomain, along with DNS status and HTTPS redirection.

Connect a GitHub Repository

Connect the generated project to a GitHub repository when you want the code to participate in your team's normal development workflow. Synchronization works in both directions, so you can push generated changes to the repository and pull external changes back into the builder.

  1. Create or choose the repository that will hold the application.
  2. Connect it through the builder's GitHub integration.
  3. Push a known-good generated checkpoint.
  4. Make external changes through your regular review process.
  5. Pull those changes into the builder and verify them in the live preview.

Avoid editing the same area simultaneously in both locations. Frequent, small synchronization steps make conflicts easier to understand and resolve.

Advanced Usage Tips

Generate from a Figma design

Paste a Figma frame link into the chat when a design already exists. The agent can build directly from that frame, reducing the need to manually translate the design into a prompt. Inspect the result for responsive behavior and application logic that may not be represented in a static design.

Use checkpoints before major revisions

Make sure a stable checkpoint exists before asking for a large architectural or visual change. After generation, use the diff viewer to inspect exactly what was modified. If the update introduces regressions, restore the earlier checkpoint instead of manually undoing every file.

Separate development and live data

Test migrations and queries against the development database first. Back up important records before changing a live schema, and confirm that environment variables and secrets are assigned to the intended environment.

Choose the appropriate deployment target

Vercel offers a natural destination for a Next.js application, while Docker can provide portability and tighter control over the runtime. A standard Node.js host is also supported. Whichever option you choose, verify its compatibility with Next.js 16, project environment variables, database connectivity, SSL, and domain configuration.

Plan multi-tenant ownership rules

Project isolation is built in, but a customer-facing product still needs explicit authorization and ownership checks. Define which user or team can create, inspect, modify, publish, export, or delete each project.

Production Security Warning

The builder deliberately ships without login. Anyone who can reach a publicly exposed builder URL may be able to use the configured API key's credits. Do not publish the builder itself to untrusted users without adding authentication and project ownership checks.

  • Add your preferred authentication system before public exposure.
  • Enforce authorization for every project-level action.
  • Protect API keys, project secrets, and environment variables.
  • Apply usage and spending limits.
  • Review runtime logs and analytics for unexpected activity.
  • Test tenant isolation before allowing customer access.

The README notes that hooks for these additions are already present, but it does not claim that the default installation is secure for unrestricted public access.

Licensing Note

The README's license section says the project is released under the MIT License and directs users to the repository's LICENSE file for the legal terms. However, the badge shown at the top of the supplied README says LGPL 2.1. Because those statements conflict, inspect the actual LICENSE file in the version you install before modifying, redistributing, embedding, or selling the software.

Conclusion

This AI app builder combines prompt-based generation with a live preview, full source access, SQL data tools, GitHub synchronization, checkpoints, domains, and flexible deployment. Start with the Windows PowerShell installer, configure the documented API key variable, generate a narrowly defined application, and refine it through both the visual and code editors. Before serving real users, add authentication, ownership enforcement, and spending protections.