npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rewritable

v0.3.0

Published

CLI for re-writeable: emit and import single-file rwa documents.

Downloads

279

Readme

rwa

CLI for re-write-able — emit and import single-file rwa documents.

A re-writeable file is a self-contained .html that renders, stores, modifies, and commits itself with no server. Open it in a browser, press ⌘K, and tell it what to become.

Install

npx rewritable --help       # zero-install (one-time cost is the longer name)
npm i -g rewritable         # global; after this, the bin is `rwa` so daily use is `rwa <verb>`

Requires Node ≥ 18.

Usage

rwa new [path]              # → ./rewritable.html (default)
rwa new my-notes.html       # → ./my-notes.html

rwa import notes.md         # → ./notes.html
rwa import page.html out.html

rwa new

Writes a fresh rwa container with a unique per-file DOC_UUID, a filename-derived <title>, and the seed's "Hello, world." starter content. Press ⌘K in the browser to make it become anything.

rwa import <input> [path]

Embeds the input file's content as the document's initial state. Supported formats:

  • .md, .markdown — converted via marked (GFM enabled)
  • .html, .htm<!DOCTYPE>/<html>/<head>/<body> shells stripped, <style> tags retained from <head>, body content kept as-is. <script> tags are preserved (rwa documents support inline JS); a stderr warning is printed when scripts are detected.
  • .csv — parsed via papaparse (RFC 4180; handles quoted commas, embedded newlines, escaped quotes, BOM). First row becomes <thead>, remaining rows <tbody>; every cell is HTML-escaped. Parse warnings print to stderr but don't abort the import.
  • .txt — paragraph-split on blank lines, HTML chars escaped

Output defaults to <input-basename>.html in the input's directory. Conversion is deterministic and offline — no API key, no network.

Flags

| Flag | Effect | |---|---| | --force, -f | overwrite the destination if it exists | | --open, -o | open the resulting file in the default app | | --version | print version | | --help, -h | usage |

Exit codes

  • 0 — success
  • 1 — generic error (read failure, bad seed, etc.)
  • 2 — bad arguments / unsupported format / destination conflict

Design

This CLI is offline-first. It ships with its own pinned copy of the bootstrap seed; nothing is fetched from a server. The bootstrap version embedded in any file you create is fixed at the moment of rwa new / rwa import. To upgrade an existing file's bootstrap to a newer version, see the project's rwa upgrade (planned).

The seed and the runtime in any file the CLI emits are byte-identical to the seed used by the hosted service at rewritable.ikangai.com. Files emitted by either channel are interchangeable.

License

MIT