A cutting-edge, AI-powered knowledge base application with Obsidian-like interface, shadcn/ui components, MCP support, glass morphism design, and drag-and-drop markdown editor.
- ✅ shadcn/ui - Professional, accessible UI components
- ✅ Glass Morphism - Modern frosted glass effect with blur
- ✅ iOS Style - Raised curved edges with depth
- ✅ Tailwind CSS v4 - Utility-first styling with custom theme
- ✅ Dark/Light Mode - Automatic theme switching
- ✅ Responsive Design - Works on all screen sizes
- ✅ Mistral AI Integration - Official TypeScript SDK
- ✅ MCP Client & Server - Model Context Protocol support
- ✅ Streaming Responses - Real-time AI chat with Streamdown
- ✅ AI Element Components - Specialized AI UI components
- ✅ Tool Calling - Execute MCP tools from chat
- ✅ Multiple AI Models - Support for various AI providers
- ✅ TipTap Markdown Editor - Full markdown support
- ✅ Drag & Drop - Drag images and files into editor
- ✅ Syntax Highlighting - Shiki-powered code blocks
- ✅ Code Themes - Multiple themes (GitHub, Dracula, Monokai, etc.)
- ✅ All Language Support - 100+ programming languages
- ✅ Live Preview - Real-time markdown preview
- ✅ Task Lists - Checkbox support
- ✅ Tables - Markdown table support
- ✅ Images - Embed images with drag & drop
- ✅ File Explorer - Tree view with folders and files
- ✅ Create/Delete/Rename - Full file management
- ✅ Search - Quick file search
- ✅ Keyboard Shortcuts - Efficient navigation
- ✅ Context Menu - Right-click actions
- ✅ Theme Settings - Dark, Light, System
- ✅ Code Theme - Multiple syntax highlighting themes
- ✅ Editor Settings - Line numbers, word wrap, auto-save
- ✅ Font Size - Adjustable text size
- ✅ Keyboard Shortcuts - Customizable bindings
- ✅ Hono Framework - Fast, lightweight server
- ✅ Bun Runtime - High-performance JavaScript runtime
- ✅ Supabase - Database & authentication
- ✅ Cloudflare Workers - Edge deployment ready
.
├── index.html # HTML entry point
├── package.json # Dependencies and scripts
├── vite.config.ts # Vite configuration
├── tailwind.config.js # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
├── tsconfig.node.json # TypeScript config for Node
├── README.md
└── src/
├── main.tsx # React entry point
├── App.tsx # Main application component
├── lib/
│ ├── utils.ts # Utility functions
│ ├── shikiHighlighter.ts # Shiki syntax highlighting
│ ├── markdownRenderer.ts # Markdown rendering
│ └── mcp/
│ ├── client.ts # MCP client
│ └── server.ts # MCP server
├── components/
│ ├── ui/ # shadcn/ui components
│ │ ├── button.tsx
│ │ ├── card.tsx
│ │ ├── input.tsx
│ │ ├── select.tsx
│ │ ├── dialog.tsx
│ │ └── switch.tsx
│ ├── editor/
│ │ └── MarkdownEditor.tsx # Rich markdown editor
│ ├── ai/
│ │ ├── AIAssistant.tsx # AI chat panel
│ │ └── AIElement.tsx # AI action elements
│ ├── settings/
│ │ └── SettingsPanel.tsx # App settings
│ └── filesystem/
│ └── FileExplorer.tsx # File explorer
├── types/
│ └── index.ts # TypeScript types
└── styles/
└── globals.css # Global styles
cd /workspace
npm install- Create a new Supabase project at https://supabase.com
- Create a
notestable:
CREATE TABLE notes (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
title TEXT NOT NULL,
content TEXT,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
modified_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);- Get your Supabase URL and anon key from Settings > API
Create a .env file:
MISTRAL_API_KEY=your_mistral_api_key
SUPABASE_URL=your_supabase_project_url
SUPABASE_ANON_KEY=your_supabase_anon_key
MCP_SERVER_URL=ws://localhost:3000 # OptionalIn one terminal, start the Vite dev server:
npm run devIn another terminal, start the Bun server:
npm run serverOpen http://localhost:3000 in your browser.
- Create Note: Click "New Note" or press
Ctrl+N - Save:
Ctrl+Sor click Save button - Markdown: Full markdown support with live preview
- Drag & Drop: Drag images directly into the editor
- Code Blocks: Type
```and select language
- Open: Click AI button or press
Ctrl+K - Chat: Ask questions about your notes
- MCP Tools: Connect to MCP servers for extended functionality
- Streaming: Real-time responses with Streamdown
- Open: Click Files button or press
Ctrl+E - New File: Click "New File" button
- New Folder: Click "New Folder" button
- Search: Type to search files
- Context Menu: Right-click for actions
- Open: Click Settings button or press
Ctrl+, - Theme: Choose Dark, Light, or System
- Code Theme: Select syntax highlighting theme
- Editor: Configure line numbers, word wrap, etc.
| Shortcut | Action |
|---|---|
Ctrl+S |
Save current note |
Ctrl+K |
Open/close AI assistant |
Ctrl+, |
Open/close settings |
Ctrl+E |
Open/close file explorer |
Ctrl+N |
Create new note |
Ctrl+B |
Toggle bold |
Ctrl+I |
Toggle italic |
Enter |
Send message (in AI chat) |
Escape |
Close modals/dialogs |
The app supports the Model Context Protocol (MCP) for connecting to external AI services and tools.
- Start your MCP server (e.g.,
python -m mcp_server) - In the AI Assistant panel, enter the server URL
- Click "Connect MCP"
- Available tools will appear in the dropdown
- Select a tool and send a message to execute it
get_editor_content- Get current editor contentset_editor_content- Set editor contentlist_notes- List all notescreate_note- Create a new note
// In your MCP server
mcpServer.addTool('my_tool', 'Description', async (args) => {
// Your tool logic here
return { result: 'Tool executed successfully' };
});The app uses glass morphism for a modern, frosted glass effect:
.glass {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
}Raised curved edges with depth:
.ios {
border-radius: 28px;
box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
}- Primary:
#646cff(Mistral accent color) - Background:
#0a0a0a(Dark mode) - Foreground:
#ffffff - Muted:
#71717a - Border:
#27272a
- React 18 - UI framework
- TypeScript - Type safety
- Tailwind CSS v4 - Utility-first CSS
- shadcn/ui - Professional UI components
- TipTap - Rich text editor
- Shiki - Syntax highlighting
- react-dropzone - Drag & drop
- Vite - Build tool
- Hono - Web framework
- Bun - JavaScript runtime
- Supabase - Database & auth
- MCP SDK - Model Context Protocol
- Mistral AI SDK - AI integration
- Streamdown - Streaming protocol
- Mistral Small Latest - Default AI model
# Install Wrangler
npm install -g wrangler
# Deploy
wrangler deployFROM oven/bun:latest
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "server"]- Create a new project
- Connect your GitHub repository
- Set environment variables
- Deploy
MIT License - Feel free to use, modify, and distribute.
- Mistral AI - AI models and SDK
- shadcn/ui - UI components
- TipTap - Rich text editor
- Shiki - Syntax highlighting
- MCP - Model Context Protocol
Built with ❤️ and AI