AIFA — Enterprise-Grade AI Next.js Starter
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.
🚀 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.
🏁 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.
评论