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

inkpress-renderer

v0.2.1

Published

Render Obsidian vault folders into a static HTML site

Readme

English | 简体中文

inkpress-renderer

将 Obsidian 知识库文件夹渲染为静态 HTML 站点,使用偏文学、阅读优先的默认主题。

Inkpress 默认主题

默认主题

以阅读为中心的版式:侧栏导航、面包屑、TOC、反向链接、暗色模式,按 ? 唤出快捷键面板。三种 variant —— technical(默认)、editorialmanuscript,各自配 light + dark。

在渲染时选择 variant:

await renderSite({ ...options, variant: 'editorial' })

安装

pnpm add inkpress-renderer

基本用法

import { renderSite, DefaultTheme, FileSystemAdapter } from 'inkpress-renderer'

const adapter = new FileSystemAdapter('/path/to/vault')

const result = await renderSite({
  adapter,
  theme: DefaultTheme,
  publishDirs: ['Notes', 'Blog'],
  siteTitle: 'My Site',
})

console.log(result.pages)   // rendered HTML pages
console.log(result.assets)  // theme assets to copy

核心接口

RenderOptions

| 字段 | 类型 | 说明 | |------|------|------| | adapter | FileSystemAdapter | 提供对知识库文件的访问 | | theme | Theme | 主题对象(使用 DefaultTheme) | | publishDirs | string[] | 需要发布的知识库文件夹 | | siteTitle | string | 显示在导航栏中的站点标题 | | baseUrl | string? | 可选的基础 URL 前缀 |

RenderResult

| 字段 | 类型 | 说明 | |------|------|------| | pages | RenderedPage[] | 渲染后的 HTML 页面数组 | | assets | ThemeAsset[] | 主题所需的静态资源 | | siteJson | object | 站点元数据(见下文) |

site.json

每次渲染都会生成一个 site.json 清单文件,描述页面树、导航结构和元数据。该文件面向未来扩展,例如搜索索引、增量重建和 CI 差异对比。

Inkpress 生态