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

@emara/cli

v1.3.0

Published

Copy-paste CLI for Emara UI — create, init, add, update, diff, list, theme, doctor.

Downloads

74

Readme

@emara/cli

Copy-paste CLI for Emara UI — a React component library inspired by shadcn/ui, with multi-theme support (5 bases × 17 primaries), warm/dense density, and first-class RTL.

Install

No global install needed:

npx @emara/cli <command>

Quick start

One command — fresh Next.js app pre-wired with Emara UI:

npx @emara/cli create my-app
cd my-app
pnpm dev

create scaffolds Next.js (TypeScript + Tailwind v4 + App Router), installs the Emara peer deps, writes components.json / globals.css (with your chosen theme baked in) / lib/utils.ts, wires the CSS into the root layout, and drops in starter components (Button, Input, Card).

Need a monorepo instead?

npx @emara/cli create my-org                # interactive: pick "Monorepo (Turborepo, 3 apps)"
# or non-interactive:
npx @emara/cli create my-org --architecture monorepo --sharing shared --yes

Scaffolds a pnpm-workspaces + Turborepo monorepo with three apps (apps/web, apps/app, apps/admin) and an Emara-wired shared packages/ui workspace. See Project shapes below.

Existing project:

cd my-existing-app
npx @emara/cli init                  # set up Emara in place
npx @emara/cli add button input card # copy components

Commands

| Command | Purpose | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | create <dir> | Scaffold a new Next.js project pre-wired with Emara UI. Flags: --framework, --architecture <single\|monorepo>, --sharing <shared\|per-app>, --yes, --skip-install, --package-manager. | | init | Set up Emara UI inside an existing project — writes components.json + globals.css + lib/utils.ts, installs peer deps. | | list | List all available components. --installed shows what's already in your project. | | add <names…> | Copy components into aliases.ui. Resolves transitive component dependencies. Installs npm peer deps. Flags: --overwrite, --path, --dry-run, --skip-install. | | update <names…> | Replace local components with the latest registry version. --yes to skip prompts. | | diff [names…] | Unified diff of local vs registry. --exit-on-drift for CI. | | theme show | Print the current theme axes. | | theme set <axis> <value> | Change a theme axis. base/primary/density rewrite globals.css; colorScheme/direction update components.json only. | | theme regenerate | Re-emit globals.css from components.json. | | doctor | Health check the project. --strict exits non-zero on warnings. |

Every command accepts --cwd <dir> to run as if invoked from somewhere else.

Project shapes

create builds one of two shapes:

Single app (default)

my-app/
├── app/                       Next.js App Router
├── components/ui/             starter components copied here
├── lib/utils.ts               cn() helper
├── styles/ (or app/globals.css)
└── components.json            Emara config

Monorepo (pnpm workspaces + Turborepo)

my-org/
├── apps/
│   ├── web/                   marketing / public-facing
│   ├── app/                   authenticated dashboard
│   └── admin/                 internal back-office
├── packages/
│   └── ui/                    only when --sharing shared
├── turbo.json
├── pnpm-workspace.yaml
└── tsconfig.base.json

The 3 apps are scaffolded via create-next-app (skipping their per-app installs — a single root pnpm install hydrates everything in one pass).

--sharing chooses how the apps consume Emara:

| Strategy | Shape | When to pick | | --------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | shared | One packages/ui workspace (@workspace/ui) holds all components. Each app imports from it. | Default — one source of truth; edits propagate; uses Next's transpilePackages. | | per-app | Each app gets its own components/ui/ + lib/utils.ts + theme-baked globals.css. | Apps need to diverge independently — fork-friendly, no cross-app coupling. |

Both modes bake the same theme (chosen at prompt time) into every app. The shared mode writes one components.json at packages/ui/; the per-app mode writes one per app.

Themes

| Axis | Values | Where it lives | | ------------- | ------------------------------------------- | ------------------------------------------------------------ | | base | slate, gray, zinc, stone, neutral | globals.css (bake-time) | | primary | 17 Tailwind hues (redrose) | globals.css (bake-time) | | density | warm, dense | globals.css (bake-time) | | colorScheme | light, dark, system | components.json default; runtime via <html class="dark"> | | direction | ltr, rtl | components.json default; runtime via <html dir="rtl"> |

License

MIT.