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

@aewerdev/dokujs

v0.1.3

Published

Doku (.doku) compiler, builder and browser runtime for documentation, guides and books.

Readme

Doku (.doku)

Doku is a simple documentation format and toolchain for building online docs, guides, and books.

  • Write content in .doku files (Markdown + optional frontmatter in YAML --- or TOML +++).
  • Use the browser runtime to embed a doc: <script src="/path/to/dokujs.js"></script> then <doku src="/docs/intro.doku"></doku>.
  • Use the CLI to compile files or build full projects.

Install

Use your preferred package manager:

# npm
npm install -D dokujs

# pnpm
pnpm add -D dokujs

# yarn
yarn add -D dokujs

CLI

Unified command doku with subcommands:

# Create project
npx doku new my-docs

# Build (HTML site)
npx doku build my-docs --format=html

# Build (Doku client output: emits .doku pages + client index)
npx doku build my-docs --format=doku

# Compile a single .doku to HTML
npx doku compile path/to/file.doku path/to/output.html

Legacy binaries (still available): doku-new, doku-build, doku-compile.

Project Structure

my-doku/
  doku.toml
  version.yaml
  config.json
  index.html
  src/
    result.yaml
    assets/
      logo.svg
    intro.md
    intro.ru.md
    chapter1.md
    chapter1.ru.md
  res/
    index_<buildid>.html
    index_<buildid>.js
    assets/
      ... (copied from src/assets)
    assets-manifest.json

Browser Usage

<script src="/path/to/dokujs.js"></script>
<doku src="/docs/intro.doku"></doku>

Features

  • i18n: languages and language-specific nav in src/result.yaml. The built site includes a language dropdown and persists selection.
  • Theming: theme colors (theme.primary, theme.accent), dark/light theme toggle with highlight.js theme switching.
  • Code highlighting: highlight.js via Marked; works server-side (build) and client-side (runtime).
  • Icons & UI: Font Awesome + W3CSS + W3JS included in generated HTML.
  • Assets & Logo:
    • Put static files under src/assets/. They are copied unmodified to res/assets/ on build.
    • A manifest res/assets-manifest.json maps each relative asset path to a unique id (for stable references).
    • Set a header logo via logo: assets/logo.svg in src/result.yaml.

result.yaml (example)

title: My Docs
repo: https://github.com/your/repo
author:
  name: Your Name
  url: https://example.com
  avatar: https://...
theme:
  primary: "#0f62fe"
  accent: "#f1c21b"
logo: assets/logo.svg
languages:
  - code: en
    label: English
  - code: ru
    label: Русский
socials:
  - icon: github
    url: https://github.com/your
nav:
  en:
    - text: Introduction
      file: intro.md
  ru:
    - text: Введение
      file: intro.ru.md