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

@skyscribe-sdk/react

v3.1.0

Published

React hooks for reading SkyScribe content from the AT Protocol.

Readme

@skyscribe-sdk/react

npm license

React hooks for reading SkyScribe content from the AT Protocol. Requires React 18 or later.

Wraps @skyscribe-sdk/core with idiomatic React state management. Handles loading state, error state, and request cancellation automatically — re-fetches when parameters change and aborts in-flight requests on unmount.

Installation

npm install @skyscribe-sdk/react

Usage

ScribeContent

Renders an article's HTML in a <div class="scribe-content"> (so @skyscribe-sdk/styles applies), with Embeds (videos, music, code pens, Bluesky posts and link cards) shown as their players. Videos, music and pens show a Poster until clicked, so no player loads unasked.

import { ScribeContent } from "@skyscribe-sdk/react";
import "@skyscribe-sdk/styles";

<ScribeContent html={article.content} />

// Load every player with the page instead of Posters
<ScribeContent html={article.content} clickToLoad={false} />

// Keep Embeds as the links they're stored as
<ScribeContent html={article.content} embeds={false} />

useSite

import { useSite } from "@skyscribe-sdk/react";

function BlogIndex() {
  const { site, loading, error } = useSite("alice.bsky.social", "https://alice.bsky.social");

  if (loading) return <p>Loading…</p>;
  if (error)   return <p>Something went wrong: {error.message}</p>;

  return (
    <ul>
      {site.groups.map((group) =>
        group.articles.map((article) => (
          <li key={article.uri}>{article.title}</li>
        ))
      )}
    </ul>
  );
}

useArticleBySlug

Looks the article up by its slug (as in its URL) and returns it with its AT URI:

import { useArticleBySlug } from "@skyscribe-sdk/react";

function ArticlePage({ slug }: { slug: string }) {
  const { article, uri, loading, error } = useArticleBySlug(
    "alice.bsky.social",
    "https://alice.bsky.social",
    slug
  );

  if (loading) return <p>Loading…</p>;
  if (error)   return <p>Something went wrong: {error.message}</p>;

  if (!article) return null;

  return (
    <article>
      <h1>{article.title}</h1>
      <div dangerouslySetInnerHTML={{ __html: article.content }} />
    </article>
  );
}

useArticle(author, rkey) fetches by record key instead, for when you already have an ArticleRef. Don't pass it a slug.

SiteAnalytics

Cookie-free visit figures for your SDK-driven website, shown to the Publication's owner on its Insights tab in SkyScribe (free). Render it once, in your root layout:

import { SiteAnalytics } from "@skyscribe-sdk/react";

<SiteAnalytics />

Figures appear once your site serves /.well-known/site.standard.publication with your Publication's AT URI. You're responsible for disclosing the analytics in your privacy policy. Guide: https://sdk.skyscribe.app/guides/site-analytics

TypeScript types

All types from @skyscribe-sdk/core are re-exported so you only need one import:

import type { Site, Article, ArticleRef, SiteGroup } from "@skyscribe-sdk/react";

Using with server-side rendering

If you're using React Router v7 framework mode, consider @skyscribe-sdk/react-router-framework instead — it fetches on the server and avoids client-side loading states entirely.

For Next.js App Router or other SSR frameworks, use @skyscribe-sdk/core directly in your server components or page loaders.

License

MIT