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

@molecule/app-author-bio-card-react

v1.0.2

Published

Author bio card with avatar, name, bio, social links, and follow button

Readme

@molecule/app-author-bio-card-react

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Author bio card — avatar + name + bio + social links + follow button.

Renders an author identity preview suitable for blog/podcast/video-streaming article footers, sidebar "About the author" panels, and any other place a lightweight user-profile card is needed. Two layouts (compact, full) cover the common shapes.

Quick Start

import { AuthorBioCard } from '@molecule/app-author-bio-card-react'

;<AuthorBioCard
  author={{
    id: 'alice',
    name: 'Alice Example',
    avatar: '/avatars/alice.png',
    bio: 'Writes about distributed systems and tea.',
    href: '/authors/alice',
    socials: { twitter: 'alice', github: 'alice', website: 'alice.example' },
  }}
  layout="full"
  following={isFollowing}
  onFollow={setFollowing}
/>

Type

feature

Installation

npm install @molecule/app-author-bio-card-react @molecule/app-react @molecule/app-ui @molecule/app-ui-react react
npm install -D @types/react

API

Interfaces

AuthorBioCardAuthor

Author identity rendered by <AuthorBioCard>.

interface AuthorBioCardAuthor {
  /** Stable identifier (used as a link key, `data-mol-id` suffix, etc.). */
  id: string
  /** Display name — rendered as a clickable link if `href` is provided. */
  name: string
  /** Optional avatar image URL. Falls back to initials if omitted. */
  avatar?: string
  /** Optional bio paragraph. */
  bio?: string
  /** Optional profile URL — when set, the name renders as a link. */
  href?: string
  /** Optional dictionary of social handles / profile links. */
  socials?: AuthorSocials
}

AuthorSocials

Social handles / profile links for an author. All keys are optional — pass only the platforms the author actually has. Each value may be a full URL or a bare handle ("@alice"); the card forwards values to <a href> verbatim, so callers control the linking strategy.

interface AuthorSocials {
  /** Twitter / X profile URL or handle. */
  twitter?: string
  /** GitHub profile URL or handle. */
  github?: string
  /** LinkedIn profile URL. */
  linkedin?: string
  /** Mastodon profile URL or `@user@instance` handle. */
  mastodon?: string
  /** Personal website URL. */
  website?: string
}

Functions

AuthorBioCard(props)

Author bio card — avatar + name + bio + social links + optional follow button. Designed for blog/podcast/video-streaming article footers and other user-profile previews. Two layouts:

  • compact (default): single horizontal row, suitable for inline author bylines or sidebar "About the author" panels.
  • full: stacked layout with a larger avatar and a dedicated social row beneath the bio paragraph.

All user-facing strings (Follow / Following labels, social aria-labels) route through useTranslation() so apps can override text via the companion locale bond @molecule/app-locales-author-bio-card.

function AuthorBioCard({
  author,
  layout = 'compact',
  following = false,
  onFollow,
  className,
  dataMolId = 'author-bio-card',
}: AuthorBioCardProps): JSX.Element
  • props — Component props.
  • props.author — Author identity + bio + socials.
  • props.layout — Layout preset: compact (default) or full.
  • props.following — Whether the viewer currently follows this author.
  • props.onFollow — Toggle handler for the follow button.
  • props.className — Extra classes on the outer card.
  • props.dataMolId — data-mol-id for AI-agent selectors.

Returns: The rendered author bio card.

resolveSocialHref(key, value)

Resolve a social value (URL or bare handle) into an href. URLs pass through unchanged; bare handles are routed to a sensible per-platform default. Mastodon handles of the form @user@instance become https://instance/@user.

function resolveSocialHref(
  key: 'twitter' | 'github' | 'linkedin' | 'mastodon' | 'website',
  value: string,
): string
  • key — Which platform the value is for.
  • value — The raw social value (URL or handle).

Returns: A fully-qualified URL safe to use as <a href>.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-react ^1.0.1
  • @molecule/app-ui ^1.0.1
  • @molecule/app-ui-react ^1.0.1
  • react ^18.0.0 || ^19.0.0

Runtime Dependencies

  • @molecule/app-react
  • @molecule/app-ui
  • @molecule/app-ui-react
  • react

All UI text routes through useTranslation() from @molecule/app-react so apps can override copy via the companion locale bond @molecule/app-locales-author-bio-card.

Translations

Translation strings are provided by @molecule/app-locales-author-bio-card.