Open prenaissance opened 2 days ago
Is your feature request related to a problem? Please describe.
It is unclear from the documentation of @atproto/api how to create an anonymous Agent (for xRPC invocation on the com.atproto NSID).
@atproto/api
Agent
com.atproto
Describe the solution you'd like
Declare a default constructor with the url set to "https://bsky.social/xrpc" or add this in the jsdoc.
"https://bsky.social/xrpc"
Describe alternatives you've considered
After looking through the source code and the Python client implementation I figured that it's supposed to be instantiated via
import { Agent } from "@atproto/api" const agent = new Agent("https://bsky.social/xrpc");
Would be happy to open a PR if deemed as valid, by the way.
Is your feature request related to a problem? Please describe.
It is unclear from the documentation of
@atproto/api
how to create an anonymousAgent
(for xRPC invocation on thecom.atproto
NSID).Describe the solution you'd like
Declare a default constructor with the url set to
"https://bsky.social/xrpc"
or add this in the jsdoc.Describe alternatives you've considered
After looking through the source code and the Python client implementation I figured that it's supposed to be instantiated via