# pamphlet

> Write faster without distractions

Latest version **4.0.0** (published 2020-06-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install pamphlet
pnpm add pamphlet
yarn add pamphlet
bun add pamphlet
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2020-06-22 |
| First published | 2018-02-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Brecht Savelkoul |
| Maintainers | savelbr |
| Keywords | editor, prosemirror, markdown, fast, focus, distraction |

## Links

- npm: https://www.npmjs.com/package/pamphlet
- Repository: https://github.com/pamphlets/pamphlet
- Homepage: https://github.com/pamphlets/pamphlet#readme
- Issues: https://github.com/pamphlets/pamphlet/issues
- npm.io page: https://npm.io/package/pamphlet

## Dependencies (10)

- [wordcount](https://npm.io/package/wordcount.md) ^1.1.1
- [prosemirror-view](https://npm.io/package/prosemirror-view.md) ^1.14.11
- [prosemirror-state](https://npm.io/package/prosemirror-state.md) ^1.3.3
- [prosemirror-keymap](https://npm.io/package/prosemirror-keymap.md) ^1.1.4
- [prosemirror-history](https://npm.io/package/prosemirror-history.md) ^1.1.3
- [prosemirror-commands](https://npm.io/package/prosemirror-commands.md) ^1.1.4
- [prosemirror-markdown](https://npm.io/package/prosemirror-markdown.md) ^1.4.5
- [prosemirror-dropcursor](https://npm.io/package/prosemirror-dropcursor.md) ^1.3.2
- [prosemirror-inputrules](https://npm.io/package/prosemirror-inputrules.md) ^1.1.2
- [prosemirror-example-setup](https://npm.io/package/prosemirror-example-setup.md) ^1.1.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2020-06-22
- 3.3.2 — 2020-06-22
- 3.3.1 — 2020-06-22
- 3.3.0 — 2020-06-15
- 3.2.1 — 2020-06-13
- 3.2.0 — 2020-06-13
- 3.1.0 — 2020-06-11
- 3.0.1 — 2020-06-10
- 3.0.0 — 2020-06-10
- 2.1.0 — 2020-06-09
- 2.0.1 — 2020-06-08
- 2.0.0 — 2020-06-08
- 1.0.2 — 2020-05-30
- 1.0.1 — 2020-05-30
- 1.0.0 — 2020-05-29
- … 2 more at https://npm.io/package/pamphlet/versions

## README

# Pamphlet

Write faster without distractions

## Install

From NPM:

```
$ npm install pamphlet
```

You can also use a good old script tag:

```html
<script src="https://unpkg.com/pamphlet@3.x/dist/umd/pamphlet.js"></script>
```

Or a fancy new module import:

```js
import Pamphlet from 'https://unpkg.com/pamphlet@3.x/dist/esm/pamphlet.js'
```

## Use

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](https://github.com/ProseMirror/prosemirror-example-setup/blob/master/src/keymap.js#L14). 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!

## Credit

Pamphlet is built using [ProseMirror](https://prosemirror.net), an amazing text editing toolset that does all the heavy lifting under the hood!

## License

Apache-2.0

---
_Source: https://npm.io/package/pamphlet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
