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

@meechi-ai/semantic-markdown

v1.0.2

Published

Portably store rich span metadata in standard Markdown reference-style links.

Readme

Semantic Markdown 🌿

NPM Version License Bundle Size

Semantic Markdown is a portable, standards-aligned protocol for storing rich span metadata directly inside standard Markdown documents.

✨ View Live Demo

Created by Luis Michio Kobayashi as part of the Meechi ecosystem.

Why Semantic Links?

Most Markdown-based editors lose custom metadata when saving to .md. They either use non-standard HTML spans (<span data-id="123">) or sidecar JSON files that break portability and git-friendliness.

This package uses Reference-style Markdown links to turn the document footer into a lightweight database for your inline annotations.

The [selected text][ref-abc123] was interesting.

[ref-abc123]: # "type=comment; text=My note; author=user; quote=selected text"

Key Advantages

  • 100% Valid Markdown: Renders as normal links (to #) in any standard viewer (GitHub, Obsidian, etc).
  • Git-Friendly: Metadata in the footer avoids messy merge conflicts in the document body.
  • Portability: Your annotations stay with the file, not in an external database.

Interoperability & Safety

A core design goal of this protocol is Zero Side-Effects. It is designed to live alongside standard Markdown links without interference:

  • Private Namespace: The protocol only targets IDs with specific prefixes (e.g., ref-, col-) and a URL exactly matching #.
  • Standard Link Preservation: Regular links like [Google](https://google.com) or reference links like [My Ref][1] are ignored by the parser.
  • Graceful Fallback: In standard Markdown viewers, semantic links render as non-functional links to #. The document remains 100% readable and valid.

Reliability & Resiliency

The implementation includes several production-grade safeguards:

  • Whitespace Resiliency: Automatically ignores whitespace-only marks to prevent "ghost links" like [ ][id] from polluting your documents.
  • Automatic Upgrades: Can detect and "upgrade" legacy <span style="color:..."> tags into clean semantic links during the save process.
  • Convergent Stability: The fragment merging algorithm handles complex, multi-layered formatting (nested bold/italic) by iterating until the Markdown structure is perfectly stable.

Implementations

Looking for a ready-to-use editor integration?

Metadata Examples

The protocol is schema-agnostic. While you can use any string for the ID, we recommend using ID Prefixes to categorize metadata at a glance:

1. Comments & Notes (ref- prefix)

Track discussions or personal thoughts on specific sentences. [ref-abc123]: # "type=comment; text=Need to verify this; author=luis"

2. Semantic Highlighting (col- prefix)

Attach colors or themes to words without using CSS in the body. [col-xyz789]: # "type=color; color=oklch(55% 0.15 250); label=Important"

3. AI Provenance (ai- prefix)

Track which parts of a document were generated by an AI vs. a Human. [ai-gen456]: # "type=provenance; source=ai; model=gpt-4; confidence=0.98"

4. Citations & Sources (cite- prefix)

Link text to specific database IDs or external library references. [cite-doc789]: # "type=citation; paperId=arxiv-1234; page=12"


Installation

yarn add @meechi-ai/semantic-markdown

Usage

import { parseSemanticDefinitions, generateLinkId } from '@meechi-ai/semantic-markdown';

// Generate a categorized ID
const commentId = generateLinkId('ref-'); // returns "ref-abc123"

// Define your own schema
interface MyMeta extends SemanticMetadata {
  text?: string;
  author?: string;
}

const defs = parseSemanticDefinitions<MyMeta>(markdownContent);

Spec: The Footer Format

The protocol follows a strict reference-link format: [id]: # "key1=encodedValue1; key2=encodedValue2"

  • URL: Always # to ensure links are non-functional in viewers.
  • Title: A semicolon-delimited list of key=value pairs.
  • Encoding: Values are URL-encoded to support special characters (;, ", etc.).

License

MIT.