Skip to content
/ aifa Public template

Free Open-Source Next.js starter kit to build, deploy, and scale intelligent AI applications. Artifacts Feature, features secure multi-provider auth, Stripe payments, vector knowledge bases, deep-research agents, and a unique fractal architecture designed for the future of AI.

License

Notifications You must be signed in to change notification settings

aifa-agi/aifa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIFA Logo

AIFA — Enterprise-Grade AI Next.js Starter

License: GPL v3 GitHub stars Follow on X

Free Open-Source starter kit to build, deploy, and scale intelligent AI applications. Features secure multi-provider auth, Stripe payments, vector knowledge bases, deep-research agents, and a unique fractal architecture designed for the future of AI.

AIFA Project Cover

Star the AIFA repo on GitHub to support the project

🚀 About The Project

AIFA (AI Fractal Agents) is more than just a starter kit; it's a foundation for building the next generation of intelligent, scalable AI applications. It provides a robust, enterprise-grade architecture using Next.js 15, designed for developers who want to move fast without sacrificing quality or scalability.

The core of this project is a multi-language SaaS platform featuring an AI chat, a powerful admin panel, and a public-facing website.

However, the long-term vision extends far beyond a traditional SaaS. AIFA is architected as the first step towards an ecosystem of decentralized AI agents. The goal is to create a platform where AI agents, initially trained by human experts, can evolve, replicate, and exchange knowledge on a blockchain network. This starter kit builds the critical infrastructure for that ambitious future.

✨ Core Features

This starter kit comes packed with features that are already implemented and ready to use:

  • Fractal UI Layout: A sophisticated split-screen interface powered by Next.js Parallel Routes, featuring a persistent AI chatbot on the left and the main web application on the right for seamless user interaction.
  • AI Chatbot with Artifacts: An intelligent chatbot that can generate "artifacts" — complex data, code, or documents — directly within the conversation.
  • Robust Authentication: Secure, multi-provider authentication powered by NextAuth.js.
    • 80+ OAuth Providers: Ready-to-use integration with Google, GitHub, and dozens of other services.
    • Passwordless Login: Secure email-based login via Resend.
    • Role-Based Access Control (RBAC): Pre-configured roles (Guest, Admin, Architect, Editor) with user-specific layouts and permissions.
  • Vector Knowledge Base Integration: Connect to OpenAI's vector databases (or others) to provide context-aware, intelligent responses based on your private data. This can be configured per-user or per-model.
  • Unified Knowledge API: A dedicated API endpoint for the chat and registration systems. This allows external tools like mobile apps or third-party websites to connect to the AIFA infrastructure, creating a single, unified knowledge base for any business.

🛠️ Technology Stack

AIFA is built on a modern, powerful, and scalable technology stack, leveraging the best of the JavaScript and AI ecosystems.

Category Technologies
Framework Next.js 15, React 19
AI & SDKs Vercel AI SDK, @ai-sdk/openai, OpenAI
UI & UX shadcn/ui, Tailwind CSS, Framer Motion, Lucide Icons
Database & ORM Neon (Serverless Postgres), Prisma
Authentication NextAuth.js v5
Infrastructure Vercel, Upstash Redis, Vercel Blob
Services Stripe (Payments), Resend (Emails)
Tooling & Code TypeScript, Biome (Linter/Formatter), Zod

🗺️ Roadmap

We are actively developing AIFA with a clear vision for the future.

  • ✅ In Progress: AI-Powered Page Generation

    • We are finalizing a feature inspired by v0.dev that allows users to generate beautifully designed pages, documents, and guides through conversational prompts. This will dramatically speed up content creation.
  • ▶️ Up Next: Deep Chat & Content Synchronization

    • The next major task is to create a seamless link between the AI chat and the application's content. This will enable workflows like:
      1. A user starts a conversation with the chatbot.
      2. The bot understands the intent and opens the relevant article or page in the right-hand panel.
      3. The user highlights a specific piece of text on the page.
      4. The chatbot automatically uses that highlighted text as new context to find and suggest other relevant materials from across the entire application, creating a powerful, dynamic research experience.

🏁 Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Ensure you have Node.js (v18.x or newer) and pnpm installed.

📄 License

This project is distributed under the AGPL-3.0 license to ensure openness of all derivative works.

🏋️‍♀️ Author

Roma Armstrong telegram contact: @roma_armstrong


The future is not written in corporate data centers, but in code that lives and evolves on millions of servers around the world.

About

Free Open-Source Next.js starter kit to build, deploy, and scale intelligent AI applications. Artifacts Feature, features secure multi-provider auth, Stripe payments, vector knowledge bases, deep-research agents, and a unique fractal architecture designed for the future of AI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published