A template for building AI-powered applications with Rightbrain and Next.js. This template provides everything you need to start building AI applications with authentication, API integration, and modern web technologies.
- 🔒 Built-in authentication with Replit Auth
- 🤖 Rightbrain SDK integration for AI capabilities
- ⚡ Next.js 14 App Router
- 🎨 Tailwind CSS for styling
- 📝 Full TypeScript support
- 🔐 Protected API routes
- 🚀 Production-ready configuration
- Click "Use Template" on Replit
- Sign up for Rightbrain
- Add your Rightbrain credentials in Replit Secrets:
- RB_ORG_ID
- RB_PROJECT_ID
- RB_OAUTH2_URL
- RB_API_URL
- RB_CLIENT_ID
- RB_CLIENT_SECRET
- RB_OAUTH2_TOKEN_PATH
- Click "Run"
The template will automatically:
- Install dependencies
- Generate the Rightbrain SDK
- Start the development server
To run locally:
Install dependencies
npm install
Generate Rightbrain SDK
npm run generate-sdk
Start development server
npm run dev
src/
├── app/ # Next.js App Router pages
├── components/ # React components
├── generated/ # Generated Rightbrain SDK
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries
├── types/ # TypeScript types
└── utils/ # Helper functions
This template implements several security best practices:
- Replit Auth integration
- Protected API routes
- Environment variable validation
- Secure token handling
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this template in your own projects.