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

@de-otio/repo-aegis-llm

v0.3.1

Published

LLM-assisted helpers for repo-aegis: prose extraction, token suggestion, embedding profiles. Off the deterministic gate path.

Readme

@de-otio/repo-aegis-llm

LLM-assisted helpers for repo-aegis: Ollama HTTP client, prose extraction, marker-token suggestion (Phase 2), and per-engagement embedding profiles for the centralised semantic sweep (Phase 3). Both phases are implemented; the public surface listed below is stable.

Internal — do not depend on this package directly. It is consumed by @de-otio/repo-aegis (the CLI's suggest-markers verb) and @de-otio/repo-aegis-scan (the --semantic sweep and rebuild-profiles verb). The deterministic gate code in @de-otio/repo-aegis-core does not depend on this package, and the import-graph guard test in packages/core/src/import-graph.test.ts enforces that.

What's in here

| Module | Phase | Purpose | |---|---|---| | ollama-client.ts | 2 + 3 | chat, embed, cosine. Endpoint validation [SEC H-1] (loopback-only by default; localhost is DNS-checked to defeat /etc/hosts redirection). No retries, no fallbacks. | | prose-extraction.ts | 2 + 3 | Walks a repo to gather prose for the LLM. Hard-skips secrets / .git / .ssh / .aws / .gnupg. [SEC C-1, H-4] realpath / TOCTOU defence. [SEC M-2] resource caps. [SEC C-2] author-domain remote-egress guard. | | synthesis.ts | 2 | Synthesise word-boundary regexes per token kind (company, codename, person-name, domain, ticket-prefix, account-id, other). [SEC M-4] Unicode-safe boundaries. | | filters.ts | 2 | Filter dictionary words, dependency names, existing patterns. Pure functions. | | token-extraction.ts | 2 | Token-extraction prompt (TOKEN_EXTRACTION_PROMPT_V1). [SEC C-3] anti-injection preamble + fence delimiters. Zod-validated response. | | profile.ts | 3 | Build, write, read, diff per-engagement embedding profiles. Atomic tmp+fsync+rename [SEC M-5]. sha256-stamped manifest [SEC H-3]. | | exceptions.ts | 2 + 3 | Ollama-client errors: RemoteEndpointDisallowedError (REMOTE_DISALLOWED / URL_PARSE), OllamaError. (Module-local errors — RootContainmentError, BundleFenceCollisionError, BundleTooLargeError — live in prose-extraction.ts / token-extraction.ts.) |

Why this is a separate package

The deterministic gate (PostToolUse hook, pre-commit hook, repo-aegis check) must run sub-millisecond, offline, and free of heavy runtime dependencies. Splitting LLM-adjacent code into its own package keeps core lean and makes the hot-path independence property machine-checkable. See doc/design/zero-config-onboarding.md for the rationale.

License

GPL-3.0-or-later. Copyright (C) 2026 Richard Myers and contributors.

A De Otio tool — https://de-otio.org.