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

@devalok/eslint-plugin-shilp-sutra

v0.2.0

Published

ESLint rules for @devalok/shilp-sutra — catches deprecated APIs, peer-cliff barrel imports, TW3-era utility classnames, and ships autofixes that turn breaking-change migrations into one-command codemods.

Readme

@devalok/eslint-plugin-shilp-sutra

ESLint rules for the @devalok/shilp-sutra design system. Catches deprecated APIs, peer-cliff barrel imports, TW3-era class names, and ships autofixes that turn breaking-change migrations into one-command codemods.

pnpm add -D @devalok/eslint-plugin-shilp-sutra

Use it

Flat config (ESLint 9+)

// eslint.config.ts
import shilpSutra from '@devalok/eslint-plugin-shilp-sutra'

export default [
  shilpSutra.configs['flat/recommended'],
]

Legacy .eslintrc

{
  "extends": ["plugin:@devalok/shilp-sutra/recommended"]
}

Three presets

| Preset | Use case | |---|---| | recommended | Daily: migration rules at error, advisory rules at warn. What most consumers want. | | strict | Every rule at error. CI gate for clean repos. | | migration | Migration rules only. Run once after a DS upgrade: pnpm eslint --fix --config <plugin/flat-migration> src/. Skip after the upgrade lands. |

The migration codemod loop

When you upgrade @devalok/shilp-sutra:

pnpm up @devalok/shilp-sutra@latest
pnpm eslint --fix src/                # autofixes 9 of 12 rules
git diff                              # review
pnpm test

Most breaking changes from 0.23 → today fix themselves. Per-site judgment calls (e.g. no-tailwind-config-preset removal, useToast() call-site rewrite, toast({})toast.success()) flag without autofix.

All 12 rules

| Rule | What | Autofix? | Applies from | |---|---|---|---| | no-deprecated-button-variant | <Button variant="default">variant="solid"; variant="destructive">variant="solid" color="error"; color="default">color="accent" | ✅ | 0.32.0 | | no-deprecated-surface-token | bg-surface-1bg-surface-base, bg-surface-2bg-surface-raised, etc. Same for border-surface-N, text-surface-N, etc. | ✅ | 0.23.0 | | no-deprecated-shadow-token | shadow-01shadow-raised, shadow-02shadow-raised-hover, etc. shadow-05 flagged (removed entirely). | ✅ (except shadow-05) | 0.23.0 | | no-deprecated-chip | <Chip><Badge>. Imports + JSX rewritten. | ✅ | 0.32.0 | | no-tailwind-config-preset | Flags import shilpSutra from '@devalok/shilp-sutra/tailwind' and presets: [shilpSutra] in tailwind.config.*. | ❌ (multi-file migration) | 0.38.0 | | prefer-per-component-import | Splits barrel imports of cliff symbols (Toaster, DatePicker, RichTextEditor, MarkdownViewer, FilePreview, InputOTP, EmojiPicker, BlockRenderer, ErrorBlock, TextBlock) into their per-component subpaths. | ✅ | 0.40.0 | | use-toast-deprecated | Flags useToast(). Autofix renames the import to toast; call-site rewrite is left for human review. | partial | 0.30.0 | | no-bg-gradient-to | TW3 bg-gradient-to-r → TW4 bg-linear-to-r. | ✅ | 0.37.0 | | no-css-var-bracket | TW3 w-[--var] → TW4 w-(--var). | ✅ | 0.37.0 | | no-iconbutton-children | <IconButton>{...}</IconButton><IconButton icon={...} />. | ✅ (single child) | 0.1.0 | | no-bare-shadow | Bare shadow class — renders no shadow in TW4. Pick shadow-raised / shadow-floating / shadow-overlay. | ❌ (consumer chooses intent) | 0.37.0 | | toast-object-syntax | toast.success({title}) or toast({title}) — both are old shapes. Use positional toast.success("message", { description }). | ❌ (context-dependent rewrite) | 0.30.0 |

Bail on dynamic class names

Rules that scan className strings (no-deprecated-surface-token, no-deprecated-shadow-token, no-bg-gradient-to, no-css-var-bracket, no-bare-shadow) only inspect literal className values. They bail silently on:

className={cn('bg-surface-1', maybe && 'bg-surface-2')}  // not linted
className={`bg-surface-${n}`}                              // not linted

False positives on dynamic class names are worse than false negatives. If you want stricter coverage, run a separate tailwind-merge audit OR migrate the cn() expressions to literals.

Peer dependencies

{
  "peerDependencies": {
    "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0"
  }
}

No @devalok/shilp-sutra peer required — these rules work on consumer code regardless of which DS version is installed (the migration rules even work before you install the new version, so you can lint old code and see the autofix preview).

Status

v0.1.0 — initial release. Tracking via appliesFrom field on each rule; version matrix at docs/version-matrix.md.

License

MIT.