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

@lambda-solutions/arc-presets

v0.1.0

Published

Sheriff architecture presets: config factory + Nx generators + installer for vertical-slice and hexagonal architectures, with the @lambda-solutions Sheriff fork.

Readme

@lambda-solutions/arc-presets

Sheriff architecture presets as an Nx plugin: a config factory, code generators, and a one-shot installer that wires Sheriff into a workspace from a chosen architecture preset — using the @lambda-solutions Sheriff fork (published v1) where a preset needs it.

The four presets and the reasoning behind each are documented in docs/ansaetze.md.

Presets

| id | architecture | fork required | |---|---|---| | inverted (default) | Vertical slice, api/ contract + infra/ impl | no | | blueprint | Vertical slice, base (no infra/) | no | | hexagonal-fwcore | Ports & Adapters, framework-aware core (3 layers) | no | | hexagonal-strict | Ports & Adapters, framework-free core (denyRules) | yes |

Setup in a target repo

pnpm add -D @lambda-solutions/arc-presets
nx g @lambda-solutions/arc-presets:init --preset inverted --app client
pnpm sheriff:verify

init does four things:

  1. writes sheriff.config.ts for the chosen preset,
  2. adds the Sheriff engine as dev dependencies (fork v1, or upstream @softarc with --installFork=false) and installs them with the target repo's package manager,
  3. wires sheriff.configs.all into eslint.config.* (or prints a snippet),
  4. adds a sheriff:verify npm script (and, with --ci, a GitHub Actions workflow).

Package manager detection

init derives the package manager from the target repo — it never assumes the one that happens to run the generator — and uses it for the install, for the --ci workflow, and for every command it prints. Resolution order:

  1. --packageManager (explicit override),
  2. cli.packageManager in nx.json,
  3. the corepack packageManager field in package.json,
  4. a lockfile (bun.lockb / bun.lock, yarn.lock, pnpm-lock.yaml, package-lock.json),
  5. nx's own detection as a fallback.

The chosen manager is logged with its reason, e.g. arc-presets: package manager: pnpm (pnpm-lock.yaml). Pass --skipInstall to write the dev dependencies to package.json without running the install.

init options

| flag | default | meaning | |---|---|---| | --preset | inverted | one of the four ids above | | --app | – | primary app name (seeds entryPoints) | | --installFork | true | install the fork; false uses upstream @softarc (blocked for hexagonal-strict) | | --skipEslint | false | don't touch eslint.config.*; print a snippet | | --ci | false | drop .github/workflows/sheriff.yml (uses the detected package manager) | | --aliasPrefix | @blueprint | tsconfig path-alias prefix for extracted libs | | --packageManager | derived | force npm / pnpm / yarn / bun instead of deriving it | | --skipInstall | false | add the dev dependencies but don't run the install |

Generators

# vertical-slice presets (blueprint / inverted)
nx g @lambda-solutions/arc-presets:domain booking            # lib under libs/domains/
nx g @lambda-solutions/arc-presets:domain billing --app client
nx g @lambda-solutions/arc-presets:feat check-in --domain booking [--app client]
nx g @lambda-solutions/arc-presets:shared-feature auth --app client

# hexagonal presets (hexagonal-fwcore / hexagonal-strict)
nx g @lambda-solutions/arc-presets:hexagon booking --app client

# utilities
nx g @lambda-solutions/arc-presets:migrate         # blueprint -> inverted
nx g @lambda-solutions/arc-presets:doctor          # check config/deps/eslint/script

The slice generators detect the active preset from sheriff.config.ts (a marker comment written by init); pass --preset to override.

Library API

sheriff.config.ts on the vertical-slice presets calls the factory:

import { verticalSliceConfig } from '@lambda-solutions/arc-presets';

export const config = verticalSliceConfig('inverted', {
  sharedFeatures: ['auth', 'layout'],
  entryPoints: { client: 'apps/client/src/main.ts' },
});

Hexagonal presets use hexagonalConfig(preset, { apps: { client: ['booking'] } }). Also exported: nxModuleBoundariesOptions, slice, hexSlice, sameApp, inAnyFeat, appOf, configTemplate.

Sheriff transpiles and evals sheriff.config.ts, so this package must be a built package in node_modules (npm registry or a workspace link with a prepare build). Relative imports in sheriff.config.ts do not work.

Tests

vitest run — unit (preset factories produce valid configs), generators (devkit Tree), and e2e (a scaffolded workspace where sheriff verify + eslint run over the full chain).