AI-powered learning, built to turn any topic into a structured course.
NeuralLearn is an AI-powered learning platform that transforms a topic into a complete, structured learning experience. Instead of searching through scattered tutorials and articles, learners can generate a course, work through chapters, watch relevant videos, read supporting resources, test their knowledge, and track their progress in one place.
Enter any topic and NeuralLearn generates a structured course with:
- Course title and description
- Difficulty level
- Estimated learning time
- Logically ordered chapters
- Chapter descriptions
- Relevant YouTube search queries
Generated courses are organized into individual chapters and lessons, making large topics easier to understand and progress through.
Each chapter can include automatically generated quizzes designed around the lesson content.
- Multiple-choice questions
- Four answer choices
- Correct-answer explanations
- Knowledge testing after learning
NeuralLearn generates flashcards from lesson material to help reinforce important concepts through active recall.
Courses can be enriched with external learning material, including:
- YouTube tutorials
- Educational articles
- Additional resources related to the chapter
Track learning progress as you move through generated courses and chapters.
NeuralLearn supports microphone-based input for a more convenient learning and course-generation experience.
User accounts are protected through Clerk authentication, allowing users to maintain their own courses and learning progress.
NeuralLearn includes a one-time donation option through Buy Me a Coffee for users who want to support continued development.
NeuralLearn is designed as a Progressive Web App, allowing the platform to provide an app-like experience across supported devices.
- Next.js 16
- React
- TypeScript
- Tailwind CSS
- Lucide Icons
- Next.js App Router
- Next.js API Routes
- Server-side authentication
- Drizzle ORM
- Neon PostgreSQL
- Clerk
NeuralLearn uses a resilient multi-provider AI architecture:
- Groq
- Google Gemini
The application uses provider and model fallbacks to improve reliability when a model is unavailable or temporarily rate-limited.
- YouTube
- Educational article sources
- Vercel
At a high level, NeuralLearn follows this flow:
User
β
βΌ
Next.js Application
β
βββ Clerk Authentication
β
βββ Course Generation
β β
β βββ Groq
β βββ Gemini fallback
β
βββ Lesson Generation
β
βββ Quiz Generation
β
βββ Flashcard Generation
β
βββ YouTube Resources
β
βββ Article Resources
β
βΌ
Neon PostgreSQL
Make sure you have installed:
- Node.js 18+
- npm
- A PostgreSQL-compatible database
- Clerk account
- Groq API access
- Google Gemini API access
Clone the repository:
git clone https://github.com/XTech-Head/NeauralLearn.gitEnter the project:
cd NeauralLearnInstall dependencies:
npm installCreate a .env file in the project root.
Add the environment variables required by your local configuration.
Example:
DATABASE_URL=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
GROQ_API_KEY=
GROQ_MODEL=
GEMINI_API_KEY=
GEMINI_MODEL=Additional variables may be required depending on the enabled integrations.
Never commit
.env, API keys, database credentials, or other secrets to GitHub.
Start the development server:
npm run devOpen:
http://localhost:3000
To verify the application builds successfully:
npm run buildThen start the production server:
npm startNeauralLearn/
β
βββ app/
β βββ ai/
β β βββ ai.ts
β β
β βββ api/
β β βββ articles/
β β βββ course/
β β βββ courses/
β β βββ generate-course/
β β βββ progress/
β β βββ transcribe/
β β βββ user/
β β βββ youtube/
β β
β βββ components/
β βββ course/
β βββ sign-in/
β βββ sign-up/
β βββ globals.css
β βββ page.tsx
β
βββ config/
β βββ schema.ts
β
βββ lib/
β βββ server-auth.ts
β
βββ public/
β βββ icons/
β βββ screenshots/
β
βββ .github/
β βββ dependabot.yml
β
βββ manifest.ts
βββ next.config.ts
βββ package.json
βββ README.md
AI services can experience temporary rate limits, unavailable models, or provider failures.
NeuralLearn therefore uses a provider abstraction that can:
- Attempt the configured Groq model.
- Try additional Groq model fallbacks when necessary.
- Retry appropriate temporary failures.
- Fall back to Gemini when Groq cannot complete the request.
- Return an error when no configured provider can fulfill the request.
This helps prevent a temporary model or provider issue from taking down the entire learning workflow.
NeuralLearn is designed with server-side API access in mind.
Sensitive credentials should remain on the server and must never be exposed to the client.
The project follows several important practices:
- API keys stored in environment variables
- Database credentials stored in environment variables
- Authentication handled through Clerk
- Server-side API calls for AI providers
- Protected application routes
- No secrets committed to the repository
- Dependency updates monitored through Dependabot
NeuralLearn is actively evolving.
Potential future improvements include:
- Improved learning recommendations
- More personalized learning paths
- Additional AI providers
- Better spaced-repetition support
- More detailed learning analytics
- Expanded PWA capabilities
- Custom course editing
- Improved accessibility
- More external learning-resource integrations
The internet already contains an enormous amount of educational material.
The problem is finding the right material, understanding where to start, and maintaining a structured learning path.
NeuralLearn aims to reduce that friction by turning a simple topic into a guided learning experience.
Enter a topic. Generate a course. Learn. Practice. Track your progress.
Built by XTech Devs.
NeuralLearn is part of an ongoing collection of software projects exploring AI-powered productivity, education, and developer tools.
If NeuralLearn has helped you learn something or saved you time, you can support continued development through a one-time coffee donation.
No subscriptions. Just support if you want to.
This project is licensed under the MIT License.
See the LICENSE file for more details.