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

@actioneer/ads

v1.0.74

Published

Actioneer Design System 1.0 — React 19 + Tailwind v4 component library.

Readme

@actioneer/ads

The Actioneer Design System: React 19 components, Tailwind CSS v4 tokens, bundled Geist body font, Season Mix heading tokens, and accessible interactions with built-in motion.

Browse components in Storybook.

The one rule: build UI only from the exact named exports of @actioneer/ads, and reference tokens — never raw color/dimension literals. Never fork, alias, deep-import, or hand-roll a copy of a component. npx ads lint, which ships inside @actioneer/ads, enforces this.


1. Install

npm install @actioneer/ads motion

Use an existing React 19 + Tailwind CSS v4 application with an ESM-capable bundler. react and react-dom are peer dependencies; the application owns the React instance. The setup below uses Next.js App Router paths.

The bootstrap configures styles and providers and creates the lint config:

npx @actioneer/ads init

init adds the CSS import, creates ads-providers.tsx (or .jsx), and writes a consumer ads-lint.config.mjs. It wraps detected Next.js layouts and reports any manual setup still needed. Run it from your application directory after setting up Tailwind v4. The manual setup follows.

2. Tailwind v4 + styles.css (import order matters)

In your global stylesheet, import ADS's stylesheet immediately after Tailwind:

/* app/globals.css */
@import "tailwindcss";
@import "@actioneer/ads/styles.css";

styles.css carries three things that must live in the same CSS graph as tailwindcss:

  • the @theme design tokens (colors, typography, spacing, and radii),
  • the Geist @font-face rule (served package-relative — no /public copy needed). Page titles, breadcrumbs, tabs and button labels use --font-heading: "Season Mix"; Season Mix is licensed and not in this public package — Actioneer apps install the private @glitchcraft-inc/ads-fonts (see "Season Mix" below; without it they fall back to the platform serif), and
  • a baked @source "./**/*.{js,mjs}" so Tailwind scans ADS's own class usage and generates its utilities in your build.

⚠️ Import order is load-bearing. If you @import "@actioneer/ads/styles.css" before @import "tailwindcss" — or import it into a stylesheet that isn't part of the Tailwind graph — its @theme is an unknown at-rule and no tokens emit (you'll get an unstyled, "blank" render).

Granular entries are also exported if you need them: @actioneer/ads/theme.css (tokens only) and @actioneer/ads/fonts.css (@font-face only).

3. Required providers

Wrap your app root once with all three providers. npx @actioneer/ads init generates this as app/ads-providers.tsx (beside the layout when using src/app):

// app/ads-providers.tsx
"use client";

import type { ReactNode } from "react";
import { TooltipProvider, ToastProvider, useAutoHideScrollbars } from "@actioneer/ads";
import { MotionConfig } from "motion/react";

export function Providers({ children }: { children: ReactNode }) {
  useAutoHideScrollbars();
  return (
    <MotionConfig reducedMotion="user">
      <ToastProvider>
        <TooltipProvider>{children}</TooltipProvider>
      </ToastProvider>
    </MotionConfig>
  );
}
// app/layout.tsx
import type { ReactNode } from "react";
import { Providers } from "./ads-providers";
import "./globals.css";

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en">
      <body><Providers>{children}</Providers></body>
    </html>
  );
}
  • TooltipProvider — required. The vendored tooltip/attachment chips crash the tree without an ancestor provider.
  • ToastProvider — required to render toasts.
  • <MotionConfig reducedMotion="user"> — honors the OS reduced-motion setting across every ADS animation.
  • useAutoHideScrollbars() — reveals native scrollbars during scrolling and hides them when idle. Call it once in your existing app-level providers component when upgrading ADS.

For other React frameworks, import the global stylesheet and wrap the application root with Providers in the framework's entry point.

4. Usage

Use AppWindow at the application root. Place Sidebar and PageBody directly inside it. The shell fills the viewport and the page takes the remaining space beside the sidebar.

Import the exact named export from the package barrel:

// app/page.tsx
"use client";

import { Button, InputField } from "@actioneer/ads";

export default function Example() {
  return (
    <main className="mx-auto flex max-w-sm flex-col gap-4 p-6">
      <InputField label="Workspace name" defaultValue="Actioneer" />
      <div className="flex gap-2">
        <Button variant="solid" size="md">Save</Button>
        <Button variant="secondary">Cancel</Button>
      </div>
    </main>
  );
}

Do not:

| ❌ Anti-pattern | ✅ Instead | |----------------|-----------| | import { Button } from "@actioneer/ads/button" (deep import) | import { Button } from "@actioneer/ads" | | import { Card as Panel } from "@actioneer/ads" (alias) | use the export's real name, Card | | import Button from "@actioneer/ads" (default) / import * as ADS (namespace) | named imports only | | copy a component's source into your repo and edit it (fork) | import it; request an ADS change upstream | | class="bg-[#0a0a0b]" / "#0a0a0b" (literal) | a semantic token, e.g. bg-brand | | import { Dialog } from "@radix-ui/react-dialog" (external UI) | the ADS primitive (Modal, Popover, …) |

