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

@diamondjs/dev

v2.2.2

Published

DiamondJS development meta-package: compiler + parcel transformer + tool bins (stink-check, route-check) + the toolchain (parcel, typescript), exact-pinned as one tested constellation.

Readme

💎 @diamondjs/dev

The complete DiamondJS dev toolchain in one install: compiler, Parcel transformer, Parcel itself, TypeScript, and the two build gates — exact-pinned as one tested constellation.


What is this?

The development meta-package. npm install --save-dev @diamondjs/dev and you're ready to build a DiamondJS application — no separate bundler or compiler setup:

| Dependency | What it is | |------------|------------| | @diamondjs/compiler | Template → transparent JS with [Diamond] hints and source maps | | @diamondjs/parcel-transformer-diamond | Zero-config Parcel 2 integration + run_mode__DIAMOND_DEV__ | | parcel | The bundler — npx parcel works out of the box | | typescript | The language — npx tsc works out of the box | | stink-check + route-check | The two DiamondJS build gates, as real bins (below) |

DiamondJS packages are exact-pinned (one tested constellation, never ranges); the external toolchain uses normal caret ranges.

Quick start

npm install @diamondjs/app
npm install --save-dev @diamondjs/dev

echo '{ "extends": "@parcel/config-default", "transformers": { "*.html": ["@diamondjs/parcel-transformer-diamond", "..."] } }' > .parcelrc

npx parcel src/index.html

The build gates

stink-check — the two-tier security audit

Compiles every Diamond template in your project and routes diagnostics by severity, never by code prefix: error (broken source) and warn (unsafe sink without raw, dead switch — a latent hole nobody declared) fail the build; declared (intentional raw escape hatches) are baselined in stink-baseline.json, so adding one is allowed — it just produces a diff that lands in code review. The tripwire is review visibility, not a build block.

npx stink-check            # CI gate: fails on errors and undeclared warns
npx stink-check --update   # rewrite the declared-raw baseline

route-check — build-time validation for route maps

Validates your route map against your actual templates, with errors that speak route IDs, not file offsets: unknown outlets, outlets owned by non-ancestors, missing param converters, unknown redirect targets, redirect cycles, site-path targets that shadow SPA routes, ambiguous route specificity, guards that never override check() — each with a did-you-mean naming the fix.

npx route-check src/app.routes.ts   # module exporting `routes` (or default)
✖ unknown-redirect-target  Route 'home': unknown route ID 'corpora'.
                           Did you mean { type: 'route-path', target: '/corpora' }?

Wire both into your package.json scripts and CI — red output, nonzero exit, no partial passes.


Part of DiamondJS — the first JavaScript framework designed for the human-LLM collaborative development era. The browser-side counterpart is @diamondjs/app; the union of both is @diamondjs/all.

License

MIT