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

jsonidian

v0.1.0

Published

Compile an Obsidian vault into static JSON + assets for SSG consumers

Readme

jsonidian

Compile an Obsidian vault into static JSON + assets for SSG consumers (Next.js static export, etc.).

Author in Obsidian. Build once. Consume the JSON at your app's build time.

Install

npm install jsonidian

CLI

npx jsonidian build --content ./content --out ./public --asset-base-url ""

| Flag | Default | Description | |------|---------|-------------| | --content | content | Vault root | | --out | public | Output directory | | --asset-base-url | "" | Prefix for asset URLs (""/assets/..., or a CDN origin) | | --embed-depth | 3 | Max recursion for ![[note]] embeds |

Library

import { build } from "jsonidian";

const result = await build({
  contentDir: "./content",
  outDir: "./public",
  assetBaseUrl: "https://cmsstatic.example.com",
});

Output contract

Page{slug}.json

type PageJson = {
  slug: string;
  relativePath: string;
  aliases: string[];
  frontmatter: Record<string, unknown>;
  description?: string;
  toc: { depth: number; text: string; slug: string }[];
  links: string[];
  htmlAst: import("hast").Root; // render with hast-util-to-jsx-runtime
  text: string;
};

Folder index{folder}/index.json (e.g. blog/index.json). Root-level listing is _index.json so it does not overwrite the home page index.json.

type IndexEntry = { slug: string; frontmatter: Record<string, unknown> };

blog/index.md collapses to slug blogblog.json (page body). Sibling posts are listed in blog/index.json.

Assetscontent/assets/** copied to {out}/assets/**. Image src and common cover frontmatter fields are rewritten with assetBaseUrl.

Publish filter — skips draft: true and is_published: false.

Obsidian features (v1)

  • Wikilinks [[note]] / [[note|alias]] (shortest-path resolution)
  • Image embeds ![[image.webp|400]]
  • Note embeds ![[other-note]] (inlined at build)
  • GFM (tables, strikethrough, task lists, …)
  • Callouts / highlights / comments via mdian

Thin content repo

{
  "scripts": {
    "build": "jsonidian build --content content --out public"
  },
  "dependencies": {
    "jsonidian": "^0.1.0"
  }
}

Keep only content/ in the vault repo. Point your Next.js (or other) site at the emitted JSON.

License

MIT