A professional markdown editor with real-time preview and sharing capabilities.
💫 If you find this project useful, please consider giving it a star! ⭐ Star on GitHub
soummyaanon - Full Stack Developer
🚀 Live Demo: Marcko
- Real-time Preview: See your markdown rendered instantly as you type
- Syntax Highlighting: Code blocks with proper syntax highlighting
- Clean Interface: Distraction-free writing experience
- Responsive Design: Works seamlessly on desktop and mobile devices
- Node.js 18+
- pnpm (recommended) or npm
# Clone the repository
git clone https://github.com/soummyaanon/Marcko.git
# Navigate to the project
cd marcko
# Install dependencies
pnpm install
# Start the development server
pnpm devCreate a .env file with:
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
SUPABASE_SERVICE_ROLE_KEY=...
NEXT_PUBLIC_APP_URL=http://localhost:3000
BETTER_AUTH_URL=http://localhost:3000
BETTER_AUTH_SECRET=your-long-secret
BETTER_AUTH_DATABASE_URL=postgresql://...
BETTER_AUTH_DB_SSL_REJECT_UNAUTHORIZED=false
DOCUMENT_ENCRYPTION_KEY=replace-with-a-long-random-secret
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...BETTER_AUTH_DATABASE_URL should be your Supabase Postgres connection string.
Use the Supabase database URL from project settings (prefer the pooler URL for hosted environments).
Set BETTER_AUTH_DB_SSL_REJECT_UNAUTHORIZED=true in production if your environment has a trusted CA chain configured.
DOCUMENT_ENCRYPTION_KEY is used to encrypt shared document content at rest in the database and is required in production.
Signed-in users also get encrypted server-side draft autosave via /api/draft.
Run existing document schema and the new share-limit migration in Supabase SQL editor:
-- scripts/001_create_documents.sql
-- scripts/002_add_share_limits_and_document_owner.sqlGoogle OAuth redirect URI:
http://localhost:3000/api/auth/callback/googlepnpm build
pnpm start- Framework: Next.js 16
- Styling: TailwindCSS
- UI Components: Radix UI + shadcn/ui
- Markdown: Marked
- Syntax Highlighting: Highlight.js
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see the LICENSE file for details.