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

twd-js

v1.8.2

Published

Test While Developing (TWD): in-browser test runner with a live sidebar UI for React, Vue, Angular, and Solid, with built-in API and component mocking.

Readme

TWD (Test While Developing)

CI npm version license Maintainability Code Coverage

Frontend tests that run in your real browser. Same DOM, same routes, same state as your dev server. For React, Vue, Angular, and Solid.

The problem

Testing gets pushed to next week, and next week never comes. When it does happen, tests usually run in a different environment from where you're building, so testing feels like overhead the moment you finish a feature.

The tooling pushes you the same way. You end up writing more code for the tests than for the feature itself, between setup, mocks, and helpers. Adding tests starts to feel like shipping a second app on top of the one you already finished.

As AI writes more of your code, the gap widens. Agents generate test files that look correct but never actually execute in a real browser. The mocks those tests rely on quietly drift from the real API over time. Fields get renamed, mocks stay frozen, tests pass, production breaks.

The solution

TWD puts tests inside your dev server. A sidebar appears in your real browser, runs tests against the same DOM your users see, and updates as you code. When you're ready, plug in an AI agent that writes tests, runs them via a WebSocket bridge, and iterates until they pass. When you ship, validate every mock against your OpenAPI spec to catch drift before a user does.

Test what you own. Mock what you don't.

Full pitch and docs at twd.dev.

Quick start

npm install --save-dev twd-js

Add the Vite plugin (auto-loads the sidebar and discovers your test files):

// vite.config.ts
import { defineConfig } from 'vite'
import { twd } from 'twd-js/vite-plugin'

export default defineConfig({
  plugins: [twd({ open: true })],
})

Write a test next to your code:

// src/App.twd.test.ts
import { twd, screenDom } from 'twd-js'
import { describe, it } from 'twd-js/runner'

describe('App', () => {
  it('shows the heading', async () => {
    await twd.visit('/')
    const heading = await screenDom.findByRole('heading', { level: 1 })
    twd.should(heading, 'be.visible')
  })
})

Run npm run dev and open the app. The TWD sidebar appears in your browser; click play to run the test.

Full setup guide · Framework integration (Angular, non-Vite, Astro, React Router)

The TWD ecosystem

One package today. The rest when you need it.

| Tool | What it does | | --- | --- | | twd-js | The core sidebar. Frontend tests that run in your real browser. | | twd-relay | Token-efficient browser testing for AI agents. Structured pass/fail over WebSocket. No Playwright, no screenshots. | | twd-cli | Headless CI runs with coverage and OpenAPI contract validation. |

Examples & showcase

All examples and community content

Documentation

Contributing

Open issues or pull requests on GitHub. If you're starting out in tech and looking for a beginner-friendly first PR, see the open issues. Reach out and the maintainer will help with setup and walk you through it.

Contributors ✨

This project follows the all-contributors specification. Contributions of any kind are welcome.

License

MIT