Why: ADS is a single source of truth. A token or motion fix ships to the whole fleet with one version bump — but only if every consumer imports the canonical export instead of a divergent fork.

Discover exact names: the machine-readable catalog ships in the package — @actioneer/ads/manifest.json (every export → name, family, kind, variants, props, showcase URL) and @actioneer/ads/llms.txt (the LLM-facing index). Point your coding agent at those, or use the ADS MCP server.

Reference the semantic tokens (e.g. bg-brand, text-muted-foreground, border-input, ring-ring) rather than raw values; the full token list is in manifest.json under tokens.

Authentication

Use AuthScreen with a product logo above its glass pane. It supplies the Season Mix title (default “Sign in”), animated sky and triangle wash; pass busy while submitting. The licensed Season Mix face stays in the product. Use AuthLoading during startup and redirects. AuthBackground exposes just the decorative background, with paused and triangles options. All three import from @actioneer/ads. Use panelAs="div" if the host already owns main. The copyable examples/auth-screen.tsx keeps authentication in host callbacks, renders errors inline, and omits routine sign-in/sign-out success popups.

First-use empty screens

Use EmptyState size="page" in a PageBody that fills the available space. Set alt="" on the illustration because the heading explains the state. Give the screen one action when there is a way to add the first item.

"use client";

import { BodyPageHeader, Button, EmptyState, PageBody } from "@actioneer/ads";
import connections from "@actioneer/ads/illustrations/empty-connections.webp";

const illustrationUrl = typeof connections === "string" ? connections : connections.src;

export function EmptyDataSources({ onConnect }: { onConnect: () => void }) {
  return (
    <PageBody>
      <BodyPageHeader title="Data sources" className="mb-0" />
      <EmptyState
        size="page"
        title="No data sources connected"
        illustration={
          <img src={illustrationUrl} alt="" width={512} height={512} className="-mb-6 h-auto w-48 max-w-full" />
        }
        action={<Button size="lg" onClick={onConnect}>Connect source</Button>}
      />
    </PageBody>
  );
}

The example handles both URL strings and Next.js image metadata. Vite users can pass the imported URL directly to src. The assets under @actioneer/ads/illustrations/ are empty-documents.webp, empty-connections.webp, empty-insights.webp, empty-journeys.webp, empty-voice-campaigns.webp, empty-audiences.webp, empty-knowledge.webp, and empty-artifacts.webp. See Recipes → First-use empty screens in Storybook.

Recent activity: use RecentSection, RecentItemsGrid, RecentCard, RecentCardTitle, RecentCardLink and RecentCardArrow for the matching chat and journey cards. RecentCardLink asChild preserves a router link; RecentItemsGrid asChild preserves a list or RevealGroup. Put secondary actions in relative z-10 above the stretched title link. The examples/ask-actioneer-screen.tsx recipe includes the Season Mix page greeting, live journey details and a Back to chats control. Supply real history and journey data from the app. Short collection tables fit their records, capped by the available panel height; long ones scroll. ADS has no pagination.

Sample screens: full screens built only from ADS exports ship as readable source in node_modules/@actioneer/ads/examples/ (AgentsScreen, SettingsScreen, WorkspaceHeaderScreen, CampaignsScreen, CampaignAnalysisScreen). Open them to see how components are meant to be composed, or copy one into your app and swap in your own data; the folder's README.md lists what each one shows.

Screen recipes: when you build a screen CLOSE to a collection (a list of records with a detail panel and a create modal) or a record's analytics page, start from CampaignsScreen / CampaignAnalysisScreen and follow the collection-screens, record-detail-panels, analytics-surfaces, status-language, create-modals and settings-screens principles (get_principles) and the collection-screen / record-analytics / create-modal / record-call-logs / settings-screen productions (get_ui_grammar). A record's call logs start from CallLogsScreen; a settings page from GuardrailsSettingsScreen. In short: rows fill the panel and scroll (no pagination), row checkboxes on hover, TableRow isActive for the open row, status under the detail title, outlined stat and chart cards with legends in the title row and printed values, a 16px breadcrumb titling drill-downs, business-language statuses, and fixed-height modals (sm 320px, md–xl 640px). Inside a create modal (NewCampaignModal): optional guidance in a Field info icon, a source switch in Field actions, an inline FileDropzone, a single-select Table to reuse a saved record, and bare icons with no tile behind them. Record panels: a grounded DrawerHeader (DrawerKicker, DrawerTitle, DrawerMeta), a scrolling DrawerBody of DrawerSections, DetailList attributes with Not stated empties, each fact once, and no footer unless its action exists. Settings groups fill the panel.

Shared motion presets are named exports from @actioneer/ads. Components already include their own interaction motion; use the exported presets for additional application state changes.

5. Check your code with ads lint

The linter ships inside @actioneer/ads (from 1.0.67), so it is always the same version as the components you import: there is nothing else to install or keep in step. It parses imports with typescript when your project has it.

