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

@eforge-build/scopes

v0.7.12

Published

Canonical scope names, directory helpers, named-set resolution, and layered-singleton lookup for the three eforge configuration tiers (user, project-team, project-local).

Downloads

684

Readme

@eforge-build/scopes

Canonical scope names, directory helpers, named-set resolution, and layered-singleton lookup for the three eforge configuration tiers.

Consumers

  • @eforge-build/engine - scope directory lookup and config merge order
  • @eforge-build/input - playbook and session-plan path resolution
  • Future wrapper apps that need to read or write eforge-scoped files directly

Canonical scopes

| Scope | Directory | Purpose | |-------|-----------|---------| | user | ~/.config/eforge/ (XDG-aware) | Cross-project, personal; lowest precedence | | project-team | <configDir>/ (e.g. eforge/) | Team-canonical; committed to the repository | | project-local | [project]/.eforge/ | Dev-personal override; gitignored; highest precedence |

Precedence order: project-local > project-team > user

What's included

  • Scope - canonical scope type ('user' | 'project-team' | 'project-local')
  • SCOPES - ordered array of all canonical scope values
  • getScopeDirectory(scope, opts) - resolves the root directory for a given scope
  • resolveLayeredSingletons(filename, opts) - returns all existing copies of a singleton file in merge order (user -> project-team -> project-local)
  • resolveNamedSet(subdir, opts) - resolves a named-set directory across tiers, returning the highest-precedence entry per name with shadow metadata
  • listNamedSet(subdir, opts) - lists all entries in a named-set directory with source scope and shadow chain annotations

Lookup modes

Layered singleton - all existing scope files are returned in canonical merge order (user -> project-team -> project-local). Used for config.yaml. The caller owns parsing and merge semantics.

Named set - directory entries are unique by name across tiers; same-name entries at higher-precedence tiers shadow lower-precedence ones. Used for profiles/ and playbooks/. The highest-precedence copy wins.

See docs/config.md for how the engine applies these primitives to config layers, profiles, and playbooks.

Out of scope

This package has no config schema, no playbook or profile schema, no daemon knowledge, no queue knowledge, and no engine concepts. It is a pure path and file-resolution utility.

Stability

  • Public exports are stability-promised within a major version.
  • Breaking changes bump the major version and are noted in the release.