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

@lostgradient/editor

v0.1.0

Published

Svelte 5 markdown editing, review, and diff-viewing components for Cinder — Milkdown/ProseMirror-based editing, threaded review comments, and word-level diffing.

Readme

@lostgradient/editor

@lostgradient/editor is Cinder's Svelte 5 markdown editing, review, and diffing surface — MarkdownEditor (Milkdown/ProseMirror-based rich editing), ReviewEditor (threaded comments, front matter, export), and DiffViewer (word-level Markdown diffing) — packaged separately so applications that only render buttons and tables do not install milkdown, prosemirror, or their own copy of @lostgradient/markdown.

Install

Install the package and its peer dependencies together:

bun add @lostgradient/cinder @lostgradient/editor @lostgradient/markdown @milkdown/ctx @milkdown/kit @milkdown/prose prosemirror-inputrules prosemirror-model prosemirror-state prosemirror-view svelte

The supported Svelte peer range is >=5.56.0 <6; this package is developed against Svelte 5.56.0. @lostgradient/cinder, @lostgradient/markdown, svelte, and the milkdown/prosemirror packages are all peer dependencies — your application supplies a single copy of each.

Import Cinder's global styles once in your application, then import a component from its own subpath:

import '@lostgradient/cinder/styles';
import MarkdownEditor from '@lostgradient/editor/markdown-editor';
<MarkdownEditor id="post-body" value={source} onchange={(next) => (source = next)} />

id is required — MarkdownEditorProps has no default and the component uses it for the accessibility identifiers it renders (labels, aria-* attributes on the editable surface).

Each component ships its own stylesheet, included by the component entry. review-editor also ships its stylesheet as a standalone asset via @lostgradient/editor/review-editor/styles. markdown-editor and diff-viewer style entirely through scoped <style> blocks compiled inline by Svelte — there is no separate /styles subpath for those two.

Components

  • @lostgradient/editor/markdown-editor — the rich Markdown editing surface.
  • @lostgradient/editor/review-editor — threaded review comments, front matter, and export, composing MarkdownEditor and DiffViewer.
  • @lostgradient/editor/diff-viewer — word-level Markdown diffing with front-matter and revert affordances.

Each component subpath also exposes /schema, /variables, and /examples. Only review-editor additionally exposes /styles (see above).

Why a separate package

@lostgradient/cinder used to carry milkdown, prosemirror, and this package's headless runtime as peerDependencies for exactly these three components. Installing Cinder for a <Button> asked your package manager to satisfy a full ProseMirror editor stack. See docs/decisions/package-boundaries.md for the full rationale — this package is Phase 3 of that plan.