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

@alphinex/business

v1.1.10

Published

Domain-shaped business components (Lookups, Timelines, ActivityFeed, ApprovalWorkflow, DashboardKPI/StatCard) built on generic prop shapes — no api/auth coupling.

Readme

@alphinex/business

Domain-shaped business components — Lookups, Timelines, ActivityFeed, ApprovalWorkflow, DashboardKPI/StatCard. Every component takes a generic prop shape supplied by the app; none of them import @alphinex/api, @alphinex/api-laravel, @alphinex/auth, or @alphinex/permissions — data fetching and domain wiring stay in the app, exactly like @alphinex/table and @alphinex/charts.

StatCard

A single dashboard metric with an optional delta/trend indicator.

import { StatCard } from "@alphinex/business";

<StatCard label="Revenue" value="$12,400" delta={12.5} />;

AuditTimeline / PaymentTimeline

import { AuditTimeline, PaymentTimeline } from "@alphinex/business";

<AuditTimeline
  events={[
    { id: "1", actor: "Ada Lovelace", action: "approved the invoice", timestamp: "2026-01-05" },
  ]}
/>;

<PaymentTimeline events={[{ id: "1", dueDate: "2026-02-01", amount: 1240, status: "overdue" }]} />;

ActivityFeed

import { ActivityFeed } from "@alphinex/business";

<ActivityFeed
  items={[
    { id: "1", actor: "Grace Hopper", description: "closed the ticket", timestamp: "2026-01-05" },
  ]}
/>;

ApprovalWorkflow

import { ApprovalWorkflow } from "@alphinex/business";

<ApprovalWorkflow
  steps={[{ id: "1", actor: "Ada Lovelace", status: "approved", timestamp: "2026-01-05" }]}
/>;

Lookup<Entity>

A generic async-search field. Compose it into domain-specific components (CustomerLookup, ProductLookup, ...) by supplying fetchCandidates:

import { Lookup } from "@alphinex/business";

function CustomerLookup(props: { value: Customer | null; onChange: (c: Customer | null) => void }) {
  return (
    <Lookup<Customer>
      {...props}
      label="Customer"
      fetchCandidates={(query) => api.searchCustomers(query)}
      getLabel={(customer) => customer.name}
      getKey={(customer) => customer.id}
    />
  );
}

Keyboard navigation (arrow keys) is deferred — mouse/touch selection only for now; Escape closes the dropdown.

See documentation/ARCHITECTURE.md and documentation/PRODUCT-RESEARCH-MASTER-PLAN.md §8 for the full package contract and design rationale.