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 (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.
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.
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 |
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.devthat allows users to generate beautifully designed pages, documents, and guides through conversational prompts. This will dramatically speed up content creation.
- We are finalizing a feature inspired by
-
▶️ 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:
- A user starts a conversation with the chatbot.
- The bot understands the intent and opens the relevant article or page in the right-hand panel.
- The user highlights a specific piece of text on the page.
- 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.
- The next major task is to create a seamless link between the AI chat and the application's content. This will enable workflows like:
To get a local copy up and running, follow these simple steps.
Ensure you have Node.js (v18.x or newer) and pnpm installed.
This project is distributed under the AGPL-3.0 license to ensure openness of all derivative works.
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.

