Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bluesky-social/cookbook
/ functions
Functions
129 in github.com/bluesky-social/cookbook
⨍
Functions
129
◇
Types & classes
13
↳
Endpoints
8
↓ 10 callers
Function
is_safe_url
(url)
python-oauth-web-app/atproto_security.py:7
↓ 9 callers
Function
is_valid_did
(did: str)
python-oauth-web-app/atproto_identity.py:17
↓ 8 callers
Function
parse_urls
(text: str)
python-bsky-post/create_bsky_post.py:62
↓ 7 callers
Function
parse_mentions
(text: str)
python-bsky-post/create_bsky_post.py:30
↓ 6 callers
Function
is_valid_handle
(handle: str)
python-oauth-web-app/atproto_identity.py:13
↓ 6 callers
Function
query_db
(query, args=(), one=False)
python-oauth-web-app/app.py:89
↓ 6 callers
Function
useSession
()
react-native-oauth/components/SessionProvider.tsx:160
↓ 4 callers
Function
auth_server_post
( authserver_url: str, client_id: str, client_secret_jwk: JsonWebKey, dpop_private_jwk: JsonWe
python-oauth-web-app/atproto_oauth.py:114
↓ 4 callers
Function
compute_client_id
(url_root)
python-oauth-web-app/app.py:55
↓ 4 callers
Function
extract_facets
(text: str)
python-oauth-web-app/bsky_util.py:5
↓ 4 callers
Function
fetch_authserver_meta
(url: str)
python-oauth-web-app/atproto_oauth.py:60
↓ 4 callers
Function
get_db
()
python-oauth-web-app/app.py:73
↓ 4 callers
Function
resolve_identity
(atid: str)
python-oauth-web-app/atproto_identity.py:31
↓ 3 callers
Function
NewSqliteStore
(cfg *SqliteStoreConfig)
go-oauth-web-app/sqlitestore.go:51
↓ 3 callers
Function
buildOAuthClient
()
go-oauth-cli-app/main.go:66
↓ 3 callers
Method
currentSessionDID
(r *http.Request)
go-oauth-web-app/main.go:182
↓ 3 callers
Function
resolve_did
(did: str)
python-oauth-web-app/atproto_identity.py:90
↓ 3 callers
Function
resolve_handle
(handle: str)
python-oauth-web-app/atproto_identity.py:59
↓ 3 callers
Function
resolve_pds_authserver
(url: str)
python-oauth-web-app/atproto_oauth.py:47
↓ 3 callers
Function
strPtr
(raw string)
go-oauth-web-app/main.go:204
↓ 2 callers
Method
GetAuthRequestInfo
(ctx context.Context, state string)
go-oauth-web-app/sqlitestore.go:119
↓ 2 callers
Method
GetMostRecentSession
not part of the ClientAuthStore interface, just used for the CLI app
go-oauth-cli-app/sqlitestore.go:100
↓ 2 callers
Method
GetSession
(ctx context.Context, did syntax.DID, sessionID string)
go-oauth-web-app/sqlitestore.go:79
↓ 2 callers
Function
authserver_dpop_jwt
( method: str, url: str, nonce: str, dpop_private_jwk: JsonWebKey )
python-oauth-web-app/atproto_oauth.py:91
↓ 2 callers
Function
doLogin
(identifier)
vanillajs-oauth-web-app/main.js:84
↓ 2 callers
Function
handle_from_doc
(doc: dict)
python-oauth-web-app/atproto_identity.py:21
↓ 2 callers
Function
is_use_dpop_nonce_error_response
(resp: Response)
python-oauth-web-app/atproto_oauth.py:367
↓ 2 callers
Function
parse_uri
(uri: str)
python-bsky-post/create_bsky_post.py:147
↓ 2 callers
Function
pds_endpoint
(doc: dict)
python-oauth-web-app/atproto_identity.py:114
↓ 2 callers
Function
upload_file
(pds_url, access_token, filename, img_bytes)
python-bsky-post/create_bsky_post.py:200
↓ 2 callers
Function
useBskyAgent
()
react-native-oauth/components/BskyAgentProvider.tsx:55
↓ 1 callers
Method
DeleteAuthRequestInfo
(ctx context.Context, state string)
go-oauth-web-app/sqlitestore.go:142
↓ 1 callers
Method
DeleteSession
(ctx context.Context, did syntax.DID, sessionID string)
go-oauth-web-app/sqlitestore.go:111
↓ 1 callers
Function
NewSqliteStore
(cfg *SqliteStoreConfig)
go-oauth-cli-app/sqlitestore.go:51
↓ 1 callers
Method
Post
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:354
↓ 1 callers
Method
SaveAuthRequestInfo
(ctx context.Context, info oauth.AuthRequestData)
go-oauth-web-app/sqlitestore.go:133
↓ 1 callers
Method
SaveSession
(ctx context.Context, sess oauth.ClientSessionData)
go-oauth-web-app/sqlitestore.go:99
↓ 1 callers
Function
blobDownloadAll
(raw string)
go-repo-export/main.go:217
↓ 1 callers
Function
blobList
(raw string)
go-repo-export/main.go:179
↓ 1 callers
Function
bsky_login_session
(pds_url: str, handle: str, password: str)
python-bsky-post/create_bsky_post.py:21
↓ 1 callers
Function
buildClientID
()
vanillajs-oauth-web-app/main.js:4
↓ 1 callers
Function
carDownload
(raw string)
go-repo-export/main.go:47
↓ 1 callers
Function
carList
(carPath string)
go-repo-export/main.go:77
↓ 1 callers
Function
carUnpack
(carPath string)
go-repo-export/main.go:109
↓ 1 callers
Function
client_assertion_jwt
( client_id: str, authserver_url: str, client_secret_jwk: JsonWebKey )
python-oauth-web-app/atproto_oauth.py:73
↓ 1 callers
Function
create_post
(args)
python-bsky-post/create_bsky_post.py:298
↓ 1 callers
Function
doPost
(message)
vanillajs-oauth-web-app/main.js:99
↓ 1 callers
Function
fetch_embed_url_card
(pds_url: str, access_token: str, url: str)
python-bsky-post/create_bsky_post.py:243
↓ 1 callers
Function
fixInput
(input: string)
react-native-oauth/components/SignInForm.tsx:88
↓ 1 callers
Function
get_embed_ref
(pds_url: str, ref_uri: str)
python-bsky-post/create_bsky_post.py:279
↓ 1 callers
Function
get_reply_refs
(pds_url: str, parent_uri: str)
python-bsky-post/create_bsky_post.py:164
↓ 1 callers
Function
init_db
()
python-oauth-web-app/app.py:99
↓ 1 callers
Function
initial_token_request
( auth_request: dict, code: str, client_id: str, redirect_uri: str, client_secret_jwk: Jso
python-oauth-web-app/atproto_oauth.py:205
↓ 1 callers
Function
is_valid_authserver_meta
(obj: dict, url: str)
python-oauth-web-app/atproto_oauth.py:17
↓ 1 callers
Function
listenForCallback
listens in the background and immediately returns the now-listening port number. When the callback endpoint is requested, it returns the query paramet
go-oauth-cli-app/main.go:25
↓ 1 callers
Function
main
()
python-bsky-post/create_bsky_post.py:353
↓ 1 callers
Function
main
()
ts-bot/index.ts:14
↓ 1 callers
Function
main
()
ts-bot/index.js:35
↓ 1 callers
Function
parseFacets
Allow Unicode letters + Unicode numbers TODO: support more than just hashtags!
go-oauth-web-app/util.go:10
↓ 1 callers
Function
parse_facets
parses post text and returns a list of app.bsky.richtext.facet objects for any mentions (@handle.example.com) or URLs (https://example.com)
python-bsky-post/create_bsky_post.py:103
↓ 1 callers
Function
parse_full_aturi
(uri: str)
python-oauth-web-app/atproto_util.py:1
↓ 1 callers
Function
parse_www_authenticate
(data: str)
python-oauth-web-app/atproto_oauth.py:357
↓ 1 callers
Function
pds_authed_req
(method: str, url: str, user: dict, db: Any, body=None)
python-oauth-web-app/atproto_oauth.py:386
↓ 1 callers
Function
pds_dpop_jwt
( method: str, url: str, access_token: str, nonce: str, dpop_private_jwk: JsonWebKey, )
python-oauth-web-app/atproto_oauth.py:330
↓ 1 callers
Function
prepareDbPath
Follows XDG conventions and creates the directories if necessary. By default, on linux, this will be "~/.local/share/go-oauth-cli-app/oauth_sessions.s
go-oauth-cli-app/main.go:56
↓ 1 callers
Function
refresh_token_request
( user: dict, client_id: str, client_secret_jwk: JsonWebKey, )
python-oauth-web-app/atproto_oauth.py:250
↓ 1 callers
Function
revoke_token_request
( user: dict, client_id: str, client_secret_jwk: JsonWebKey, )
python-oauth-web-app/atproto_oauth.py:291
↓ 1 callers
Function
run
()
go-repo-export/main.go:27
↓ 1 callers
Function
send_par_auth_request
( authserver_url: str, authserver_meta: dict, login_hint: str, client_id: str, redirect_ur
python-oauth-web-app/atproto_oauth.py:158
↓ 1 callers
Function
upload_images
( pds_url: str, access_token: str, image_paths: List[str], alt_text: str )
python-bsky-post/create_bsky_post.py:223
↓ 1 callers
Function
useGetSessionQuery
()
react-native-oauth/app/(authenticated)/index.tsx:51
↓ 1 callers
Function
useOAuthSession
()
react-native-oauth/components/SessionProvider.tsx:164
↓ 1 callers
Function
usePdsAgent
()
react-native-oauth/components/PdsAgentProvider.tsx:30
↓ 1 callers
Function
useProfileQuery
(actor: string)
react-native-oauth/app/(authenticated)/index.tsx:96
Function
AccountInfo
()
react-native-oauth/app/(authenticated)/index.tsx:31
Function
AuthenticatedLayout
()
react-native-oauth/app/(authenticated)/_layout.tsx:4
Function
BskyAgentProvider
({ children }: PropsWithChildren)
react-native-oauth/components/BskyAgentProvider.tsx:13
Method
ClientMetadata
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:208
Method
DeleteAuthRequestInfo
(ctx context.Context, state string)
go-oauth-cli-app/sqlitestore.go:155
Method
DeleteSession
(ctx context.Context, did syntax.DID, sessionID string)
go-oauth-cli-app/sqlitestore.go:124
Function
DidWebEndpoint
(w http.ResponseWriter, r *http.Request)
go-xrpc-server/main.go:120
Function
EchoEndpoint
(w http.ResponseWriter, r *http.Request)
go-xrpc-server/main.go:95
Method
GetAuthRequestInfo
(ctx context.Context, state string)
go-oauth-cli-app/sqlitestore.go:132
Method
GetSession
(ctx context.Context, did syntax.DID, sessionID string)
go-oauth-cli-app/sqlitestore.go:79
Function
HomeEndpoint
(w http.ResponseWriter, r *http.Request)
go-xrpc-server/main.go:138
Method
Homepage
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:241
Function
Index
()
react-native-oauth/app/(authenticated)/index.tsx:10
Method
JWKS
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:232
Function
Layout
()
react-native-oauth/app/_layout.tsx:9
Method
OAuthCallback
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:287
Method
OAuthLogin
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:259
Method
OAuthLogout
(w http.ResponseWriter, r *http.Request)
go-oauth-web-app/main.go:331
Function
PdsAgentProvider
({ children }: PropsWithChildren)
react-native-oauth/components/PdsAgentProvider.tsx:9
Function
ProfileCard
({ actor }: { actor: string })
react-native-oauth/app/(authenticated)/index.tsx:65
Function
RootNavigator
()
react-native-oauth/app/_layout.tsx:22
Method
SaveAuthRequestInfo
(ctx context.Context, info oauth.AuthRequestData)
go-oauth-cli-app/sqlitestore.go:146
Method
SaveSession
(ctx context.Context, sess oauth.ClientSessionData)
go-oauth-cli-app/sqlitestore.go:112
Function
SessionProvider
({ client, children, }: PropsWithChildren<{ client: ExpoOAuthClientInterface }>)
react-native-oauth/components/SessionProvider.tsx:35
Function
SignIn
()
react-native-oauth/app/sign-in.tsx:4
Function
SignInForm
({ signIn, disabled = !signIn, }: { signIn?: (input: string) => Promise<void> disabled?: boolean })
react-native-oauth/components/SignInForm.tsx:4
next →
1–100 of 129, ranked by callers