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

blocpad-cli

v0.2.6

Published

BlocPad CLI: safe, human-approved task workflows for AI-assisted development.

Downloads

186

Readme

BlocPad CLI (blocpad)

BlocPad CLI is a terminal interface for reading BlocPad context (projects, tasks, pages) and driving a step-by-step execution workflow for engineering agents.

Install

npm i -g blocpad-cli
blocpad --help

Or run without installing:

npx blocpad-cli --help

Login (one-time)

Default API base URL is https://www.blocpad.com.

  1. Create a Personal Access Token in BlocPad:
  • Go to https://www.blocpad.com/settings
  • Create a token (you’ll get a bp_pat_... value). Recommended scopes: cli:read, cli:tokens
  1. Log in:
blocpad auth login --token bp_pat_...
  1. Verify:
blocpad auth status
blocpad context show

Fetch task context (for AI tools)

Given a task number (example: 123 or ERS-1), fetch everything needed to start work:

blocpad task ERS-1 --md

If the task is a parent (has subtasks), prefer focusing the next leaf subtask:

blocpad tasks focus ERS-1 --md

Helper commands

Projects:

blocpad projects list --json
blocpad context show --json

Tasks (active project required):

blocpad tasks list --md
blocpad tasks show ERS-1 --md
blocpad tasks comments ERS-1 --md
blocpad tasks breadcrumb ERS-1
blocpad tasks tree ERS-1 --md
blocpad tasks next ERS-1 --json
blocpad tasks focus ERS-1 --md

Pages / Wiki:

blocpad pages list --json
blocpad pages show <pageId> --md

Cursor Prompt (Frontend Agent)

Paste this into Cursor’s rules / custom instructions:

You are a frontend engineering agent working from BlocPad tasks via the `blocpad` CLI.
Your job is to fetch tasks, detect parent/child nesting, and implement independent leaf tasks first
(leaf = no incomplete subtasks).

Commands you may use:
- List tasks (includes hierarchy fields): `blocpad tasks list --json`
- Show task detail: `blocpad tasks show <TASK_NUMBER_OR_ID> --md`
- Get breadcrumb/tree view: `blocpad tasks tree <TASK_NUMBER_OR_ID> --json`
- Pick next leaf under a parent: `blocpad tasks next <TASK_NUMBER_OR_ID> --json`
- Export full context for next leaf: `blocpad tasks focus <TASK_NUMBER_OR_ID> --md`

Workflow:
1) Fetch all tasks:
   - Run `blocpad tasks list --json`
2) Build a hierarchy in memory using `parentTaskId` / `parent_task_id`:
   - Identify roots (no parent) and children.
   - Identify leaf tasks (no children).
3) Prioritize work:
   - Work on independent leaves first: leaf tasks whose parent is null OR whose parent is already done OR tasks that don’t depend on unfinished siblings.
   - Prefer status order: `in_progress` first, then `todo/open`, skip `done`.
4) For each chosen leaf task:
   - Load full context: `blocpad tasks show <LEAF_TASK_NUMBER_OR_ID> --md`
   - Implement only that task in the codebase (frontend scope).
   - Run relevant frontend checks/tests/build.
5) After finishing one leaf task, repeat step 1–4 until no remaining leaf tasks exist.
6) If a task is a parent (has children), do not implement it directly—use:
   - `blocpad tasks next <PARENT_TASK_NUMBER_OR_ID> --json`
   - `blocpad tasks focus <PARENT_TASK_NUMBER_OR_ID> --md`
   and work on the suggested leaf.

Rules:
- Never work on more than one task at a time.
- If a task is unclear or blocked by missing backend/API/design, ask one focused question and stop.
- Keep changes minimal, production-quality, and aligned with existing UI patterns.

Docs

  • docs/CLI.md
  • docs/BACKEND_CHECKLIST.md

Publishing to npm (maintainers)

npm login
npm test
npm run typecheck
npm run build
npm_config_cache="$PWD/.npm-cache" npm pack --dry-run
npm_config_cache="$PWD/.npm-cache" npm publish --access public
rm -rf .npm-cache