A lexicon-driven AppView for ATProto.
0

Configure Feed

Select the types of activity you want to include in your feed.

docs: add info for use with @atproto/api

Signed-off-by: Trezy <tre@trezy.com>

+16
+2
packages/docs/docs/sdk/overview.md
··· 13 13 14 14 **Starting a new app?** Use `@happyview/lex-agent` with `@atproto/lex`. It gives you type-safe XRPC calls through a `Client` that routes requests to your HappyView instance with DPoP authentication. This is the recommended way to interact with HappyView from JavaScript. 15 15 16 + **Already using `@atproto/api`?** `HappyViewSession` works directly as a session manager for `@atproto/api`'s `Agent` — just pass it to `new Agent(session)`. See [Using with @atproto/api](./oauth-client-browser.md#using-with-atprotoapi). 17 + 16 18 **Already using `@atproto/oauth-client-browser`?** Add `@happyview/oauth-client-browser` to get a `HappyViewBrowserClient` that handles the HappyView-specific DPoP key provisioning and session registration on top of the standard atproto OAuth flow. 17 19 18 20 **Building a server-side (Node.js) app?** Use `@happyview/oauth-client-node` — it handles handle resolution, DID resolution, PDS discovery, and the full OAuth flow server-side. Matches the API surface of `@atproto/oauth-client-node`.
+14
packages/oauth-client-browser/README.md
··· 70 70 ); 71 71 ``` 72 72 73 + ### Using with @atproto/api 74 + 75 + `HappyViewSession` works directly with `@atproto/api`'s `Agent`: 76 + 77 + ```typescript 78 + import { Agent } from "@atproto/api"; 79 + 80 + const result = await client.init(); 81 + if (result) { 82 + const agent = new Agent(result.session); 83 + const profile = await agent.getProfile({ actor: agent.did }); 84 + } 85 + ``` 86 + 73 87 ### Revoke Session 74 88 75 89 ```typescript