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

@shobman/strata-lint

v0.1.1

Published

ESLint plugin for the Strata layout protocol

Readme

@shobman/strata-lint

npm version bundle size license

ESLint plugin for the Strata layout protocol. Enforces import boundaries, catches inline chrome, and warns on missing required slot fills.

Installation

npm install @shobman/strata-lint

Peer dependency: eslint >=9.0.0

Also requires @shobman/strata-cli (installed as a dependency automatically).

Setup

ESLint 9 flat config (eslint.config.js):

import strataPlugin from "@shobman/strata-lint";

export default [
  {
    files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
    plugins: {
      strata: strataPlugin,
    },
    rules: {
      ...strataPlugin.configs.recommended.rules,
    },
  },
];

Important: ESLint 9 flat config won't lint .tsx files unless explicitly included in the files array. Always include all relevant extensions as shown above.

Rules

strata/import-boundary

Severity: error | Type: problem

Prevents importing from higher-rank Strata levels. Atoms cannot import molecules, molecules cannot import organisms, etc.

Level       Rank    Can import from
──────────  ────    ───────────────
atom        0       (nothing)
molecule    1       atom
organism    2       atom, molecule
route       3       atom, molecule, organism

Same-level imports are always allowed (e.g. one molecule importing another).

// components/molecules/FilterBar/index.tsx

import { Button } from "../../atoms/Button";      // rank 0 → OK
import { FundPanel } from "../../organisms/FundPanel"; // rank 2 → ERROR

// Error: Cannot import from 'organism' (rank 2) into 'molecule' (rank 1).
// Import boundary violation.

Bare specifiers (node_modules) are skipped — this rule only applies to relative imports between Strata-contracted modules.

strata/no-inline-chrome

Severity: warn | Type: suggestion

Catches action buttons and toolbars rendered outside <FillSlot> in route components. Only applies to files inside a route-level contract directory.

Chrome elements detected: Button, button, IconButton, Toolbar, toolbar, ActionBar, Actions

// routes/funds/[fundId]/performance/index.tsx

// WARNS — button outside FillSlot
function PerformancePage() {
  return (
    <div>
      <Button>Run Benchmark</Button>     {/* ⚠ should be in FillSlot */}
      <PerformanceCharts />
    </div>
  );
}

// OK — button inside FillSlot
function PerformancePage() {
  return (
    <>
      <FillSlot name="actions">
        <Button>Run Benchmark</Button>   {/* ✓ projected into slot */}
      </FillSlot>
      <PerformanceCharts />
    </>
  );
}

strata/required-slots

Severity: warn | Type: suggestion

Warns when a route component doesn't fill required ancestor slots. Checks fills in the route's _contract.yml against required slots declared by ancestor layouts.

# routes/_contract.yml (ancestor)
layout:
  slots:
    menu: required

# routes/funds/_contract.yml (this route)
fills: []   # ⚠ missing required fill for "menu"
warning  Required slot 'menu' from 'routes' is not filled by this route.

Recommended Config

The plugin exports a recommended config with these defaults:

| Rule | Level | |------|-------| | strata/import-boundary | error | | strata/no-inline-chrome | warn | | strata/required-slots | warn |

License

MIT