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

@aikdna/kdna-studio-cli

v0.5.5

Published

Official KDNA Studio command-line authoring entry for creating, locking, compiling, and exporting .kdna judgment assets through the KDNA toolchain.

Downloads

2,004

Readme

@aikdna/kdna-studio-cli

Official Studio command-line entry for KDNA judgment asset creation — turns your notes, documents, works, and feedback into loadable .kdna domains.

Official means this package is part of the KDNA official toolchain. It does not imply content trust, asset endorsement, registry status, or quality rating.

Two authoring paths: interview-first (articulate your judgment directly) and distillation-first (provide content, find the patterns, confirm what's really you).

Distillation-first authoring is domain-first: declare the target domain, owner scope, granularity, task scope, include areas, exclude areas, and load condition before extracting candidates. A single .kdna should stay scoped; complex work should compose multiple domain assets through a KDNA Cluster.

This package provides the kdna-studio command. It creates Studio projects, imports evidence, manages judgment cards, checks Human Lock, compiles locked cards, and exports canonical .kdna assets with build reports.

It is intentionally separate from @aikdna/kdna-cli:

| Package | Command | Role | | --- | --- | --- | | @aikdna/kdna-cli | kdna | Runtime CLI: verify, install, load, compare, publish existing .kdna assets | | @aikdna/kdna-studio-cli | kdna-studio | Authoring CLI: create, lock, compile, export trusted .kdna assets | | @aikdna/kdna-studio-core | none | Studio SDK/compiler kernel used by apps and this CLI |

Install

npm install -g @aikdna/kdna-studio-cli

Usage

kdna-studio create my_domain --name @yourscope/my_domain
kdna-studio import my_domain ./notes.md
kdna-studio target declare my_domain \
  --category expression_writing \
  --scope personal \
  --granularity core_principles \
  --task "longform article review" \
  --include "argument structure,tone,revision" \
  --exclude "life habits,food preference"
kdna-studio source classify my_domain
kdna-studio distill my_domain --candidates candidates.json
kdna-studio candidate list my_domain
kdna-studio candidate accept my_domain <candidate-id>
kdna-studio candidate promote my_domain
kdna-studio card add my_domain axiom \
  --field one_sentence="Prefer specific evidence over broad claims" \
  --field full_statement="When reviewing content, prefer specific evidence over broad claims because unsupported generalizations make the judgment impossible to verify or improve." \
  --field why="Broad claims hide the actual reason for a judgment, so reviewers cannot tell whether the conclusion is evidence based, reusable, or merely plausible sounding." \
  --field applies_when='["reviewing content"]' \
  --field does_not_apply_when='["pure formatting"]' \
  --field failure_risk="generic advice"
kdna-studio card approve my_domain --all --by expert --statement "I confirm this judgment."
kdna-studio lock my_domain
kdna-studio export my_domain --format v1 --out dist/my_domain.kdna

Candidate promotion is scope-gated: only candidates with status == accepted and scope_fit == true are promoted to cards by default. Use kdna-studio candidate override <project> <candidate-id> only when a human intentionally overrides the scope gate.

After export, use the runtime CLI:

kdna validate dist/my_domain.kdna --runtime
kdna plan-load dist/my_domain.kdna --json
kdna load dist/my_domain.kdna --profile=compact --as=prompt

kdna-studio is the CLI entry for confirmed KDNA authoring. kdna is the runtime control plane for inspecting, validating, packing, unpacking, and loading existing .kdna assets.

Runtime Export Contract

kdna-studio export --format v1 is the canonical runtime export path. It uses @aikdna/kdna-studio-core to compile the Studio project into a KDNA Core v1 runtime asset and then packs it with @aikdna/kdna-core.

A v1 runtime export contains only these top-level entries:

  • mimetype
  • kdna.json
  • payload.kdnab
  • checksums.json

Authoring/source entries such as KDNA_Core.json, KDNA_Patterns.json, and source_cards are not runtime distribution entries. They may exist in Studio compile output or legacy imports, but they must not be emitted by the runtime export path.

Signature, encryption, registry publishing, paid distribution, and private assets are future/gated phases, not the current Core v1 baseline.

Identity

kdna-studio identity init --name "Your Name"
kdna-studio identity show

Import from existing KDNA or legacy folders

# Fork an existing .kdna asset (cards imported as draft — re-lock required)
kdna-studio create forked --from-kdna ./parent.kdna --name @scope/forked

# Migrate a legacy JSON source folder
kdna-studio create migrated --from-folder ./old-domain-json --name @scope/migrated

Related