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

domain-knowledge-kit

v0.3.0

Published

Domain Knowledge Pack — YAML + ADR links + deterministic search + generated docs

Downloads

575

Readme

Domain Knowledge Kit

Humans design the domain. AI agents align the codebase.

Philosophy

AI agents love structure

Large language models thrive with well-structured, unambiguous context. A flat codebase gives them syntax; a structured domain model gives them meaning. DKK makes your domain a first-class, machine-readable citizen of your repository.

Humans can define domain events easily

You don't need a diagram tool or a modeling session. Writing OrderPlaced in a YAML file — with a one-line description and a reference to the aggregate that emits it — is how humans naturally think in DDD. Defining events, commands, and policies in plain YAML reveals the bigger picture without drowning in implementation details.

Reading domain models beats reading code

Business logic spread across services, handlers, and database schemas is hard to reason about holistically. A domain model is a curated, intentional view of what your system does and why — not how it does it. DKK keeps that view always up-to-date and always searchable.

Keeping ADRs, even deprecated ones, preserves project memory

Architectural decisions aren't born in a vacuum. Understanding why a choice was made matters as much as knowing what the choice was. Deprecated ADRs aren't noise — they are the institutional memory that prevents teams (and AI agents) from relitigating past decisions.

Easy-to-reach, detailed, colocated knowledge for AI agents

Knowledge that lives next to the code is knowledge that gets used. DKK colocates your domain model, ADRs, and generated docs inside the repository itself. AI agents can discover, query, and traverse this knowledge without leaving the codebase — making every interaction domain-aware.

One domain model can span many repositories

In enterprise architectures each service lives in its own repo, but the domain it participates in does not. DKK supports multi-repo federation: a repo declares itself a service with .dkk/service.yml, lists peer services in .dkk/federation.yml (by filesystem path or git URL + branch), and the loader transparently merges peer domain models into the local one. Cross-service references use the additive grammar <service>:<context>.<Item> — bare refs stay local-only. No CI required, no publish step, no orphan branches: a peer's raw .dkk/ directory is the artifact. The AI assistant in any repo can answer "what does ordering:OrderPlaced contain, and who else consumes it?" without leaving the current working directory.


Documentation

All technical details, CLI references, and integration guides live in the docs/ folder.

| Guide | What It Covers | |-------|----------------| | Getting Started | Installation, first context, quality gates | | Domain Modeling | YAML structure, item types, naming conventions | | CLI Reference | Every command and flag | | ADR Guide | Writing, linking, and querying ADRs | | AI Agent Integration | Onboarding agents, context-efficient retrieval | | Way of Working | Team adoption practices, PR review, CI, governance | | Iterative Modeling | Decision patterns, modeling phases, external constraints |

License

Elastic-2.0