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

@gallop.software/canon

v2.15.1

Published

Gallop Canon - Architecture patterns, ESLint plugin, and CLI for template governance

Readme

@gallop.software/canon

Gallop Canon — A versioned, AI-compatible, auditable system of approved web architecture patterns.

What is the Canon?

The Canon is a closed set of authoritative patterns that define how web applications should be built. Each pattern is:

  • Versioned — Pin to a specific version, upgrade deliberately
  • Documented — Decision-level documentation, not just code comments
  • Enforced — ESLint rules, CI validation, or AI constraints
  • Immutable — Once released, patterns don't change

Installation

npm install @gallop.software/canon

ESLint Setup

Add Canon rules to your eslint.config.mjs:

import nextConfig from 'eslint-config-next'
import gallop from '@gallop.software/canon/eslint'

export default [
  ...nextConfig,
  {
    files: ['src/blocks/**/*.tsx', 'src/components/**/*.tsx'],
    plugins: {
      gallop,
    },
    rules: {
      ...gallop.recommended,
    },
  },
]

Opting Out of Rules

To disable specific rules, override them after spreading recommended:

rules: {
  ...gallop.recommended,
  // Disable specific rules
  'gallop/no-inline-styles': 'off',
  'gallop/no-arbitrary-colors': 'off',
}

To change a rule from warning to error:

rules: {
  ...gallop.recommended,
  'gallop/no-cross-zone-imports': 'error',
}

Available Rules

| Rule | Description | |------|-------------| | gallop/no-client-blocks | Blocks must be server components | | gallop/no-container-in-section | No Container inside Section | | gallop/prefer-component-props | Use props over className for styles | | gallop/prefer-typography-components | Use Paragraph/Span, not raw tags | | gallop/prefer-layout-components | Use Grid/Columns, not raw div | | gallop/background-image-rounded | Background images need rounded prop | | gallop/no-inline-styles | No style attribute, use Tailwind | | gallop/no-arbitrary-colors | Use color tokens, not arbitrary values | | gallop/no-cross-zone-imports | Enforce import boundaries | | gallop/no-data-imports | No direct _data/ imports in runtime |

CLI Commands

Generate AI Rules

Generate .cursorrules or Copilot instructions from Canon:

npx gallop generate .cursorrules
npx gallop generate .github/copilot-instructions.md

Validate Project Structure

Check folder structure compliance:

npx gallop validate
npx gallop validate --strict  # Exit code 1 on violations

Audit Code

Check code compliance:

npx gallop audit
npx gallop audit src/blocks/ --strict

Pattern Categories

| Category | Description | |----------|-------------| | rendering | Server/client component boundaries | | layout | Layout hierarchy and spacing | | typography | Text component usage | | structure | File and folder organization | | styling | CSS and Tailwind patterns | | components | Component design patterns | | seo | SEO and metadata patterns |

Patterns

See the patterns/ directory for full documentation of each pattern.

Guarantees

See guarantees.md for version-specific promises.

License

MIT