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

@yasser172/tec-ui

v3.0.0

Published

TEC Ecosystem — UI Components, Types, Constants, Utils & Payment helpers

Readme

@yasser172/tec-ui

Shared design system and UI component library for the TEC Federated Platform, used by every TEC app (Hub, Ecommerce, Assets, Commerce).

Pure UI only — no Pi SDK, no auth, no backend calls. Inline styles only (no CSS modules / Tailwind) so every component renders inside the Pi Browser.


Install

npm install @yasser172/tec-ui

Peer dependencies: react >=18, react-dom >=18.


Usage

Design tokens (EVL palette — v2.x)

Always use the tokens; never hardcode hex in apps.

import { TEC_COLORS, TEC_FONTS, TEC_RADIUS } from '@yasser172/tec-ui';

TEC_COLORS.gold     // #FBBF24 — WEALTH accent
TEC_COLORS.bg       // #050816 — page background
TEC_COLORS.surface  // #0B1020 — cards/drawers
TEC_COLORS.purple   // #8B5CF6 — IDENTITY   (semantic domains, C-83)
TEC_COLORS.green    // #22C55E — GROWTH
TEC_COLORS.cyan     // #06B6D4 — INTELLIGENCE
TEC_COLORS.red      // #EF4444 — RISK
TEC_COLORS.blue     // #3B82F6 — GOVERNANCE

Components

import { GlobalNav, Icon, CountUp, PaymentModal, PaymentStatusBadge } from '@yasser172/tec-ui';

<GlobalNav /* current app + items */ />
<Icon name="wallet" size={18} />
<CountUp value={1234.56} />              // animated, prefers-reduced-motion aware
<PaymentStatusBadge status="completed" />

Utilities & payment helpers

import { formatPi, formatDate, buildHubPayUrl, createU2APayment } from '@yasser172/tec-ui';

formatPi(1.23)              // "π 1.2300"
buildHubPayUrl({ /* ... */ }) // canonical /hub?pay=1&... URL

Subpath export

import { PaymentModal } from '@yasser172/tec-ui/payment';

Exports at a glance

| Group | Exports | |-------|---------| | Components | GlobalNav, Icon, CountUp, PaymentModal, PaymentStatusBadge, ObservabilityStatus, ServiceHealthDot | | Theme | TEC_COLORS, TEC_FONTS, TEC_RADIUS | | Constants | TEC_DOMAINS, TEC_APPS, TEC_COOKIES | | Utils | formatPi, parsePiAmount, formatDate, generateRequestId, buildBffHeaders | | Payment | buildHubPayUrl, handleBuy, createPaymentRecord, createU2APayment, … | | Types | TecAppId, PaymentStatus, PaymentRecord, … |


Rules

  • No window.Pi / Pi SDK, no fetch/axios, no auth logic — pure UI.
  • Inline styles only — no CSS modules, Tailwind, or styled-components (Pi Browser).
  • Backward compatibility: never remove/rename an export without a major version bump.
  • Color token values are a contract (C-83) — changing them is a coordinated, breaking change.

Development

npm run build       # tsup → dist/ (ESM + CJS + .d.ts)
npm run test        # vitest
npm run typecheck   # tsc --noEmit

See CHANGELOG.md for release history.

License

MIT © TEC