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

@doxi/core

v0.11.0

Published

Doxiva core: engine, model, view, plugins.

Readme

@doxi/core

The Doxiva editor engine: schema, transactions, state, view, plugins, commands, layout, and styles. Zero runtime dependencies.

Status: v0.10.x preview. The v0.9.x public API surface is the candidate for the v1.0 freeze — see STABILITY.md.

Install

pnpm add @doxi/core

Quickstart (vanilla DOM)

import {
  defaultSchema,
  defaultRenderer,
  EditorState,
  EditorView,
  historyPlugin,
} from '@doxi/core'
import '@doxi/core/styles/base.css'
import '@doxi/core/styles/light.css'

const state = EditorState.create({
  schema: defaultSchema,
  plugins: [historyPlugin().plugin],
})

const view = new EditorView({
  mount: document.getElementById('editor')!,
  state,
  renderer: defaultRenderer,
  ariaLabel: 'Document editor',
})

// Dispatch a transaction
view.dispatch(view.state.tr.insertText('Hello, world.'))

Subpath exports

@doxi/core exposes layered subpaths so consumers can import only what they need:

| Subpath | What's there | |---|---| | @doxi/core | Top-level re-exports of the most common API | | @doxi/core/model | Schema, nodes, marks, positions, fragments | | @doxi/core/transform | Transform steps (ReplaceStep, AttrStep, SetPageMetaStep, …) | | @doxi/core/state | EditorState, Selection, TextSelection, NodeSelection, CellSelection | | @doxi/core/plugin | Plugin API and built-ins | | @doxi/core/history | Undo/redo plugin | | @doxi/core/commands | Headless commands (text, lists, tables, images, links, page break, …) | | @doxi/core/view | EditorView, input pipeline, decorations, printDocument, setPrintPageSize | | @doxi/core/layout | Paginator, page boxes, header/footer slot controller | | @doxi/core/schema | defaultSchema and its node/mark definitions | | @doxi/core/serialize | JSON ↔ document tree | | @doxi/core/html | HTML ↔ document tree with paste sanitization | | @doxi/core/collab | Collaboration port (used by @doxi/collab) |

Stylesheets

CSS lives under @doxi/core/styles/. Import the ones you need:

import '@doxi/core/styles/base.css'       // structural styles (required)
import '@doxi/core/styles/light.css'      // light theme
import '@doxi/core/styles/dark.css'       // dark theme
import '@doxi/core/styles/page.css'       // paginated mode chrome
import '@doxi/core/styles/print.css'      // @media print
import '@doxi/core/styles/print-a4.css'   // optional A4 @page size

Bundle size

Tracked per release in docs/bundle-budget.md. Run pnpm bundle-size from the repo root.

License

MIT