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

create-kdna-web-app

v0.3.1

Published

Scaffold a KDNA-integrated web application with Next.js App Router, Next.js Pages Router, or Express templates.

Readme

create-kdna-web-app

Scaffold a KDNA-integrated web application in one command.

npx create-kdna-web-app my-app
cd my-app
npm run dev

The Next.js templates include @aikdna/kdna-web-server and @aikdna/kdna-react pre-configured with a validate -> inspect -> plan-load -> load demo. The Express template includes the server adapter and a minimal static HTML demo.

npm License


Usage

npx create-kdna-web-app <project-name> [options]

Options

| Flag | Default | Description | |------|---------|-------------| | --template | nextjs | Project template — see templates | | --package-manager | auto-detected | npm, pnpm, or yarn | | --no-install | — | Scaffold files without running install |

Examples

# Next.js App Router (default)
npx create-kdna-web-app my-app

# Express
npx create-kdna-web-app my-app --template express

# Next.js Pages Router
npx create-kdna-web-app my-app --template nextjs-pages

Templates

nextjs (default)

  • Next.js 16+ with App Router
  • app/api/kdna/[...route]/route.js — all KDNA endpoints mounted
  • app/page.jsx — full demo: file drop, inspect, load, display
  • .env.local.example for local configuration

nextjs-pages

  • Next.js with Pages Router
  • pages/api/kdna/[...route].js — all KDNA endpoints
  • pages/index.jsx — same demo as the App Router template

express

  • Express with ESM
  • src/server.js — KDNA router mounted at /api/kdna
  • public/index.html — minimal HTML demo page
  • .env.example for local configuration

Template dependencies

| Template | KDNA packages | |----------|---------------| | nextjs | @aikdna/kdna-core, @aikdna/kdna-web-server, @aikdna/kdna-react | | nextjs-pages | @aikdna/kdna-core, @aikdna/kdna-web-server, @aikdna/kdna-react | | express | @aikdna/kdna-core, @aikdna/kdna-web-server |

Pre-configured flow

The Next.js templates provide the full React flow:

  1. User drops a .kdna file onto the <KDNAFileDropzone>.
  2. The file is uploaded and inspected — metadata appears immediately.
  3. <KDNALoadPlanGate> checks whether a password or license is needed.
  4. If the asset is public, it loads automatically.
  5. If the asset requires a password, <KDNAPasswordUnlockDialog> appears.
  6. The loaded content is displayed.

The Express template mounts the same /api/kdna server endpoints and includes a minimal HTML page that uploads, inspects, and loads an open .kdna asset.

Environment variables

# Optional
KDNA_STORAGE_DIR=/tmp/kdna

# Optional — only needed for licensed-mode assets
KDNA_ACTIVATION_URL=https://your-activation-server.example.com

After scaffolding

cd my-app
cp .env.local.example .env.local   # Next.js templates
# or: cp .env.example .env         # Express template, if you load env files locally
npm test                           # smoke-test KDNA package imports
npm run dev
# Open http://localhost:3000 and drop a .kdna file

To get a .kdna file for testing:

npm install -g @aikdna/kdna-cli
kdna demo judgment ./demo-judgment
kdna pack ./demo-judgment ./demo-judgment.kdna

Related packages

| Package | Role | |---------|------| | @aikdna/kdna-core | KDNA format and runtime | | @aikdna/kdna-web-server | Server-side adapter | | @aikdna/kdna-react | React components and hooks |


License

Apache 2.0 — see LICENSE.