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

@rashidazarang/import-markdown

v0.1.1

Published

Markdown manuscript importer for the subframe-v1 composition format. Reads a chapter .md (YAML frontmatter + minimal Markdown subset) and emits a schema-validated composition JSON; walks a manuscript tree and emits a subframe-book-v1 manifest.

Readme

@rashidazarang/import-markdown

Markdown manuscript importer for the subframe-v1 composition format. Reads a chapter .md (YAML frontmatter + a minimal Markdown subset: paragraphs, ##/###/#### headings, > epigraphs, --- section breaks, and inline **bold** / *italic* / _italic_) and emits a schema-validated composition JSON. Walks a manuscript tree and emits a subframe-book-v1 manifest.

Every emitted composition is validated against the canonical schema via @rashidazarang/subframe-core's validateComposition. Validation failures throw SubframeValidationError — they are never warnings.

Install

pnpm add @rashidazarang/import-markdown

CLI

# single chapter
resonant-import-md build-chapter ./chapter.md ./out/chapter.json

# whole manuscript tree
resonant-import-md build-book ./manuscript ./out

Exit codes:

  • 0 — success
  • 1 — invalid arguments
  • 2 — schema validation failure

Progress is logged to stderr — one line per chapter — plus a final summary with chapter count, total block count, and a section breakdown.

Programmatic

import { buildComposition, buildBook } from '@rashidazarang/import-markdown';

const doc = buildComposition('./chapter.md');
// doc is a CompositionDocument from @rashidazarang/subframe-core,
// already validated against subframe-v1.schema.json.

const { manifest, chapters } = buildBook({
  root: './manuscript',
  outDir: './out'
});
// manifest is a BookManifest; chapters is { id, outPath }[]
// so callers can post-process without re-reading the disk.

Frontmatter

The minimal frontmatter shape (every key optional except title):

---
title: Sobre Despertar
slug: sobre-despertar           # falls back to filename stem
section: parte-1-despertar      # used to group sections in book.json
part_number: 1                  # parte-N
part_title: "..."               # human label override for the section
chapter_number: 1               # null/omitted for intro chapters
order: 1                        # reading order within the section
language: es                    # BCP 47; defaults to "es"
book: manual-sobre-el-despertar
status: draft
---

Output format

Both outputs conform to the canonical schemas. See spec/subframe-v1.md for normative details and spec/subframe-v1.schema.json / spec/subframe-book-v1.schema.json for the validators.

License

Apache-2.0 — see LICENSE at the repository root.