简体中文 | English
A modern Markdown online editor with real-time preview, Mermaid diagrams, and LaTeX support.
Edit server-side Markdown files - No upload needed, edit directly in your browser!
- Server-side Editing - Edit markdown files on server directly in browser
- Real-time Preview - Live rendering as you type
- Mermaid Support - Render flowcharts, sequence diagrams, Gantt charts, and more
- LaTeX Formulas - Full support for mathematical expressions
- Code Highlighting - Syntax highlighting for various programming languages
- Dark Theme - Follow system preference or manual toggle
- Mobile Friendly - Responsive design optimized for mobile devices
- Real-time Sync - WebSocket-based file change notifications
npm install -g colonynotecolonynote [options]| Option | Alias | Description | Default |
|---|---|---|---|
--root |
-r |
Root directory for documents | Current directory |
--port |
-p |
Server port | 5787 |
--host |
Server host | 0.0.0.0 |
|
--config |
-c |
Config file path | colonynote.config.js |
--help |
-h |
Show help | |
--version |
Show version |
# Start with default settings
colonynote
# Specify root directory
colonynote -r /path/to/docs
# Specify port
colonynote -p 3000
# Use config file
colonynote -c ./my-config.js
# Combine options
colonynote -r ./docs -p 8080Create a colonynote.config.js file in your project root:
export default {
root: './docs', // Root directory for documents
port: 5787, // Server port
host: '0.0.0.0', // Server host
allowedExtensions: ['.md', '.markdown'], // Supported file extensions
theme: {
default: 'system', // Theme: light | dark | system
},
editor: {
autosave: true, // Auto save
debounceMs: 300, // Save debounce delay
},
}# Clone the repository
git clone https://github.com/opencolony/note.git
# Install dependencies
npm install
# Start development server (backend + frontend with hot reload)
npm run dev
# Frontend only (Vite dev server, port 5787)
npm run dev:frontend
# Backend only (Hono server, port 5788)
npm run dev:backend
# Build for production
npm run build
# Run production build
npm start- Backend: Hono, @hono/node-server, ws (WebSocket)
- Frontend: React 18, Vite, Tailwind CSS v4
- UI Components: shadcn/ui (Radix UI)
- Editor: TipTap 3, tiptap-markdown
- Diagrams: Mermaid
- LaTeX: KaTeX
- Icons: lucide-react
MIT