An interactive Next.js web application that teaches LLM techniques (RAG, LoRA, Chain of Thought, Prompt Engineering) through guided learning paths with hands-on examples and multi-provider chat integration.
| Category | Technology |
|---|---|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript 5 |
| UI | React 19, Tailwind CSS 4 |
| State | Zustand with localStorage persistence |
| LLM SDKs | OpenAI SDK, Anthropic SDK |
| Markdown | react-markdown, remark-gfm, Prism.js |
| Icons | Lucide React |
Clone the repository
git clone https://github.com/yourusername/llm-guide.git
cd llm-guide
Install dependencies
npm install
Run the development server
npm run dev
Open your browser Navigate to http://localhost:3000
npm run build
npm start
src/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout with ThemeProvider
│ ├── page.tsx # Home page
│ ├── globals.css # Global styles & CSS variables
│ ├── guides/ # Guide pages
│ │ ├── page.tsx # Guide grid
│ │ └── [slug]/page.tsx # Individual guide
│ ├── tutorials/ # Tutorial pages
│ │ ├── page.tsx # Tutorial grid
│ │ └── [slug]/page.tsx # Individual tutorial
│ ├── playground/page.tsx # Prompt playground
│ ├── settings/page.tsx # API key management
│ └── api/chat/route.ts # Chat API endpoint
│
├── components/
│ ├── ui/ # Reusable UI components
│ │ ├── Button.tsx
│ │ ├── Card.tsx
│ │ ├── Input.tsx
│ │ ├── Textarea.tsx
│ │ ├── Select.tsx
│ │ ├── Badge.tsx
│ │ └── MarkdownContent.tsx # Markdown renderer
│ ├── layout/ # Layout components
│ │ ├── Sidebar.tsx
│ │ ├── MainLayout.tsx
│ │ └── ThemeProvider.tsx
│ └── features/ # Feature-specific components
│ ├── chat/ # Chat components
│ │ ├── ChatBubble.tsx
│ │ ├── ChatDrawer.tsx
│ │ └── ChatMessage.tsx
│ ├── guides/ # Guide components
│ ├── tutorials/ # Tutorial components
│ ├── playground/ # Playground components
│ └── settings/ # Settings components
│
├── lib/
│ ├── llm/ # LLM provider abstractions
│ │ ├── client.ts # Unified client
│ │ ├── ollama-service.ts # Ollama auto-serve
│ │ └── providers/ # Provider implementations
│ │ ├── base.ts
│ │ ├── openai.ts
│ │ ├── anthropic.ts
│ │ ├── grok.ts
│ │ ├── lmstudio.ts
│ │ └── ollama.ts
│ └── utils/
│ └── cn.ts # Class name utility
│
├── stores/ # Zustand stores
│ ├── apiKeyStore.ts # API key management
│ ├── chatStore.ts # Chat state
│ └── uiStore.ts # UI state (theme, sidebar)
│
├── hooks/ # Custom React hooks
│ ├── useChat.ts
│ └── useCleanup.ts
│
├── content/ # Static content
│ ├── guides.ts # Guide definitions
│ └── tutorials.ts # Tutorial definitions
│
└── types/ # TypeScript definitions
├── provider.ts
├── guide.ts
├── tutorial.ts
└── chat.ts
http://localhost:1234/v1)Contributions are welcome! Please follow these steps:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)| Command | Description |
|---|---|
npm run dev | Start development server |
npm run build | Build for production |
npm start | Start production server |
npm run lint | Run ESLint |
This project uses client-side API key storage for privacy. No environment variables are required for basic functionality.
For deployment with server-side features (optional):
# Optional: Analytics
NEXT_PUBLIC_ANALYTICS_ID=your-analytics-id
# Optional: Rate limiting (if implementing server-side)
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW_MS=60000
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Made with Next.js and AI
1 commits
TypeScript
99.3%
An interactive Next.js web application that teaches LLM techniques (RAG, LoRA, Chain of Thought, Prompt Engineering) through guided learning paths with hands-on examples and multi-provider chat integration.
| Category | Technology |
|---|---|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript 5 |
| UI | React 19, Tailwind CSS 4 |
| State | Zustand with localStorage persistence |
| LLM SDKs | OpenAI SDK, Anthropic SDK |
| Markdown | react-markdown, remark-gfm, Prism.js |
| Icons | Lucide React |
Clone the repository
git clone https://github.com/yourusername/llm-guide.git
cd llm-guide
Install dependencies
npm install
Run the development server
npm run dev
Open your browser Navigate to http://localhost:3000
npm run build
npm start
src/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout with ThemeProvider
│ ├── page.tsx # Home page
│ ├── globals.css # Global styles & CSS variables
│ ├── guides/ # Guide pages
│ │ ├── page.tsx # Guide grid
│ │ └── [slug]/page.tsx # Individual guide
│ ├── tutorials/ # Tutorial pages
│ │ ├── page.tsx # Tutorial grid
│ │ └── [slug]/page.tsx # Individual tutorial
│ ├── playground/page.tsx # Prompt playground
│ ├── settings/page.tsx # API key management
│ └── api/chat/route.ts # Chat API endpoint
│
├── components/
│ ├── ui/ # Reusable UI components
│ │ ├── Button.tsx
│ │ ├── Card.tsx
│ │ ├── Input.tsx
│ │ ├── Textarea.tsx
│ │ ├── Select.tsx
│ │ ├── Badge.tsx
│ │ └── MarkdownContent.tsx # Markdown renderer
│ ├── layout/ # Layout components
│ │ ├── Sidebar.tsx
│ │ ├── MainLayout.tsx
│ │ └── ThemeProvider.tsx
│ └── features/ # Feature-specific components
│ ├── chat/ # Chat components
│ │ ├── ChatBubble.tsx
│ │ ├── ChatDrawer.tsx
│ │ └── ChatMessage.tsx
│ ├── guides/ # Guide components
│ ├── tutorials/ # Tutorial components
│ ├── playground/ # Playground components
│ └── settings/ # Settings components
│
├── lib/
│ ├── llm/ # LLM provider abstractions
│ │ ├── client.ts # Unified client
│ │ ├── ollama-service.ts # Ollama auto-serve
│ │ └── providers/ # Provider implementations
│ │ ├── base.ts
│ │ ├── openai.ts
│ │ ├── anthropic.ts
│ │ ├── grok.ts
│ │ ├── lmstudio.ts
│ │ └── ollama.ts
│ └── utils/
│ └── cn.ts # Class name utility
│
├── stores/ # Zustand stores
│ ├── apiKeyStore.ts # API key management
│ ├── chatStore.ts # Chat state
│ └── uiStore.ts # UI state (theme, sidebar)
│
├── hooks/ # Custom React hooks
│ ├── useChat.ts
│ └── useCleanup.ts
│
├── content/ # Static content
│ ├── guides.ts # Guide definitions
│ └── tutorials.ts # Tutorial definitions
│
└── types/ # TypeScript definitions
├── provider.ts
├── guide.ts
├── tutorial.ts
└── chat.ts
http://localhost:1234/v1)Contributions are welcome! Please follow these steps:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)| Command | Description |
|---|---|
npm run dev | Start development server |
npm run build | Build for production |
npm start | Start production server |
npm run lint | Run ESLint |
This project uses client-side API key storage for privacy. No environment variables are required for basic functionality.
For deployment with server-side features (optional):
# Optional: Analytics
NEXT_PUBLIC_ANALYTICS_ID=your-analytics-id
# Optional: Rate limiting (if implementing server-side)
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW_MS=60000
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Made with Next.js and AI
1 commits
TypeScript
99.3%