This repository contains the official TypeScript SDK for the Are.na API.
Published packages:
@aredotna/sdk: generated from the Are.na OpenAPI specification with a small ergonomic facade for OAuth, pagination, uploads, and error handling.@aredotna/react-query: TanStack Query hooks over the stable SDK facade.
corepack enable
pnpm install
pnpm gen:fetch
pnpm gen
pnpm test
pnpm buildThe OpenAPI snapshot lives in spec/openapi.json so builds are reproducible offline.
This monorepo uses fixed versions: @aredotna/sdk and @aredotna/react-query always share
the same version, and releases are tagged as vX.Y.Z.
Release flow:
- Label a PR with exactly one of
patch,minor, ormajor. - Merge the PR into
main. - The Release workflow bumps the root package and both package versions, commits
release: vX.Y.Z, and pushes tagvX.Y.Z. - The Publish workflow runs from that tag, publishing
@aredotna/sdkfirst and then@aredotna/react-query. - The Publish workflow creates a GitHub Release if one does not already exist.
Required secrets:
NPM_TOKEN: npm token with publish access to the@aredotnascope.RELEASE_TOKEN(optional): token used by the Release workflow so the release commit can re-trigger CI onmain.
Local release checks:
pnpm check
pnpm typecheck
pnpm test
pnpm build
node scripts/version-all.mjs patch --dry-run
pnpm -r --filter './packages/*' publish --dry-runDo not publish manually unless recovering from a workflow failure.