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

@countersig/react

v1.0.2

Published

Countersig React components - Trust badges, reputation displays, and capability lists

Readme

@countersig/react

React components for displaying Countersig trust badges, reputation scores, and capability lists. Zero Tailwind dependency — all styles are self-contained inline CSS.

Installation

npm install @countersig/react react react-dom

Peer Dependencies

  • react >= 18.0.0
  • react-dom >= 18.0.0

Components

TrustBadge

Displays an agent's trust status, verification tier, and score. Fetches badge data from the Countersig API.

import { TrustBadge } from '@countersig/react';

<TrustBadge
  agentId="your-agent-id"
  apiUrl="https://api.countersig.com"
  theme="dark"
  size="md"
  showScore={true}
  showChain={true}
  showActions={true}
  showDate={true}
  onClick={() => window.open('https://countersig.com/agent/your-agent-id')}
/>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | agentId | string | required | Agent identifier | | apiUrl | string | https://api.countersig.com | API base URL | | theme | 'light' \| 'dark' | 'light' | Visual theme | | size | 'sm' \| 'md' \| 'lg' | 'md' | Badge size | | showScore | boolean | true | Show reputation score | | showChain | boolean | true | Show chain type indicator | | showActions | boolean | false | Show total actions count | | showDate | boolean | false | Show registration date | | className | string | '' | Custom CSS class | | onClick | () => void | — | Click handler |


ReputationBreakdown

Displays the 5-factor reputation score breakdown with animated progress bars. Can fetch from the API or accept pre-fetched data.

import { ReputationBreakdown } from '@countersig/react';

// Fetch from API
<ReputationBreakdown
  agentId="your-agent-id"
  theme="dark"
  showHeader={true}
  showLegend={true}
/>

// With pre-fetched data
<ReputationBreakdown
  breakdown={{
    feeActivity: { score: 22, max: 30 },
    successRate: { score: 20, max: 25 },
    age: { score: 15, max: 20 },
    saidTrust: { score: 10, max: 15 },
    community: { score: 5, max: 10 }
  }}
  theme="light"
/>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | agentId | string | — | Agent ID (fetches from API) | | breakdown | Record<string, number \| { score: number; max: number }> | — | Pre-fetched breakdown data | | apiUrl | string | https://api.countersig.com | API base URL | | theme | 'light' \| 'dark' | 'light' | Visual theme | | showHeader | boolean | true | Show score header | | showLegend | boolean | true | Show color legend | | className | string | '' | Custom CSS class |


CapabilityList

Displays agent capabilities as styled tags/pills with category-specific colors and icons. Can fetch from the API or accept pre-provided data.

import { CapabilityList } from '@countersig/react';

// Fetch from API
<CapabilityList
  agentId="your-agent-id"
  theme="dark"
  showLabel={true}
  maxDisplay={5}
/>

// With pre-provided capabilities
<CapabilityList
  capabilities={['bags.swap', 'bags.fee', 'bags.launch', 'infra']}
  theme="light"
  maxDisplay={3}
/>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | agentId | string | — | Agent ID (fetches from API) | | capabilities | string[] | — | Pre-provided capabilities | | apiUrl | string | https://api.countersig.com | API base URL | | theme | 'light' \| 'dark' | 'light' | Visual theme | | showLabel | boolean | true | Show "Capabilities" label | | maxDisplay | number | — | Max items to show (with "+N more") | | className | string | '' | Custom CSS class |


ChainBadge

Displays the blockchain/chain type as a compact colored badge.

import { ChainBadge } from '@countersig/react';

<ChainBadge chainType="solana-bags" size="md" theme="dark" />
<ChainBadge chainType="ethereum" size="sm" theme="light" />
<ChainBadge chainType="base" />

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | chainType | string | required | Chain type identifier | | size | 'sm' \| 'md' | 'md' | Badge size | | theme | 'light' \| 'dark' | 'light' | Visual theme | | className | string | '' | Custom CSS class |

Supported Chain Types

| chainType | Display | Color | |-----------|---------|-------| | solana-bags | Solana/BAGS | #9945FF | | solana | Solana | #14F195 | | ethereum | Ethereum | #627EEA | | base | Base | #0052FF | | polygon | Polygon | #8247E5 |


Theme Support

All components support theme="light" and theme="dark". The dark theme uses dark backgrounds with light text, matching the Countersig platform aesthetic.

Self-Contained Styles

All components use inline CSS styles with no external CSS imports, Tailwind dependencies, or CSS-in-JS runtime. They work in any React project out of the box.

TypeScript Support

Full TypeScript type definitions are included. Import component and prop types:

import type { TrustBadgeProps, ReputationBreakdownProps, CapabilityListProps, ChainBadgeProps } from '@countersig/react';

Links

License

MIT