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-checklist

v1.1.0

Published

Inline-editable, nestable checklists for Pict: leaf checkboxes, per-tier and overall progress, a read-only view, and a pluggable data provider that defaults to in-memory AppData so it works in the browser with no backend.

Readme

pict-section-checklist

Inline-editable, nestable checklists for Pict. Leaf checkboxes, per-tier and overall progress, a read-only view, and a pluggable data provider that defaults to in-memory so the control works in the browser with no backend.

Install

npm install pict-section-checklist

Quick start

const libChecklist = require('pict-section-checklist');

pict.addView('MyChecklist', Object.assign({}, libChecklist.default_configuration,
{
    Context: { OwnerType: 'WorkItem', IDOwner: 4012 },
    Title: 'Acceptance checks'
}), libChecklist);

pict.views['MyChecklist'].render();

With nothing else wired the control stores everything in an in-memory provider backed by AppData. It works the moment it mounts; pass a DataProvider to persist.

Editing

  • Type in an item to name it.
  • Enter adds a sibling below.
  • Tab nests the item under the one above it, Shift+Tab promotes it.
  • Backspace on an empty item removes it.
  • Check leaves off. An item with children becomes a group and shows the share of its leaves that are done, at every tier and overall.

The data seam

Every read and write goes through a ChecklistDataProvider. The default is InMemoryChecklistProvider. To persist, subclass ChecklistDataProvider, implement six Promise-returning primitives, and pass the instance as DataProvider:

class MyProvider extends libChecklist.ChecklistDataProvider
{
    getList(pContext)        { /* -> Promise<List>   */ }
    updateList(pKey, pPatch) { /* -> Promise<List>   */ }
    listItems(pListKey)      { /* -> Promise<Item[]> */ }
    createItem(pDraft)       { /* -> Promise<Item>   */ }
    updateItem(pKey, pPatch) { /* -> Promise<Item>   */ }
    deleteItem(pKey)         { /* -> Promise<void>   */ }
}

pict.addView('MyChecklist', Object.assign({}, libChecklist.default_configuration,
    { Context: { OwnerType: 'WorkItem', IDOwner: 4012 }, DataProvider: new MyProvider() }), libChecklist);

Record shapes (neutral; a backend provider maps its own rows to and from these):

Context { OwnerType, IDOwner }
List    { Key, OwnerType, IDOwner, Title }
Item    { Key, ListKey, ParentKey|null, Title, Done, Sort, Notes, Collapsed }

Options

| Option | Default | Notes | |---|---|---| | Context | { OwnerType:'Standalone', IDOwner:'1' } | What the checklist is attached to. | | DataProvider | null | Null makes an in-memory one backed by AppData. | | Title | 'Checklist' | Used when the provider first creates the list. | | ReadOnly | false | Renders the tree and progress with no editing affordances. | | ShowProgress | true | The overall progress bar in the header. | | ShowGroupProgress | true | A small progress readout on each group. | | EditableTitle | true | Allow renaming the list title inline. |

Events

Pass any of these as options; each receives its payload and the view: onChange, onItemAdded, onItemEdited, onItemToggled, onItemDeleted, onListRenamed.

Theming

The control reads only var(--theme-color-*) tokens (the background, text, brand, border, and status families), so an active pict-section-theme recolors all of it, light or dark. Nothing is hard-coded; the only literals are fallback hexes. Delete confirmations use pict-section-modal, which the view registers for you.

Demos

npm run build

then serve either dist folder:

  • example_applications/checklist_demo -- standalone, in-memory, persisted to localStorage, with read-only and dark-mode toggles.
  • example_applications/checklist_backend_demo -- the same control over a custom async provider with simulated latency, the shape a real backend takes.

License

MIT