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

@psa-department-of-engineering/vitest-intent

v2.0.1

Published

The intent() wrapper for vitest - links a test to one or more CSD intent claims (INT-NNN). Spec validation and cross-runtime coverage live in the standalone `csd-intent` CLI.

Readme

vitest-intent

The intent() wrapper for vitest - links a test to one or more CSD intent claims.

CSD (Cognitive Software Delivery) is a language-agnostic methodology. This package is one specific implementation, scoped to Node/TypeScript projects using vitest. Sister project to pytest-intent and playwright-intent.

What this package is

A tiny TypeScript library (~80 LOC) that exposes a single helper:

import { expect } from 'vitest';
import { intent } from '@psa-department-of-engineering/vitest-intent';

intent('INT-FOO-001', 'rejects empty passwords', () => {
    expect(authenticate('user', '')).toBe(false);
});

// Multi-claim per test:
intent(['INT-FOO-002', 'INT-FOO-003'], 'parses and validates the token', () => {
    /* ... */
});

That's the entire public surface. intent() is a thin wrapper around vitest's test() - it validates the claim ID, then delegates to the underlying test(name, fn).

What it is NOT

  • Not a validator. Schema checks (CSD-INTENT-01), orphan detection (test references unknown claim), and cross-runtime coverage all live in the standalone csd-intent CLI - point it at any project to audit.
  • Not a vitest plugin. Just a function. No config, no setup files.
  • Not a generator. You write your tests; this annotates them.

Why split the wrapper from the auditor?

  • One concern per package. The wrapper runs inside vitest; the auditor is cross-language and runs standalone (CI step, pre-commit, ad-hoc).
  • Same intent() shape across runtimes. vitest-intent, pytest-intent, and playwright-intent all expose the same marker. The auditor reads all of them, regardless of which package put the marker there.
  • Tiny install. vitest-intent has no runtime dependencies beyond vitest itself.

Install

Published to the public npm registry. No .npmrc and no token — install it like any other package:

npm install --save-dev vitest @psa-department-of-engineering/vitest-intent

Local dev against a csd-library checkout:

npm install --save-dev --install-links ../path/to/csd-library/vitest-intent

--install-links makes npm pack the package per its files allowlist instead of symlinking the checkout (whose node_modules carries a dev vitest).

Peer dependency: vitest >= 1.0.

Companion: csd-intent

To validate your intent.yaml against CSD-INTENT-01 and check that every claim has a test:

csd-intent is not on PyPI — it installs from a pinned git tag on this repo (see ADR-0001), so the bare name resolves to nothing:

pip install "csd-intent @ git+https://github.com/PSA-Department-of-Engineering/[email protected]#subdirectory=csd-intent"
csd-intent /path/to/your/project

See csd-intent README for full options.

License

MIT.