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

@deeptrust-ai/deep-ui

v0.1.1

Published

This README explains how to build the component library, scaffold new components, validate a developer release, and consume the package locally or from a tarball.

Readme

DeepUI — README

This README explains how to build the component library, scaffold new components, validate a developer release, and consume the package locally or from a tarball.


Prerequisites

  • Node.js 18+ (React 19 requires modern runtimes)

  • pnpm

  • Peer dependencies that must exist in any consuming project:

    {
      "peerDependencies": {
        "react": "19.2.0",
        "react-dom": "19.2.0",
        "@phosphor-icons/react": "2.1.10",
        "frosted-ui": "0.0.1-canary.85"
      }
    }

Common scripts

| Script | Description | | -------------------------------- | ------------------------------------------------------------------- | | pnpm run build | Builds library artifacts to dist/ (runs during prepublishOnly). | | pnpm run storybook | Starts Storybook locally on port 6006. | | pnpm run build-storybook | Emits the static Storybook build to storybook-static/. | | pnpm run generate | Plop generator that scaffolds new components. | | pnpm run lint / pnpm run tsc | Type-checks & lints the source before release. |


Developer release workflow

Use this checklist whenever you cut a 0.0.x-dev build or validate changes before promotion to a stable release.

  1. Install dependencies
pnpm install
  1. Preflight quality gates (optional but recommended)
pnpm run lint
pnpm run tsc
  1. Build the distributable
pnpm run build
  1. Create the tarball

    mkdir -p .npm-cache
    npm_config_cache=./.npm-cache npm pack

    Why the custom cache? Some dev machines (including macOS with Brew-installed Node) keep a root-owned cache under ~/.npm. Pointing npm_config_cache inside the repo avoids permission errors while still producing deeptrust-deep-ui-<version>.tgz.


Publishing the package

DeepUI now ships via an automated GitHub Actions workflow plus a documented manual fallback. Both flows expect the version in package.json to be final before publishing (use npm version patch, npm version prerelease --preid rc, etc., so the git tag and npm version stay in sync).

Automated deploy (preferred)

  1. Commit the version bump and associated release notes.
  2. Create a git tag that matches v* (for example git tag v1.2.3).
  3. Push the branch and the tag (git push origin main --tags).
  4. The Publish Package workflow (.github/workflows/publish.yml) runs automatically:
  • Sets up Node 20 and pnpm.
  • Installs dependencies, lints, type-checks, and builds the library.
  • Publishes to npm using NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}.
  1. Monitor the run in GitHub Actions. When it completes, @deeptrust-ai/deep-ui@<version> is live on npm.

Manual npm publish (fallback)

Use this only when CI is unavailable, and ideally from a clean clone.

rm -rf dist node_modules
pnpm install
pnpm run lint:library
pnpm run tsc:library
pnpm run build

# Authenticate (once per machine or set NODE_AUTH_TOKEN in the environment)
npm login --scope=@deeptrust-ai

# Publish the contents of dist/ (publishConfig already sets access=public)
npm publish

Afterwards, validate the release:

npm info @deeptrust-ai/deep-ui version
npm dist-tag ls @deeptrust-ai/deep-ui

Finally, recreate the tarball (npm pack) and run the install smoke test below so consumers get a verified build.


Validate install & usage from the tarball

Smoke-test the generated package in a throwaway project to ensure @deeptrust-ai/deep-ui installs cleanly and renders at least one component.

TMP_DIR=$(mktemp -d)
TARBALL=$(pwd)/deeptrust-deep-ui-0.0.1-dev.tgz   # adjust if you bump the version

pushd "$TMP_DIR"
npm init -y >/dev/null
npm install [email protected] [email protected] \
  @phosphor-icons/[email protected] [email protected]
npm install "$TARBALL"

cat <<'EOF' > smoke.mjs
import React from 'react';
import { renderToString } from 'react-dom/server';
import { Avatar } from '@deeptrust-ai/deep-ui';

const html = renderToString(
  React.createElement(Avatar, {
    name: 'DeepTrust',
    email: '[email protected]'
  })
);

console.log('Rendered Avatar markup bytes:', html.length);
EOF

node smoke.mjs
popd
rm -rf "$TMP_DIR"

The script simply ensures an import, render, and peer dependency resolution all succeed. Expand it as needed (e.g., render a table, check CSS availability) before tagging the release.


Component scaffolding

  1. Run the generator:
pnpm run generate
  1. Choose the component layer (atom / molecule / compound) and provide the component name.
  2. Opt in or out of optional files (types, CSS module, Storybook story) when prompted.

The generator creates files under lib/<layer>/<Component>/ and adds the export to the matching lib/<layer>/index.ts. Regenerating is safe—existing files or exports are skipped.


Quick setup (cloning the repo)

git clone <repo-url>
cd <directory>
pnpm install

Build artifacts live in dist/; verify package.json main/types point there after running pnpm run build.


Consume the package locally

Option A — Tarball (deterministic)

  1. Run npm pack as shown above to produce deeptrust-deep-ui-<version>.tgz.

  2. In the consumer project:

    npm install /absolute/path/to/deeptrust-deep-ui-<version>.tgz
  3. Import components normally:

    import { Avatar } from '@deeptrust-ai/deep-ui';

Option B — pnpm link (fast local dev)

# In DeepUI
pnpm link --global

# In the consumer project
pnpm link @deeptrust-ai/deep-ui

Rebuild DeepUI (pnpm run build) before testing changes in the consumer app.

Option C — Local file reference / monorepo

Add the dependency in the consumer package.json:

"dependencies": {
  "@deeptrust-ai/deep-ui": "file:../path-to-deepui"
}

Then run the workspace install (pnpm install, npm install, etc.).


Storybook (local component development)

  • Dev server:

    pnpm run storybook

    Opens http://localhost:6006.

  • Static build:

    pnpm run build-storybook

    Outputs to storybook-static/.