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

@aturi.to/waypoints-react

v0.1.1

Published

[Beta] React picker UI + client icons for Aturi's Atmosphere (AT Protocol) waypoint catalog. Headless-first and fully themeable; ships zero CSS by default.

Readme

@aturi.to/waypoints-react

A drop-in React "Open in…" picker for the Atmosphere, built on @aturi.to/waypoints. Add per-client links, smart recommendations, and client icons to your app in a few lines.

Headless-first: the components ship zero CSS by default and emit stable, namespaced styling hooks. Use your own design system, opt into the polished Aturi theme, or drop down to a hook and render everything yourself.

Beta — early release. This is a 0.x package that hasn't been thoroughly tested in production yet. Expect rough edges, and possible breaking changes between minor versions while the API settles. Bug reports and feedback are very welcome at github.com/atpota-to/aturi/issues.

Install

npm install @aturi.to/waypoints-react
# peers (you almost certainly already have react/react-dom):
npm install react react-dom lucide-react

@aturi.to/waypoints-react re-exports everything from @aturi.to/waypoints, so a single install gives you the components and the catalog/resolvers.

Server vs. client components

This is a client package — its entry carries the "use client" directive, so the components work out of the box in the Next.js App Router and other React Server Components setups (no wrapper needed). Because the directive applies to the whole entry, reach for @aturi.to/waypoints directly when you need the framework-agnostic helpers (resolveAtUri, buildWaypointsForParsed, the catalog, …) inside a Server Component.

Three ways to use it

1. Drop-in picker (headless markup, bring your own styles)

import { WaypointPicker } from '@aturi.to/waypoints-react';

<WaypointPicker
  type="post"
  handle="alice.bsky.social"
  collection="app.bsky.feed.post"
  rkey="3k7qw..."
/>;

This renders clean semantic markup with no CSS attached. Every element carries both a data-aturi-wp="…" attribute and an aturi-wp-* class so you can style it however you like. Map your own classes per slot, or pass unstyled to drop the built-in class names entirely:

<WaypointPicker
  type="profile"
  handle="alice.bsky.social"
  unstyled
  classNames={{
    button: 'flex items-center gap-3 rounded-lg border p-4 hover:bg-gray-50',
    name: 'font-semibold',
    description: 'text-sm text-gray-500',
  }}
/>

Replace a row entirely with renderWaypoint while still getting the computed url, description, icon, and isRecommended flag:

<WaypointPicker
  type="post"
  handle="alice.bsky.social"
  collection="app.bsky.feed.post"
  rkey="3k7qw..."
  renderWaypoint={({ waypoint }) => (
    <a href={waypoint.url} className="my-row">
      {waypoint.icon}
      {waypoint.name}
    </a>
  )}
/>

2. The useWaypoints hook (no markup at all)

For full control, the hook returns render-ready data and copy / open helpers. Render 100% your own UI:

import { useWaypoints } from '@aturi.to/waypoints-react';

function MyPicker() {
  const { recommended, categories, waypoints, copy, open } = useWaypoints({
    type: 'post',
    handle: 'alice.bsky.social',
    collection: 'app.bsky.feed.post',
    rkey: '3k7qw...',
  });

  return (
    <ul>
      {waypoints.map((w) => (
        <li key={w.id}>
          {w.icon}
          <button onClick={() => open(w.url)}>{w.name}</button>
          <button onClick={() => copy(w.url)}>Copy</button>
        </li>
      ))}
    </ul>
  );
}

Each entry carries { id, name, label, description, url, icon, category, isRecommended }.

3. The polished theme (opt-in)

Want the Aturi look without writing CSS? Import the stylesheet once:

import '@aturi.to/waypoints-react/styles.css';
import { WaypointPicker } from '@aturi.to/waypoints-react';

It targets the namespaced classes and is fully themeable via CSS custom properties (with light/dark defaults). Recolor or respace by overriding a few tokens:

.aturi-wp {
  --aturi-wp-accent: #db2777;
  --aturi-wp-radius: 4px;
  --aturi-wp-bg: #fffaf5;
}

Available tokens: --aturi-wp-accent, --aturi-wp-accent-contrast, --aturi-wp-bg, --aturi-wp-surface, --aturi-wp-surface-hover, --aturi-wp-border, --aturi-wp-text, --aturi-wp-text-secondary, --aturi-wp-text-tertiary, --aturi-wp-radius, --aturi-wp-gap, --aturi-wp-pad, --aturi-wp-font.

<WaypointPicker> props

| Prop | Type | Description | | --- | --- | --- | | type | WaypointType | 'post' \| 'profile' \| 'list' \| 'record' \| 'unknown' | | handle | string | Handle or DID of the target repo | | collection, rkey, did | string? | Record coordinates / explicit DID | | displayName | string? | Shown in the subtitle; defaults to @handle | | waypointIds | string[]? | Allowlist of waypoint ids to surface | | hiddenIds | string[]? | Ids to remove | | customWaypoints | CustomWaypoint[]? | Your own destinations | | showRecommended | boolean? | Default true | | showCopy | boolean? | Default true | | onSelect | (waypoint, event) => void | Override open-in-new-tab | | unstyled | boolean? | Drop built-in class names | | classNames | WaypointClassNames? | Per-slot class map | | renderWaypoint | render prop | Replace the row markup | | className | string? | Extra class on the root |

Icons

The per-client SVG components and the WAYPOINT_ICONS map are exported too:

import { WAYPOINT_ICONS, BlueskySVG } from '@aturi.to/waypoints-react';

License

MIT © atpotato, LLC.