Skip to content

nishantkluhera/MarkDraft

Repository files navigation

MarkDraft

A simple web app to convert Markdown to Word documents and PDFs. Built because I got tired of copying and pasting AI-generated content into Google Docs.

License: MIT Node Version

What it does

  • Converts Markdown to .docx files
  • Converts Markdown to PDF files (portrait or landscape)
  • Works well with content from ChatGPT, Claude, or any LLM
  • Has a clean web interface
  • No file uploads needed - just paste and convert

Quick start

git clone https://github.com/nishantkluhera/MarkDraft.git
cd MarkDraft
npm install
npm start

Open http://localhost:3000 and you're good to go.

Docker

If you prefer Docker:

docker-compose up -d

What's included

  • Express.js server
  • Markdown parsing with markdown-it
  • Word document generation using html-to-docx
  • PDF generation with Puppeteer
  • Basic security headers and rate limiting
  • Responsive web UI

Development

npm run dev          # Start with nodemon
npm test             # Run tests
npm run lint         # Check code style

Security stuff

  • Input validation and sanitization
  • Rate limiting (10 conversions per 15 minutes)
  • CORS protection
  • Standard security headers
  • No file storage (everything's processed in memory)

Contributing

PRs welcome! Just make sure tests pass and code is clean.

License

MIT - do whatever you want with it.

About

Your AI's Markdown, Perfectly Formatted.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published