Build your own frontend

Build your own frontend

The SDK is a set of TypeScript packages for reading content that was published with SkyScribe (or the older Scribe CMS). You write and organise the content; the SDK is for developers who want to display it in a site or app they build themselves, rather than using a hosted SkyScribe Site.

What it does

Published content is stored on the author's AT Protocol Personal Data Server (PDS) — a public, decentralised data store. The SDK handles everything between "I have an author's handle" and "I have their articles":

  • Resolving a handle (alice.bsky.social) to the author's stable DID
  • Discovering which server hosts the author's data
  • Fetching and normalising the site and article records
  • Wiring up request cancellation so you don't have to

Note

The SDK's API predates SkyScribe's naming, so it calls things by their AT Protocol names: Site (a Publication), Group (a Category), Article (a Document). This whole section uses the SDK's names; SDK concepts has the mapping.

Which package do you need?

PackageForProvides
@scribe-atp/coreAny framework, or none. Start here if unsure.Pure async functions, no runtime dependencies
@scribe-atp/reactReact SPA / client-rendered componentsuseSite, useArticle hooks
@scribe-atp/react-router-frameworkReact Router v7/v8 framework (server) modeLoader factories that wire up request.signal
@scribe-atp/nextNext.js 13+ App RoutergenerateStaticParams / generateMetadata factories
@scribe-atp/nuxtNuxt 3+Full module — auto-imports, useAsyncData integration
@scribe-atp/vueVue 3+useScribeSite, useScribeArticle composables
@scribe-atp/angularAngular 16+ScribeService (Observables), injectSite / injectArticle (Signals)
@scribe-atp/socialReactLikeButton, SubscribeButton, ShareButton — reader engagement
@scribe-atp/stylesAny frameworkThemeable CSS for rendering article content

For SvelteKit, Astro, or any other meta-framework with server-side data loading, install @scribe-atp/core and call fetchSite / fetchArticle directly in your loaders or server components — see Other frameworks.

Requirements

  • Node.js 22 or later
  • TypeScript 5.0 or later (optional but recommended — every package ships full type declarations)

Next steps

  1. Read SDK concepts for the AT Protocol identity model and how content is organised.
  2. Follow the Quickstart to fetch your first Site and Article.
  3. Switch to your framework's guide for idiomatic integration.

Settings

Appearance