Write faster without distractions
From NPM:
$ npm install pamphlet
You can also use a good old script tag:
<script src="https://unpkg.com/[email protected]/dist/umd/pamphlet.js"></script>
Or a fancy new module import:
import Pamphlet from 'https://unpkg.com/[email protected]/dist/esm/pamphlet.js'
This example sets up a Pamphlet editor with some prefilled content.
var content = '# Some Markdown'
var editor = new Pamphlet(document.body, content)
// Crude autosave, please don't use this in production :)
setInterval(() => {
localStorage.setItem('pamphlet-content', editor.content)
}, 7000)
Pamphlet aims to provide a fast and focused writing experience. To achieve this the UI is kept absolutely minimal. In fact, there is no UI at all. Formatting can be applied in two ways. You can either type Markdown syntax and get it rendered instantly. Or you can use keyboard shortcuts. Adding images is possible using drag-and-drop.
Because Pamphlet ships without its own UI, it will also fit right into any existing design. No fiddling with custom CSS, no compatibility issues. Do give it a try!
Pamphlet is built using ProseMirror, an amazing text editing toolset that does all the heavy lifting under the hood!
Apache-2.0