init drops a consumer-mode config at your repo root:

// ads-lint.config.mjs
export default {
  imports: {
    libraryPackage: "@actioneer/ads",
    libraryRoot: null, // consumer mode: every file is a consumer
  },
};

Run it:

# lint everything
npx ads lint --all
# or just what changed (pre-commit / CI)
npx ads lint --staged
npx ads lint --diff origin/main

@actioneer/ads-lint still publishes at the same version with the same rules (npx ads-lint …), for projects that already use it.

It flags deep imports, aliased/default/namespace barrel imports, external-UI imports, hardcoded color/dimension literals, banned/weak motion, and the screen recipes — hand-made call panels, filter menus and filter chips, script screens, empty states without a description, toolbars, tables and modals — the same rules ADS holds itself to. A CI job that runs npx ads lint --diff <base> on pull requests keeps every consuming repo honest: changed files must be clean, untouched files are not required to be.

Applying ADS to an existing app

Updating @actioneer/ads restyles the ADS components your screens already render — nothing else. A screen your app built itself keeps its own markup until you replace it, and the files under examples/ are references to copy, not code an update reaches. So after an update, run npx ads lint --all and work its errors to zero: each one names the hand-made part and the ADS part that replaces it. Never pass an empty value (description={null}, "") to quiet a rule. The screens most often left behind:

| Screen | Use | |---|---| | A call's review panel | CallPanel — loading while details are fetched, your own sections as children | | A campaign's Script tab | ScriptOpeningLine, ScriptStart (editor keeps yours), ScriptDocument | | Writing the script with AI | ScriptStartChooser, ScriptWriting, ScriptEditor (mode edit · rewriting · review), ScriptCard (the saved script), ScriptAskBar, ScriptAIStatus, ScriptReviewBar, ScriptReviewNotes (what to check under a review) — see examples/campaign-script-editor-screen.tsx | | Table filters | the column header menu (TableColumn filterOptions), or Filters in the CollectionToolbar | | An applied filter as a chip | Chip onClose | | Empty screens, tabs and panels | EmptyState with a real description |

Documentation and license

  • Storybook: components
  • ADS for coding agents: npx @actioneer/ads mcp starts the MCP server (component lookup, screen kinds, principles, and lint_snippet with every lint rule). Add it to .mcp.json as { "mcpServers": { "ads": { "command": "npx", "args": ["-y", "@actioneer/ads", "mcp"] } } }.
  • Bundled references: @actioneer/ads/manifest.json, @actioneer/ads/llms.txt, and @actioneer/ads/DESIGN.md.

MIT licensed.

Season Mix (private font package)

Season Mix is licensed to Actioneer, so it ships in a separate private package on GitHub Packages that only Glitchcraft-Inc members can install:

  1. Create a GitHub personal access token with the read:packages scope.

  2. Add to your app's .npmrc:

    @glitchcraft-inc:registry=https://npm.pkg.github.com
    //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}

    and set GITHUB_TOKEN to that token locally and in CI.

  3. npm i @glitchcraft-inc/ads-fonts

  4. Import it once, after the ADS styles:

    @import "tailwindcss";
    @import "@actioneer/ads/styles.css";
    @import "@glitchcraft-inc/ads-fonts/season-mix.css";

Never copy the WOFF2 into a public repository, public npm package or public website.

Product patterns captured on 19 November 2026

Use ConfirmDialog for destructive confirmation and Button tone="danger" for a quiet red removal action. The dialog focuses Cancel and blocks dismissal while isLoading. The host performs the mutation and closes the dialog after success.

ChartLegend gives long legends a source-balanced preview, searchable overflow and keyboard series toggles. Core charts share it. ConversionFunnel provides compact selectable steps, zero-only layout, explicit unknown values and stable labels.

The shipped examples/workspace-access-screen.tsx demonstrates Joined dates, compact status chips, ordered roles, meaningful draft comparison and cancellation. examples/visualisation-editor-screen.tsx demonstrates inline title editing, a type selector at the top of the left panel, a menu beside Save and a readable chart preview. Settings examples also disable Save until a value changes and after edits are undone.

First-use Data policies uses the document illustration with EmptyState size="page" and one Create policy action. Keep the populated-list action in the header; avoid a duplicate header action on the empty screen. Read @actioneer/ads/PARITY.md for the complete change-to-package map, including the API behavior that remains in the host.

The 1.0.46 follow-up recipes ship as examples/artifact-header.tsx and examples/campaign-setup-screen.tsx: neutral labeled Edit/View controls, individual avatar tooltips and a completion-aware campaign setup rail (since 2026-11-28 a read-only DetailList once the campaign runs, not locked inputs). The journey example shows Saved as a chip and reveals Test enrollments only after a test or existing history. Use the standard skeleton loading state without stacking a progress bar over it. Call times use AM/PM in the primary timezone and audience counts use users. Hosts must guard stale callbacks, queued writes and server mutations after completion.