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

@ankhorage/project-detector

v0.3.1

Published

Extensible, evidence-based project detection and safe filesystem inspection for standalone tools.

Readme

@ankhorage/project-detector

license: MIT npm: v0.2.0 runtime: bun typescript: strict eslint: checked prettier: checked build: checked tests: checked docs: paradox

Extensible, evidence-based project detection and safe filesystem inspection.

Generated documentation

Public API

Utilities

detectProject(input: ProjectDetectionInput, options?: ProjectDetectionOptions) => ProjectDetection

Detect overlapping project languages, frameworks, runtimes and package-manager evidence.

The pure API accepts package metadata plus optional relative POSIX file paths and manifest text. JavaScript, TypeScript, Java, Kotlin, C++, Python and Delphi evidence is additive, never exclusive. Generic Make/CMake/Gradle files identify build tools, not necessarily a source language. Scores are heuristic strengths, not confidence probabilities. No source parser, registry request, dependency update, migration, filesystem operation or inspected project script runs here. Extend detection with explicitly supplied trusted detector callbacks; IDs must be unique. Public types are owned by this package and exported through @ankhorage/project-detector/types.

Module: src/features/detection/application/detectProject.ts Source: src/features/detection/application/detectProject.ts:24:1 Related symbols: ProjectDetection, ProjectDetectionInput, ProjectDetectionOptions

inspectProjectAsync(path: string, options?: ProjectInspectionOptions) => Promise<ProjectInspection>

Inspect a directory using bounded, asynchronous, read-only filesystem access.

Import from @ankhorage/project-detector/node. Defaults: depth 16, 20,000 entries, 256 KiB per manifest and 8 MiB total manifest text. Dependency/build/cache directories, including generated .ankh, are pruned. Symlinks outside exclusions are skipped with diagnostics; their targets are never intentionally scanned. Pass an AbortSignal to cancel. Configure additional manifest basenames and detector callbacks for new ecosystems. Package/workspace membership currently resolves JavaScript package.json workspaces and pnpm YAML; other ecosystem manifests are identified, not fully resolved into dependency graphs. No inspected JavaScript, Gradle, Python, executable config or install script is executed. Inspection is a best-effort snapshot, not a sandbox against concurrent hostile filesystem edits. Returned directories and files are sorted relative POSIX paths from the pruned scan. The directory inventory includes empty directories and omits the inspection root itself. The result reports incompleteness; it never grants permission to run an update. On a complete scan output is sorted; when a budget is exhausted the retained subset depends on filesystem enumeration order. Inspect a stable checkout for reproducible results. Install with npm install @ankhorage/project-detector; the standalone command is npx --package @ankhorage/project-detector project-detector inspect .. With Ankh installed, use ankh project-detector inspect .. CLI exit codes are 0 for a complete scan, 1 for invocation/root errors and 2 for partial scans. Release automation requires the organization release App configuration and npm publishing authorization for this new package; repository files alone do not provision these credentials.

Module: src/features/inspection/composition/inspectProjectAsync.ts Source: src/features/inspection/composition/inspectProjectAsync.ts:30:1 Related symbols: ProjectInspection, ProjectInspectionOptions