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

kl-sqlite-card-state

v0.1.5

Published

kanban-lite card.state plugin for SQLite-backed actor-scoped card state

Downloads

412

Readme

kl-sqlite-card-state

A first-party kanban-lite package for a SQLite-backed card.state provider.

What it provides

This package implements the shared card.state contract used by kanban-lite for:

  • actor-scoped unread cursor persistence
  • explicit open-card state persistence
  • parity with the built-in file-backed card.state backend for unread derivation inputs and read/open mutations when exercised through the SDK

Unread derivation itself remains SDK-owned; this package persists the actor/card/domain state that the SDK reads and writes.

Provider id

sqlite

Capability

  • card.state

Install

npm install kl-sqlite-card-state

Configure

Use the sqlite compatibility id under plugins['card.state']:

{
	"version": 2,
	"plugins": {
		"card.state": {
			"provider": "sqlite",
			"options": {
				"sqlitePath": ".kanban/card-state.db"
			}
		}
	}
}

Options

  • sqlitePath — optional relative or absolute SQLite database path. Defaults to .kanban/card-state.db.

Exports

The package exports:

  • createCardStateProvider(context)
  • defaultcreateCardStateProvider
  • SQLITE_CARD_STATE_PROVIDER_ID
  • DEFAULT_SQLITE_CARD_STATE_PATH

The factory returns a contract-compatible provider with the same four operations expected by the SDK capability loader:

  • getCardState(...)
  • setCardState(...)
  • getUnreadCursor(...)
  • markUnreadReadThrough(...)

Semantics

  • unread state is scoped by actorId + boardId + cardId
  • explicit open state is stored independently from unread cursor state
  • reads are side-effect free until the SDK calls an explicit mutation (markCardOpened() / markCardRead())
  • auth-absent mode still uses the same stable default actor contract as the built-in backend because actor resolution lives in the SDK, not in the provider

Build output

The published CommonJS entrypoint is:

dist/index.cjs

Declaration output is emitted to dist/index.d.ts.

Development

npm install
npm run build
npm test
npm run test:integration
npm run typecheck

From the repository root you can also run:

pnpm --filter kl-sqlite-card-state build
pnpm --filter kl-sqlite-card-state test
pnpm --filter kl-sqlite-card-state test:integration
pnpm --filter kl-sqlite-card-state typecheck