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

hybricmark

v0.1.7

Published

A headless, Typora-like Markdown editor for React, built on Tiptap.

Readme

hybricmark

npm version license

Headless, Typora-like Markdown editor for React. Built on Tiptap.

  • Live docs: https://txlan.top
  • Playground: https://txlan.top/playground

Recent Updates (v0.1.6)

  • Removed custom Delete interception in keyboard behavior to restore native ProseMirror forward-delete flow.
  • Kept stable list/headline editing path by avoiding aggressive key remapping in core editing shortcuts.
  • Refreshed docs (README + www/docs) for app-level outline integration (onDebouncedUpdate, heading extraction, click-to-scroll contract).
  • v0.1.2 build stability fix remains (stable Vite 7 output, browser-safe ESM build).

Previous Fixes (v0.1.2)

  • Fixed browser runtime error in ESM consumers:
    • Calling 'require' for "react" in an environment that doesn't expose the require function.
  • Root cause was unstable bundler output in library build.
  • Build pipeline is now pinned to stable Vite 7 to keep dist/hybricmark.es.js browser-safe.

Why HybricMark

  • Block-level UUIDs via attrs.id for product workflows (comments, references, patch updates).
  • Typora-style writing UX (context menu + keyboard shortcuts + markdown shortcuts).
  • Built-in table controls, footnotes, math, task lists, link interaction, and image support.
  • Uncontrolled editor architecture optimized for IME safety and large-document usage.

Install

npm install hybricmark @tiptap/core @tiptap/react @tiptap/starter-kit react react-dom

Quick Start

import { useState } from 'react'
import { HybricEditor } from 'hybricmark'
import 'hybricmark/style.css'
import 'katex/dist/katex.min.css'

export default function App() {
  const [doc, setDoc] = useState<object | null>(null)

  return (
    <div style={{ maxWidth: 920, margin: '40px auto' }}>
      <HybricEditor
        content="# Hello HybricMark\n\nType '/' for commands..."
        debounceMs={800}
        onChange={(editor) => setDoc(editor.getJSON())}
        onDebouncedUpdate={({ editor }) => {
          // Persist to DB/API here
          console.log('save', editor.getJSON())
        }}
      />

      <pre style={{ marginTop: 20, fontSize: 12 }}>
        {JSON.stringify(doc, null, 2)}
      </pre>
    </div>
  )
}

Core API

HybricEditor props (high-level):

  • content?: string | JSONContent
  • editable?: boolean
  • placeholder?: string
  • extensions?: Extension[]
  • editorProps?: EditorProps
  • debounceMs?: number
  • onChange?: (editor: Editor) => void
  • onUpdate?: ({ editor, transaction }) => void
  • onDebouncedUpdate?: ({ editor, transaction }) => void
  • onExtract?: (data: { id: string; content: JSONContent; text: string }) => void

Full reference: https://txlan.top/docs/api

Outline / Contents Integration (App Side)

HybricMark keeps editor core focused and exposes update hooks so the app can own outline UI.

Recommended flow:

  1. Use onDebouncedUpdate for low-noise heading extraction.
  2. Build a heading list from editor.getJSON() (H1~H3 or your own depth).
  3. Render the list in your right-side Contents panel.
  4. On click, resolve heading block and scroll/focus to it in the editor surface.

Example shape:

type OutlineItem = {
  id: string
  level: number
  text: string
  blockId?: string
}

This keeps typing smooth (no per-keystroke outline re-render) and makes app UX fully customizable.

Block Identity Example

{
  "type": "paragraph",
  "attrs": {
    "id": "f7652fb0-0815-4f41-9efb-b67fe7b18390"
  },
  "content": [{ "type": "text", "text": "Block-level targeting" }]
}

Notes for Next.js

  • Mount editor client-side (dynamic(..., { ssr: false })) for editing surfaces.
  • Keep editor uncontrolled during typing (especially Chinese IME scenarios).

Docs Index

  • Getting started: https://txlan.top/docs/getting-started
  • API reference: https://txlan.top/docs/api
  • Extensions: https://txlan.top/docs/extensions
  • Guides:
    • Saving to DB
    • Outline / Contents
    • Image uploads
    • Tables
    • Links
    • Keyboard shortcuts
    • Footnotes & math

Local Development

npm run dev
npm run lint
npm run build

License

MIT