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-kyan-app

v1.0.0

Published

Pattern-based React + Express + MySQL scaffold.

Readme

create-kyan-app

Generate a React client, Express API, and MySQL schema from data patterns, not fixed exam copies.

How it thinks

You describe (or blueprint) your entities and relationships. Ocean detects:

| Pattern | Detected when | Reports | CRUD default | |--------|----------------|---------|----------------| | Service / sales | Hub table with 2+ foreign keys + payment linked to hub | Daily joined report + receipt | Insert-only except hub | | Payroll | Department ← Employee ← Salary | Monthly payroll | Insert-only except salary table | | Generic | Anything else | Per-table / date filters | Full CRUD on all tables |

The old national-exam PDFs were only examples of these shapes — they are not baked in as four templates.

Usage

npx create-kyan-app

1. Choose a model pattern

  • Define all entities yourself — full control; detection runs after you enter tables.
  • Service / sales blueprint — generic Party, Offering, Transaction, Payment (renameable).
  • Payroll blueprint — Department, Employee, Salary (renameable).
  • Simple CRUD — no insert-only restriction.

2. Confirm inferred roles + CRUD policy

For manual models, Ocean now:

  • suggests a likely role for each table:
    • master
    • transaction
    • settlement
    • lookup
    • auth
  • preselects likely column input types from names like:
    • email -> email
    • phoneNumber -> phone
    • amountPaid -> money
    • paymentDate -> date

After entities are defined, Ocean shows what it detected (e.g. hub = Transaction) and asks whether only the hub gets update/delete.

3. Choose auth mode

Ocean now supports:

  • Default auth table: users(username, password)
  • Custom user table: choose your own:
    • table name
    • primary key
    • login field
    • password field
    • display field
    • optional role field
    • optional extra user profile fields

When you enable the custom user table, the generator keeps it aligned across:

  • database.sql
  • backend auth controller
  • login/register/recover endpoints
  • React login/register/recover forms
  • signed-in user display in the frontend

4. Generated stack

  • backend-project — Express, MySQL, session/JWT, bcrypt, password recovery
  • frontend-project — Vite, React, Tailwind, Axios
  • database.sql — schema + views (no exam-specific seed rows)
  • project-cleanup.js — drop database when finished

Start

cd backend-project && npm run dev
cd frontend-project && npm run dev

Import database.sql, configure backend-project/.env, hash the admin user (see SQL comments).

Pattern examples (any domain)

Service / sales — appointments, car wash, parking stay, shop order:

  • Lookup tables (customer, product, slot…)
  • One transaction row linking lookups
  • Payment referencing the transaction

Payroll — HR, school fees, commissions:

  • Org unit → person → pay line
  • Monthly report joins the three tables (column names inferred)

Publish

npm publish