A beautiful, responsive web interface for viewing and organizing your markdown documents. Perfect for personal documentation, notes, and knowledge management.
- 🎨 Beautiful Interface - Clean, modern design optimized for reading
- 📱 Fully Responsive - Works perfectly on desktop, tablet, and mobile
- 🚀 Syntax Highlighting - Automatic code highlighting for all major languages
- 📁 Organized Structure - Support for subdirectories and nested organization
- 🔄 Live File Watching - Automatically detects new files and changes
- ⚡ Fast Performance - Quick loading and smooth navigation
-
Install dependencies:
npm install
-
Start the server:
npm start
-
Open your browser: Navigate to
http://localhost:3000 -
Add your documents: Place
.mdfiles in thedocs/folder
For development with auto-restart:
npm run devproject/
├── docs/ # Your markdown documents go here
│ ├── README.md # Welcome document
│ ├── examples/ # Sample documents
│ └── notes/ # Example subdirectory
├── public/ # Static assets
│ └── styles.css # Styling
├── server.js # Main application
└── package.json # Dependencies
Simply add .md files to the docs/ directory:
- Files are automatically detected
- Subdirectories are supported for organization
- Use standard markdown syntax
- Code blocks are automatically highlighted
- Styling: Edit
public/styles.cssto customize the appearance - Port: Set the
PORTenvironment variable to change the default port (3000) - Document Directory: Modify
DOCS_DIRinserver.jsto change the documents folder
- Headers, paragraphs, and text formatting
- Code blocks with syntax highlighting
- Lists (ordered and unordered)
- Tables
- Links and images
- Blockquotes
- Horizontal rules
- Backend: Node.js with Express
- Markdown Parser: Marked.js
- Syntax Highlighting: Highlight.js
- File Watching: Chokidar
- Styling: Vanilla CSS with modern design
Want to share your document viewer online? See the DEPLOY.md guide for step-by-step instructions on:
- 🌐 Creating a GitHub public repository
- ⚡ Deploying to Vercel, Railway, or Render
- 🚀 Getting a live public URL
- 📝 Adding documents to your live site
MIT License - feel free to use and modify as needed!
Start adding your markdown files to the docs/ folder and enjoy your new document viewer! ✍️