Nix is a next-generation study companion that uses advanced AI to break down complex concepts into understandable explanations. Whether you're a curious 5-year-old or a PhD researcher, Nix adapts its language and depth to suit your needs.
| Feature | Description |
|---|---|
| π§ Adaptive AI | Powered by the Groq API (Llama 3 / Mixtral) for instant, high-quality insights. |
| ποΈ 5 Complexity Levels | From "Child" (simple analogies) to "Expert" (rigorous math & theory). |
| πΊοΈ Learning Paths | Instantly generate logical, 5-step roadmaps to master any complex topic. |
| π 1-Click Flashcards | Automatically extract core concepts into interactive 3D-flippable study cards. |
| π Smart History | Automatically saves your sessions locally. Access past explanations via the sidebar. |
| π Pro PDF Export | Generate professional, branded PDFs of your notes with LaTeX math and formatting preserved. |
| π¨ Obsidian UI | A beautiful, distraction-free dark mode interface using Tailwind CSS and Vercel-inspired design. |
| π± Mobile Ready | Fully responsive design with touch-friendly controls and stackable layouts. |
| οΏ½ Rich Rendering | Supports Markdown tables, Code blocks (with syntax highlighting), and LaTeX equations ( |
Nix isn't just a chatbot; it's a tuned engine. Select a level to change how the AI thinks:
- οΏ½ Child: Uses magic, stories, and simple words.
- π Simple: Everyday examples for a general audience.
- π Detailed: Structured breakdown with "What, Why, How".
- π Academic: Undergraduate-level rigor with definitions.
- οΏ½ Expert: Edge cases, advanced theory, and LaTeX derivations.
- Frontend: React + Vite
- Styling: Tailwind CSS + Typography Plugin
- Markdown:
react-markdown,remark-math,rehype-katex,react-syntax-highlighter - Export:
jspdf+html2canvasfor high-fidelity PDF generation - AI: Groq SDK (
openai/gpt-oss-120bcompatible endpoint)
- Node.js (v18+)
- A free API key from Groq Console
-
Clone the repo
git clone https://github.com/Dsp023/Nix.git cd Nix -
Install dependencies
npm install
-
Configure Environment Create a
.envfile in the root directory:VITE_GROQ_API_KEY=gsk_your_actual_api_key_here
-
Run Locally
npm run dev
Open
http://localhost:5173to start learning!
src/
βββ components/
β βββ ExplainEngine.jsx # Main application logic & UI
βββ utils/
β βββ pdfGenerator.js # PDF export utility
βββ index.css # Global styles & Tailwind directives
βββ App.jsx # Root layout
βββ main.jsx # Entry pointContributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request