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

@dyrected/knowledge

v0.2.15

Published

Compiled Dyrected recipes, intent metadata, and portable knowledge artifacts

Downloads

3,466

Readme

@dyrected/knowledge

The canonical, machine-readable Dyrected knowledge catalogue. It contains compiled recipes, plain-language intent metadata, search helpers, and portable JSON artifacts used by the documentation site and future AI integrations.

import { findRecipesByIntent, recipes } from "@dyrected/knowledge";

const matches = findRecipesByIntent("make the URL follow the title");

Portable artifacts include recipes, intent mappings, TypeScript/JSDoc references, endpoint manifests, a representative OpenAPI document, AI rules, SKILL.md, and an LLM index. They are exported from package subpaths such as @dyrected/knowledge/recipes.json, @dyrected/knowledge/references.json, and @dyrected/knowledge/openapi.json.

The package is presentation-neutral: Fumadocs, MCP servers, skills, websites, and CLIs decide how to render or expose its content.

Every named field in a canonical recipe must define an explicit label. The generator validates this rule and fails before producing documentation when a label is missing.

Package Layout

The package is split into authored source material, generated TypeScript modules, and published artifacts.

src/prompt-templates/

Authored Markdown templates that the generator expands into prompts and skills.

  • skill.template.md -> final Dyrected SKILL.md
  • ai-rules.template.md -> final AI rules document
  • generate-cms.template.md -> existing-site CMS migration prompt
  • generate-site.template.md -> greenfield site-generation prompt

Files in this folder are author-edited sources. The .template.md suffix means they are not final outputs.

src/shared-rules/

Reusable authored rule blocks injected into multiple templates.

  • content-modeling.md -> semantic modeling and content-structure rules
  • cms-generation.md -> migration execution, admin authoring, validation, and batching rules
  • frontend-integration.md -> frontend rendering and source-of-truth integration rules

Edit these when a rule should affect multiple prompts or the final skill.

src/prompt-snapshots/

Generated Markdown snapshots of rendered prompts.

  • generate-cms.md
  • generate-site.md

These are build outputs committed for inspection and regression visibility. Do not hand-edit them.

src/test-fixtures/

Local fixtures used by generator and tests.

  • maximal-config.ts

src/generated/

Generated TypeScript modules consumed by the package runtime.

  • ai.ts
  • prompts.ts
  • recipes.ts
  • references.ts

These are codegen outputs. Do not edit them manually.

src/recipes/

Canonical Dyrected recipe implementations. Each recipe has its own folder with metadata.json, recipe.ts, and recipe.test.ts.

generated/

Published package artifacts exposed through package.json exports, such as SKILL.md, ai-rules.md, recipe JSON, references JSON, and the LLM index.

Run pnpm generate to update committed artifacts and Fumadocs MDX. Run pnpm generate:check in CI to fail when generated output is stale.