···33lightweight and cute API client for AT Protocol.
4455```sh
66-npm install @atcute/client
66+npm install @atcute/client @atcute/bluesky
77```
8899-## definition packages
99+## prerequisites
1010+1111+the client requires a definition package to know what queries and procedures are available. install
1212+one alongside the client:
1313+1414+```sh
1515+npm install @atcute/client @atcute/bluesky
1616+```
10171111-by default, the client has no type definitions for queries or procedures.
1818+then register the type definitions using one of these methods:
1919+2020+```jsonc
2121+// tsconfig.json
2222+{
2323+ "compilerOptions": {
2424+ "types": ["@atcute/bluesky"],
2525+ },
2626+}
2727+```
2828+2929+```ts
3030+// env.d.ts
3131+/// <reference types="@atcute/bluesky" />
3232+```
3333+3434+```ts
3535+// or as an import in your entrypoint
3636+import type {} from '@atcute/bluesky';
3737+```
3838+3939+now the XRPC methods will have full type information for the registered schemas.
4040+4141+available packages:
12421343| package | schemas |
1444| ------------------------------------------------------------------ | --------------------------------------- |
···2252| [`@atcute/microcosm`](../../definitions/microcosm) | `blue.microcosm.*`, `com.bad-example.*` |
2353| [`@atcute/pckt`](../../definitions/pckt) | `blog.pckt.*` |
2454| [`@atcute/lexicon-community`](../../definitions/lexicon-community) | `community.lexicon.*` |
5555+5656+you can register multiple packages to combine their types.
25572658## usage
2759