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

pict-section-inlinedocumentation

v1.0.1

Published

Pict embeddable inline documentation browser with topic support

Readme

pict-section-inlinedocumentation

Embed context-aware documentation and tooltip help directly inside any Pict application.

A Pict section that turns a folder of Markdown files into in-app help. Ships four progressively deeper embedding modes: a drop-in sidebar with a table of contents, route-mapped reading panes, hand-authored tooltips on specific controls, and auto-generated tooltips for every Manyfest-managed control in your app -- editable live when a content owner is signed in.

Part of the Retold suite.

Install

npm install pict-section-inlinedocumentation

Quick Usage

const libPict = require('pict');
const libInlineDocs = require('pict-section-inlinedocumentation');

const _Pict = new libPict({ Product: 'My App', Version: '1.0.0' });

_Pict.addSection('InlineDocumentation', libInlineDocs,
{
    DocumentationRoot: '/docs/',
    CatalogURL: '/docs/retold-catalog.json',
    DefaultTopic: 'overview',
    SidebarContainer: '#AppHelpSidebar'
});

_Pict.onAfterInitializeAsync = async () =>
{
    await _Pict.views.InlineDocumentation.renderAsync();
};

Add a container to your HTML and you're done:

<aside id="AppHelpSidebar"></aside>

Four Levels of Embeddedness

flowchart LR
    L1[1. Sidebar + ToC] --> L2[2. Route-Mapped]
    L2 --> L3[3. Hand-Authored Tooltips]
    L3 --> L4[4. Auto-Generated Tooltips]

| Level | What you get | Effort | |---|---|---| | 1 | Sidebar with a ToC of every topic | A few lines of config | | 2 | Help pane tracks the current route | Add a route map | | 3 | Tooltips on specific controls | data-help per control | | 4 | Tooltips on every Manyfest control, editable in-app | One call per form |

Each level is a strict superset of the one below it.

Highlights

  • Built on pict-view, integrates with pict-router
  • Consumes retold-catalog.json + retold-keyword-index.json from pict-docuserve
  • Safe Markdown renderer with Mermaid, code highlighting, and KaTeX
  • MutationObserver keeps tooltips bound as the DOM changes
  • Edit mode: content editors can rewrite topics from the running app and POST them back
  • Emits lifecycle events for analytics and audit

Scripts

| Script | What it does | |---|---| | npm test | Run Mocha TDD test suite | | npm run coverage | Code coverage via nyc/Istanbul | | npx quack build | Build the browser bundle |

Documentation

Full documentation lives in docs/ and is published via pict-docuserve:

Regenerate the catalog and keyword index after editing any Markdown file:

npx quack prepare-docs

Relationship to Other Retold Modules

| Module | Role | |---|---| | pict | Application framework | | pict-view | Base view class | | pict-router | Route change source for Level 2 | | pict-docuserve | Catalog + keyword index producer | | manyfest | Descriptors walked for Level 4 |

License

MIT -- same as the rest of the Retold suite.