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

obsidian-site

v1.3.1

Published

Build a static website from an Obsidian vault

Readme

Obsidian Site

A static site generator for Obsidian vaults. Converts your Markdown notes into a browsable website with an interactive link graph, wikilink navigation, and auto-generated backlinks.

Screenshot

Quick Start

Using the CLI

npx obsidian-site build --source /path/to/vault

Or install globally:

npm install -g obsidian-site
obsidian-site build --source /path/to/vault

This reads your vault, generates HTML pages, and writes them to public/ (or the directory specified in site.yaml).

Using the GitHub Action

# .github/workflows/deploy.yml
name: Deploy to GitHub Pages

on:
  push:
    branches: [main]

permissions:
  pages: write
  id-token: write

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deploy.outputs.page_url }}
    steps:
      - uses: actions/checkout@v4
      - uses: benelog/obsidian-site@v1
      - uses: actions/upload-pages-artifact@v3
        with:
          path: public
      - id: deploy
        uses: actions/deploy-pages@v4

Note: This workflow requires the repository's Settings → Pages → Build and deployment → Source to be set to GitHub Actions. For more details on the actions used above, see Using custom workflows with GitHub Pages.

Action Inputs

| Input | Default | Description | |----------|---------|------------------------------------------| | source | . | Path to the Obsidian vault | | output | | Output directory (overrides site.yaml) |

Configuration

Create a site.yaml in your vault root:

title: My Notes
subtitle: A collection of dev notes
lang: en
content-directory: content
output-directory: public
gitHub:
  repository-url: https://github.com/user/repo
  content-branch: main

| Key | Default | Description | |---------------------|----------------------|------------------------------------------------------| | title | Directory name | Site title shown in navigation | | subtitle | (empty) | Subtitle shown on the index page | | lang | en | HTML lang attribute | | content-directory | content | Directory containing .md files (relative to vault) | | output-directory | public | Build output directory (relative to vault) | | gitHub | | GitHub integration settings |

Setting gitHub.repository-url and gitHub.content-branch adds an "Edit" link to each page that points to the source file on GitHub.

CLI Reference

obsidian-site <command> [options]

Commands:
  build              Build the static site
  serve (server)     Build and start a local preview server

Options:
  --source <path>    Path to the Obsidian vault (default: current directory)
  --output <path>    Output directory (overrides site.yaml setting)
  --port <number>    Port for the preview server (default: 8000)

How It Works

Notes

  • All .md files in the content directory (including nested subdirectories) become pages
  • The filename becomes the page title (spring-boot -> "spring boot")
  • Headings are downgraded by one level (# -> ##, ## -> ###) since the filename is rendered as <h1>

Wikilinks

  • [[target]] links to target.html with display text derived from the filename
  • [[target|custom text]] links to target.html with the specified display text
  • Links to non-existent pages are rendered as strikethrough text

Related & Backlinks

  • A ## Related section in your note is extracted and rendered in the sidebar
  • Backlinks (pages that link to the current page) are automatically generated in the sidebar

Tags

  • Add tags via YAML frontmatter or inline #tag syntax in the body:
    ---
    tags: [programming, web]
    ---
    This note is about #javascript and #frontend development.
  • Tags from both sources are merged and displayed as clickable pills on each page
  • Clicking a tag navigates to the Tags page (tags.html#tag-{name}), which lists all pages grouped by tag

Edit Link

If gitHub.repository-url and gitHub.content-branch are set in site.yaml, each page includes an "Edit" link that opens the source Markdown file directly on GitHub for editing.

Local Graph

Each page displays a local graph in the sidebar, showing connections up to 2 levels deep from the current page.

Custom Layouts and Styles

You can override the default HTML templates and CSS by placing files in your vault:

  • _layouts/page.html — Custom template for individual pages
  • _layouts/index.html — Custom template for the index page
  • _styles/style.css — Custom stylesheet

Files in _layouts/ and _styles/ take precedence over the built-in defaults.

Index Page

The index page includes:

  • An interactive D3.js graph visualization of all note connections
  • A searchable list of all pages

Local Preview

npx obsidian-site serve --source /path/to/vault

Template Repository

Use obsidian Site Template to create a new site from scratch with a pre-configured GitHub Actions workflow. A live demo is available at https://benelog.github.io/obsidian-site-template.

License

MIT