Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sureshamal/markview/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin developing MarkView, ensure you have the following tools installed:Node.js & Bun
Required for running the Next.js frontend and managing JavaScript dependencies
Rust & Cargo
Required for building the Tauri backend and Rust components
Tauri CLI
Build tools and dependencies for compiling Tauri applications
Platform Tools
OS-specific build dependencies (see platform notes below)
Platform-Specific Dependencies
- macOS
- Linux
- Windows
Install Xcode Command Line Tools:
Getting Started
Install dependencies
MarkView uses Bun as the package manager for optimal performance:This will install all frontend dependencies defined in
package.json, including:- Next.js 16.1.6 (React 19.2.3)
- Tauri plugins (dialog, fs, window)
- Markdown rendering libraries (react-markdown, remark-gfm, rehype-raw)
- UI dependencies (lucide-react, react-syntax-highlighter)
Run development server
Start the development server with hot-reloading:This command will:
- Start the Next.js dev server on
http://localhost:3000 - Build the Rust backend
- Launch the Tauri desktop window
The first build may take several minutes as Cargo compiles all Rust dependencies.
Available Scripts
MarkView provides the following npm scripts defined inpackage.json:
Script Descriptions
| Script | Command | Description |
|---|---|---|
dev | next dev | Runs Next.js development server only (without Tauri) |
build | next build | Builds Next.js for production (static export) |
start | next start | Starts production Next.js server (not used in Tauri) |
lint | eslint | Runs ESLint for code quality |
tauri | tauri | Direct access to Tauri CLI commands |
Troubleshooting
Rust compilation errors
Rust compilation errors
If you encounter Rust compilation errors:
-
Verify Rust version meets minimum requirement (1.77.2+):
-
Update Rust to the latest stable version:
-
Clean the build cache:
Next.js port already in use
Next.js port already in use
If port 3000 is already occupied:
- Kill the process using port 3000
- Or modify the dev URL in
src-tauri/tauri.conf.json: - Update the Next.js port in
package.json:
WebView2 missing on Windows
WebView2 missing on Windows
If you see WebView2 errors on Windows:Download and install the WebView2 Runtime
Bun installation issues
Bun installation issues
If you prefer npm or yarn instead of bun:
macOS code signing errors
macOS code signing errors
For development, you can disable code signing:
- Add to
src-tauri/tauri.conf.jsonunderbundle:
Development Tools
Browser DevTools
Access browser DevTools in the Tauri window:- macOS:
Cmd+Option+I - Windows/Linux:
Ctrl+Shift+I
Rust Console Output
View Rust backend logs in the terminal where you ranbun run tauri dev.
TypeScript Type Checking
Run TypeScript compiler in watch mode:Next Steps
Architecture Overview
Learn about MarkView’s technical architecture
Building for Production
Build and distribute MarkView binaries