marksight
by Rinava
README.md
# MarkSight
[](https://github.com/Rinava/MarkSight/actions/workflows/ci.yml)
[](https://github.com/Rinava/MarkSight/graphs/contributors)
[](https://github.com/Rinava/MarkSight/stargazers)
[](https://github.com/Rinava/MarkSight/commits/main)
[](./LICENSE)
[](./CONTRIBUTING.md)
**Turn any Markdown document into an installable [Claude Agent Skill](https://code.claude.com/docs/en/skills). One click, in your browser.** MarkSight is a free, open source Markdown editor whose core doubles as a remote [MCP](https://modelcontextprotocol.io) server that Claude Code can call directly. Live preview, GFM, Mermaid diagrams, and Markdown/HTML/PDF export come with it.
๐ **Live (no signup):** [marksight.laramateo.com](https://marksight.laramateo.com) ยท ๐งฉ One-click `.skill` export ยท ๐ Built-in MCP server ยท ๐ 100% client-side
<!-- Demo GIF slot โ drop a โค2 MB clip at docs/demo.gif (type markdown โ โโงK โ .skill downloads โ `claude mcp add`), then uncomment the line below. -->
<!--  -->
> โญ If MarkSight is useful to you, starring the repo helps others find it.
## Quick start
**Use it (nothing to install):**
1. Open [marksight.laramateo.com](https://marksight.laramateo.com), write or paste Markdown, and press **โโงK**. An installable `.skill` bundle downloads immediately.
2. Or add MarkSight's MCP server to Claude Code and let Claude build and validate skills for you:
```bash
claude mcp add --transport http marksight https://marksight.laramateo.com/api/mcp
```
Then ask Claude to turn Markdown into a skill or convert it to HTML. Tools: `create_skill`, `validate_skill`, `markdown_to_html`, `document_outline`, `document_metrics`.
Want to run MarkSight locally or contribute? See [Getting started](#getting-started).
## About
Every README I've ever written started the same way: type some Markdown into
GitHub's editor, click Preview, spot something broken, click back to Write,
fix it, click Preview again. Write, preview, write, preview. Tiny friction,
repeated a thousand times, stops being tiny. So I did the most programmer
thing possible: I built my own editor.
MarkSight is the editor I wanted to exist: the preview lives right next to
your words. No tabs, no round trips, everything rendering live as you type.
I built it with React, Next.js, TypeScript, and CodeMirror, and obsessed
over making it feel snappy. It runs entirely in your browser, with no
account and no server-side storage: your document sits in `localStorage`,
exports are generated on your machine, and your writing never leaves your
device.
I could have kept it as a private little tool that solved a private little
annoyance. Instead I made it open source, free for anyone to use, fork,
break, and improve. That decision turned out to matter more than any feature
I shipped. The longer version of that story is on my blog:
[Why I built an open source Markdown editor](https://laramateo.com/blog/open-source-markdown-editor).
## Features
- **Live preview** โ CodeMirror editor with an instantly-rendered preview pane
- **Smart toolbar** โ context-aware formatting that detects and toggles existing markdown
- **Keyboard shortcuts** โ bold (โB), italic (โI), strikethrough (โU), link (โK), inline code (โ`), headings (โโง1โ3), lists, and more
- **Document outline** โ auto-generated, clickable heading navigation that scrolls the preview
- **Export** โ download the raw Markdown source or styled HTML, print to PDF, or preview the HTML in a new tab; set a custom file name before exporting
- **Skill Creator** โ package your document as an [Agent Skill](https://code.claude.com/docs/en/skills) (โโงK) that Claude and other AIs can receive: copy the generated `SKILL.md` or download a ready-to-install `.skill` bundle. Import existing skills from a `.skill`/`.zip` file or straight from GitHub-hosted marketplaces (like [anthropics/skills](https://github.com/anthropics/skills)), modify them, and re-export with bundled files preserved
- **GitHub-flavored markdown** โ tables, task lists, strikethrough (via `remark-gfm`)
- **Syntax highlighting** โ fenced code blocks rendered with Prism
- **Mermaid diagrams** โ fenced `mermaid` blocks render as live SVG in the preview and exports, themeable per diagram via `%%{init}%%` directives or YAML frontmatter
- **Light / dark theme** โ system-aware, persisted across sessions
- **Local persistence** โ your document is saved to `localStorage` automatically
## Keyboard Shortcuts
> **Note:** On macOS, use **โ (Command)**. On Windows and Linux, use **Ctrl**.
| Action | macOS | Windows / Linux |
| -------------- | ----- | ---------------- |
| Bold | โ B | Ctrl + B |
| Italic | โ I | Ctrl + I |
| Strikethrough | โ U | Ctrl + U |
| Link | โ K | Ctrl + K |
| Inline Code | โ ` | Ctrl + ` |
| Heading 1 | โโง1 | Ctrl+Shift+1 |
| Heading 2 | โโง2 | Ctrl+Shift+2 |
| Heading 3 | โโง3 | Ctrl+Shift+3 |
| Unordered List | โ โง L | Ctrl + Shift + L |
| Ordered List | โ โง O | Ctrl + Shift + O |
## Editor Preview
### Light Theme

### Dark Theme

A fenced `mermaid` block renders as a diagram:
```mermaid
graph LR
A[Type Markdown] --> B[Live Preview]
B --> C{Export?}
C -->|HTML| D[Styled HTML]
C -->|PDF| E[Print-ready PDF]
C -->|Markdown| F[.md file]
```
## Tech stack
- [Next.js 16](https://nextjs.org/) (App Router) + [React 19](https://react.dev/)
- [Tailwind CSS v4](https://tailwindcss.com/) + [shadcn/ui](https://ui.shadcn.com/) primitives
- [CodeMirror](https://codemirror.net/) (`@uiw/react-codemirror`) for editing
- [react-markdown](https://github.com/remarkjs/react-markdown) + `remark-gfm` for rendering
- [Mermaid](https://mermaid.js.org/) for diagram rendering
- [next-themes](https://github.com/pacocoursey/next-themes) for theming
## Getting started
```bash
npm install
npm run dev # start the dev server at http://localhost:3000
```
Other scripts:
```bash
npm run build # production build
npm run start # serve the production build
npm run lint # run ESLint
```
### Exporting a document as an Agent Skill
One click: hit the package icon in the preview toolbar (or โโงK) and a
validated `<name>.skill` bundle downloads immediately. The metadata comes
from your document (the first H1 becomes the name, the first paragraph the
description) and the toast shows the add-to-Claude steps.
Everything optional lives in the **Agent Skill** sidebar card: edit the name
and trigger description inline (validated as you type), switch between
Instructions/Knowledge packaging, refine with AI, or import an existing skill
from a `.skill` file or a GitHub marketplace to edit and re-export.
Everything runs locally in your browser.
To add the skill to Claude Code:
```bash
unzip -o ~/Downloads/<name>.skill -d ~/.claude/skills/
```
It loads on the next session (or after `/reload-plugins`). On claude.ai,
upload the `.skill` file under **Settings โบ Capabilities โบ Skills**.
Optionally, an **Improve with AI** button refines the skill's name and trigger
description (via Vercel AI Gateway). It appears only when the backend has
gateway credentials (see [`.env.example`](./.env.example)); without them the
whole Skill Creator keeps working offline.
You can also **import an existing skill** from the same dialog: open a
`.skill`/`.zip` bundle or `SKILL.md` file, or paste a GitHub URL (a repo, a
folder, or a `SKILL.md` link, e.g. the official
[anthropics/skills](https://github.com/anthropics/skills) collection). The
skill's frontmatter is preserved (frontmatter always overrides auto-derived
metadata), bundled files like `references/` are carried through untouched, and
you can edit the body and re-export.
### MCP server (use MarkSight from Claude)
MarkSight exposes its core as a remote [MCP](https://modelcontextprotocol.io)
server at `/api/mcp` (streamable HTTP), so Claude and other MCP clients can
call it directly:
```bash
claude mcp add --transport http marksight https://marksight.laramateo.com/api/mcp
```
Tools: `create_skill` (markdown in, validated `.skill` bundle out as base64),
`validate_skill`, `markdown_to_html`, `document_outline`, and
`document_metrics`, all backed by the same `src/lib` code the editor uses. A project-scoped
[`.mcp.json`](./.mcp.json) is included, so cloning this repo wires the
connector automatically in Claude Code.
### Regenerating brand assets
App icons and social images are generated from inline SVG with `sharp`:
```bash
node scripts/generate-assets.mjs
```
This writes the manifest icons (`public/icon*.png`) and the Next.js
metadata images (`src/app/apple-icon.png`, `opengraph-image.png`, `twitter-image.png`).
## Project structure
```
src/
โโโ app/ # App Router entry (layout, page, metadata, route assets)
โ โโโ api/ # route handlers (MCP server, AI skill improvement)
โโโ components/ # UI components (editor, preview, toolbar, sidebar, โฆ)
โ โโโ ui/ # shadcn/ui primitives
โโโ contexts/ # React context providers
โโโ hooks/ # custom hooks
โโโ lib/ # utilities (slugify, local storage, syntax highlighter, โฆ)
โโโ proxy.ts # security headers / CSP
```
## Contributing
Contributions are welcome, whether it's a bug report, a feature idea, a docs
fix, or a pull request. See the [contributing guide](./CONTRIBUTING.md) for how
to set up the project and submit changes, and please follow our
[Code of Conduct](./CODE_OF_CONDUCT.md).
New here? Look for issues labelled
[`good first issue`](https://github.com/Rinava/MarkSight/issues?q=is%3Aopen+label%3A%22good+first+issue%22).
Release history lives in the [changelog](./CHANGELOG.md).
## Community
Questions, ideas, or just want to show what you built with MarkSight? Join the
conversation in [GitHub Discussions](https://github.com/Rinava/MarkSight/discussions).
For bugs and feature requests, open an
[issue](https://github.com/Rinava/MarkSight/issues).
## Contributors
Here's the thing nobody tells you about open sourcing a project: at some
point, the code stops being the point. The first time a stranger opened a
pull request here, I just sat there smiling at my screen. Every avatar below
is someone who read the code, understood it, and spent their free time
making it better:
<a href="https://github.com/Rinava/MarkSight/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Rinava/MarkSight" alt="MarkSight contributors" />
</a>
(Dependabot also sends its regards.)
Contributors are credited in the app too, on the
[About page](https://marksight.laramateo.com/about) and the workspace footer.
Want in? The [contributing guide](./CONTRIBUTING.md) has everything you need,
and
[`good first issue`](https://github.com/Rinava/MarkSight/issues?q=is%3Aopen+label%3A%22good+first+issue%22)
is the easiest way to start. PRs here get reviewed quickly instead of
collecting dust.
## Author
MarkSight was created and is maintained by
**[Lara Mateo](https://laramateo.com)** ([@Rinava](https://github.com/Rinava)).
MarkSight is built by the team behind [Kenda](https://www.kenda.app).
## License
[MIT](./LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessLimited data