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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@backlog-md/core

v0.3.0

Published

Runtime-agnostic core package for Backlog.md task management

Readme

@backlog-md/core

Runtime-agnostic core package for Backlog.md task management.

Status

Planning Phase - This repository contains design documentation and architecture diagrams for extracting the core functionality from Backlog.md into a standalone package.

Goals

  1. Runtime Independence - Core logic works in Bun, Node.js, or browser environments
  2. Adapter Pattern - All I/O operations abstracted via injectable adapters
  3. Testability - Full test coverage using in-memory adapters
  4. Reusability - Use Backlog.md's task management as a library

Documentation

| Document | Description | |----------|-------------| | Core Package Extraction Design | Architecture and migration plan | | Test Adapter Specification | Functionality requirements for test adapters |

Architecture Diagrams

Located in .principal-views/:

  • architecture.canvas - Core package internal structure
  • package-boundaries.canvas - What goes in core vs CLI
  • extraction-checklist.canvas - Migration review items

View with Principal View CLI:

npx @principal-ai/principal-view-cli validate .principal-views/*.canvas

Adapter Interfaces

The core package will expose these adapter interfaces:

// FileSystemAdapter - file operations
interface FileSystemAdapter {
  readFile(path: string): Promise<string>
  writeFile(path: string, content: string): Promise<void>
  exists(path: string): Promise<boolean>
  createDir(path: string, options?: { recursive?: boolean }): Promise<void>
  deleteFile(path: string): Promise<void>
  rename(from: string, to: string): Promise<void>
  // ...
}

// GlobAdapter - pattern matching
interface GlobAdapter {
  scan(pattern: string, options?: { cwd?: string }): AsyncIterable<string>
}

// GitAdapter - git operations
interface GitAdapter {
  exec(args: string[], options?: { cwd?: string }): Promise<ExecResult>
  isGitRepository(root: string): Promise<boolean>
  initRepository(root: string): Promise<void>
}

Usage (Planned)

import { Core } from "@backlog-md/core";
import { bunAdapters } from "@backlog-md/bun-adapters";

const core = new Core("/path/to/project", {
  adapters: bunAdapters,
});

// Create a task
const task = await core.createTaskFromData({
  title: "Implement feature",
  status: "todo",
  priority: "high",
});

// Query tasks
const tasks = await core.queryTasks({
  filters: { status: "in-progress" },
});

// Full-text search
const searchService = await core.getSearchService();
const results = await searchService.search({ query: "authentication" });

Testing (Planned)

import { Core } from "@backlog-md/core";
import { createTestAdapters } from "@backlog-md/core/test-adapters";

const adapters = createTestAdapters();
adapters.fs.seedFiles({
  "/project/backlog.json": '{"projectName": "Test"}',
});
adapters.git.mockBranch("main");

const core = new Core("/project", { adapters });

// Tests run in-memory, no filesystem access
const task = await core.createTaskFromData({ title: "Test", status: "todo" });
expect(task.id).toBe("1");

License

MIT