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

@hexagen-monaco/arch-linter

v0.8.0

Published

HexaGen architecture linter and manifest validation

Readme

@hexagen-monaco/arch-linter

Architecture linter for HexaGen Monaco projects — validates your .architecture/manifest.yaml and enforces Hexagonal-architecture boundaries across a generated monorepo.

@hexagen-monaco/arch-linter is the companion linter to @hexagen-monaco/sync. Where sync generates the architecture, the linter guards it: it parses your TypeScript with ts-morph and fails when an import crosses a layer or context boundary the manifest forbids.


Installation

npm install --save-dev @hexagen-monaco/arch-linter
# or
yarn add --dev @hexagen-monaco/arch-linter

It installs a single binary, hexagen-lint.


Usage

Run it from anywhere inside a HexaGen project:

npx hexagen-lint

The linter discovers the project root by walking up from the current directory to the nearest .architecture/manifest.yaml. You can override that:

# Point at a specific project root
npx hexagen-lint --root ./path/to/project

# ...or via an environment variable
HEXAGEN_ROOT=./path/to/project npx hexagen-lint

# Validate against a specific manifest file
npx hexagen-lint --manifest ./.architecture/manifest.yaml

It exits non-zero on violations, so it drops straight into CI:

- run: npx hexagen-lint

If you also use @hexagen-monaco/sync, hexagen sync runs the linter for you — invoking hexagen-lint directly is for standalone or CI checks.


What it checks

Reading your manifest and the optional invariant files, the linter enforces:

| Check | Source | | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Manifest validity | .architecture/manifest.yaml (schema-validated; split manifests merged) | | Layer access rules | layer-rules.yamllayers[*].allowed_imports — which layers may import which | | Cross-package import rules | linter-config.yamlpackage_rules (allowed_imports / cannot_import / restricted_to) | | Global whitelist | linter-config.yamlglobal_whitelist — packages/subpaths importable from anywhere. Patterns are exact-match unless they end in /**. The scaffold writes @{scope}/shared + @{scope}/shared/** (kernel root and its subpaths). With no linter-config.yaml, the linter's built-in fallback is only @{scope}/shared (the kernel root — subpaths need an explicit /** entry). | | Server/client boundaries | linter-config.yamlsubpath_conventionsserver/client subpath markers + allowed consumers |

TypeScript analysis resolves sources via tsconfig.base.json at the project root.


Required project files

| Path | Required | Purpose | | --------------------------------------------- | :------: | ------------------------------------------------------------------------------------ | | .architecture/manifest.yaml | ✅ | The architecture definition the linter validates against | | tsconfig.base.json | ✅ | Resolves TypeScript sources and path aliases | | .architecture/invariants/layer-rules.yaml | optional | Per-layer access rules + shared-kernel layer allowance | | .architecture/invariants/linter-config.yaml | optional | Cross-package package_rules, global_whitelist, subpath/server-marker conventions |

A project scaffolded by @hexagen-monaco/sync already ships all of these.


Requirements

| Requirement | Version | | ----------- | ------------------------------------ | | Node.js | ≥ 20 | | Module kind | ESM ("type": "module" in consumer) |


Links

  • @hexagen-monaco/sync — the generator this linter pairs with: https://www.npmjs.com/package/@hexagen-monaco/sync
  • Repository: https://github.com/martinkrakowski/hexagen-monaco
  • Issues: https://github.com/martinkrakowski/hexagen-monaco/issues

License

Source-Available Evaluation License — proprietary to Krakowski Cloud Solutions, LLC. Free to read, run locally, and evaluate for internal/non-commercial use; not licensed for commercial production deployment. See LICENSE.