Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brightbeanxyz/brightbean-studio
/ functions
Functions
3,156 in github.com/brightbeanxyz/brightbean-studio
⨍
Functions
3,156
◇
Types & classes
668
↳
Endpoints
120
↓ 225 callers
Method
post
(self, request, *args, **kwargs)
apps/oauth_server/views.py:104
↓ 193 callers
Method
save
(self, *args, **kwargs)
apps/credentials/models.py:93
↓ 142 callers
Method
_request
Make an HTTP request with standard error handling. Raises APIError on 4xx/5xx, RateLimitError on 429.
providers/base.py:206
↓ 85 callers
Function
set
({objects:e},t,r,n)
static/js/alpine.min.js:1
↓ 63 callers
Method
create_user
(self, email, password=None, **extra_fields)
apps/accounts/models.py:10
↓ 63 callers
Method
for_workspace
(self, workspace_id)
apps/common/managers.py:25
↓ 53 callers
Function
ne
()
static/js/htmx.min.js:1
↓ 51 callers
Function
_get_workspace
Resolve workspace and enforce membership check.
apps/composer/views.py:58
↓ 50 callers
Method
all
(self)
apps/api/auth.py:220
↓ 49 callers
Function
he
(e,t,n)
static/js/htmx.min.js:1
↓ 41 callers
Function
se
(t,n)
static/js/htmx.min.js:1
↓ 39 callers
Function
ue
(e)
static/js/htmx.min.js:1
↓ 33 callers
Function
_resp
(data)
tests/providers/test_facebook.py:17
↓ 33 callers
Function
_rpc
(method: str, params: dict | None = None, *, id_: int | str | None = 1)
apps/mcp/tests/test_transport.py:50
↓ 32 callers
Function
get_provider
Instantiate and return a provider for the given platform. Args: platform: A PlatformCredential.Platform value (e.g. "facebook").
providers/__init__.py:45
↓ 31 callers
Method
get_model
(self, app_label: str, model_name: str)
apps/api_keys/tests/test_migration_0002.py:122
↓ 31 callers
Function
r
(n,i="")
static/js/alpine.min.js:1
↓ 30 callers
Function
_post
(client: Client, body)
apps/mcp/tests/test_transport.py:59
↓ 27 callers
Function
c
static/js/alpine.min.js:5
↓ 27 callers
Function
ie
(e)
static/js/htmx.min.js:1
↓ 25 callers
Function
ee
(e,t)
static/js/htmx.min.js:1
↓ 23 callers
Function
n
()
static/js/alpine.min.js:5
↓ 22 callers
Function
_
(e)
static/js/alpine.min.js:5
↓ 22 callers
Function
_get_workspace
Resolve workspace and enforce membership check.
apps/calendar/views.py:76
↓ 22 callers
Function
_make_user_with_workspace
Create a user + org + workspace + membership + one connected account. Sets ``last_workspace_id`` so the OAuth resolver picks this workspace, and
apps/mcp/tests/test_oauth_auth.py:52
↓ 22 callers
Function
_resp
(data)
tests/providers/test_instagram.py:9
↓ 22 callers
Method
can_transition_to
Check if a status transition is valid.
apps/composer/models.py:467
↓ 22 callers
Function
e
static/js/alpine.min.js:5
↓ 22 callers
Function
m
(e)
static/js/alpine.min.js:1
↓ 22 callers
Function
notify
Create a notification and dispatch to enabled channels. This is the single entry point that all features call. The function: 1. Creates the N
apps/notifications/engine.py:75
↓ 21 callers
Function
create_post
Create a ``Post`` + one ``PlatformPost`` for ``social_account``. The canonical service-layer entry point for the Agent API. The composer's HT
apps/composer/services.py:74
↓ 21 callers
Method
read
(self, n=-1)
apps/media_library/services.py:177
↓ 20 callers
Function
_first_child_text
(element, *names)
apps/composer/views.py:3446
↓ 20 callers
Function
fe
(e,t,n)
static/js/htmx.min.js:1
↓ 19 callers
Function
a
static/js/alpine.min.js:5
↓ 19 callers
Function
d
(e,t)
static/js/alpine.min.js:5
↓ 19 callers
Function
is_safe_url
Validate that a URL is http(s) and does not resolve to a private/reserved IP. Returns False for non-http(s) schemes (file://, gopher://, etc.) an
apps/common/validators.py:25
↓ 18 callers
Function
_toast_response
Return a 204 whose ``HX-Trigger`` carries a toast and an optional refresh event. Every approval surface listens for ``showToast`` (renders the to
apps/approvals/views.py:34
↓ 18 callers
Function
i
static/js/alpine.min.js:5
↓ 18 callers
Function
normalize_tags
Strict tag normalization for JSON API endpoints. Raises ValueError on malformed input or overflow — caller returns HTTP 400.
apps/common/validators.py:78
↓ 18 callers
Function
oe
(e)
static/js/htmx.min.js:1
↓ 17 callers
Function
_get_workspace_or_404
Get workspace and verify the user has access via the RBAC middleware.
apps/media_library/views.py:29
↓ 17 callers
Method
_occupy
(self, slot_dt, *, queued=True, caption="occupied")
apps/calendar/tests.py:912
↓ 17 callers
Function
enforce_http_rate_limits
Stack the HTTP-level tiers and raise 429 if any trip. Centralized here so routers don't each re-import django-ratelimit helpers. Per-tier rat
apps/api/limits.py:218
↓ 17 callers
Function
s
()
static/js/alpine.min.js:5
↓ 17 callers
Function
t
()
static/js/alpine.min.js:1
↓ 17 callers
Function
y
(e,t)
static/js/htmx.min.js:1
↓ 16 callers
Function
_make_response
(payload: dict)
tests/providers/test_tiktok.py:15
↓ 16 callers
Function
_rpc
(method: str, params: dict | None = None, *, id_: int | str | None = 1)
apps/mcp/tests/test_oauth_auth.py:36
↓ 16 callers
Function
derive_post_status
Return an aggregate post-level status from an iterable of child statuses. Rules: - empty → "draft" - all children share the same valu
apps/composer/status.py:33
↓ 15 callers
Function
C
(e,t)
static/js/htmx.min.js:1
↓ 15 callers
Method
for_workspace_with_shared
Return workspace-scoped assets plus shared org-level assets.
apps/media_library/managers.py:14
↓ 15 callers
Method
is_valid
(self)
apps/client_portal/models.py:63
↓ 15 callers
Function
o
()
static/js/alpine.min.js:5
↓ 14 callers
Function
_make_user
(email)
apps/members/tests/test_role_hierarchy.py:23
↓ 14 callers
Function
_record_action
Create an ApprovalAction row for either a bundled or per-PP action.
apps/approvals/services.py:64
↓ 14 callers
Function
log_audit_entry
Persist one ``ApiKeyAuditLog`` row for the request. Deliberately omits request body — payloads may contain media URLs with embedded signed to
apps/api/middleware.py:27
↓ 14 callers
Function
m
(e,t)
static/js/htmx.min.js:1
↓ 14 callers
Method
publish_post
(self, access_token: str, content: PublishContent)
providers/tiktok.py:273
↓ 13 callers
Function
R
(e,t)
static/js/htmx.min.js:1
↓ 13 callers
Function
_call
(client, name, arguments)
apps/mcp/tests/test_presigned_tools.py:39
↓ 13 callers
Method
_cands
(self, n=6)
apps/calendar/tests.py:909
↓ 13 callers
Function
_client
()
apps/intelligence/views.py:69
↓ 13 callers
Function
_get_provider_for_platform
Resolve app credentials and instantiate the provider.
apps/social_accounts/views.py:36
↓ 13 callers
Function
_get_workspace
Resolve workspace and enforce membership check.
apps/inbox/views.py:71
↓ 13 callers
Function
_login
(client, user)
apps/members/tests/test_role_hierarchy.py:19
↓ 13 callers
Method
_post
(self, status)
apps/approvals/test_workflow.py:50
↓ 13 callers
Method
_request
( self, method: str, path: str, *, body: dict | None = None, q
apps/intelligence/services/client.py:272
↓ 13 callers
Function
_wrap_text
Return MCP's text-content envelope around a JSON-serializable value. Most Claude clients render text blocks reliably; the experimental ``json
apps/mcp/handlers.py:38
↓ 13 callers
Function
c
(e)
static/js/htmx.min.js:1
↓ 13 callers
Function
derive_is_configured
Return True when ``credentials`` holds every required key for ``platform``. Used to populate ``PlatformCredential.is_configured`` (the runtime ga
apps/credentials/models.py:29
↓ 13 callers
Function
next
()
static/js/alpine.min.js:5
↓ 13 callers
Function
re
(t,n)
static/js/htmx.min.js:1
↓ 13 callers
Function
register_tool
(tool: Tool)
apps/mcp/tools.py:41
↓ 13 callers
Function
resolve_platform_credentials
Return app credentials for ``platform``, with ``.env`` dominant. If env has any non-empty value for the platform it wins; otherwise fall back
apps/credentials/models.py:122
↓ 13 callers
Function
te
(e,t)
static/js/htmx.min.js:1
↓ 12 callers
Function
E
(e,...t)
static/js/alpine.min.js:5
↓ 12 callers
Function
_client
(user)
apps/mcp/tests/test_presigned_tools.py:35
↓ 12 callers
Function
_creator_info_response
(options: list[str])
tests/providers/test_tiktok.py:372
↓ 12 callers
Function
_mint_oauth_token
Issue a DOT access token for ``user`` and return its raw value. ``token_checksum`` (the indexed column our verifier looks up) is populated by
apps/mcp/tests/test_oauth_auth.py:85
↓ 12 callers
Function
_video_content
(**extra)
tests/providers/test_tiktok.py:363
↓ 12 callers
Function
x
(...e)
static/js/alpine.min.js:5
↓ 11 callers
Function
E
()
static/js/htmx.min.js:1
↓ 11 callers
Function
M
(e,t,r)
static/js/alpine.min.js:5
↓ 11 callers
Method
_create_asset
(self, filename="asset.png")
apps/composer/tests/test_idea_media_flows.py:41
↓ 11 callers
Method
_issue
(self, workspace, issuer, social_account, permissions)
apps/api_keys/tests/test_services.py:428
↓ 11 callers
Method
_make_pp
(self, **kwargs)
apps/composer/tests/__init__.py:16
↓ 11 callers
Function
_png
(content: bytes = PNG_1X1, name: str = "hero.png")
apps/api/tests/test_media_router.py:109
↓ 11 callers
Function
_post
(client: Client, body)
apps/mcp/tests/test_oauth_auth.py:45
↓ 11 callers
Function
_require_perm
Re-check a workspace permission inside a tool handler. Mirrors REST's ``_require_perm`` so MCP can't be used to bypass permissions that the R
apps/mcp/handlers.py:51
↓ 11 callers
Function
_resolve_publish_credentials
Resolve the credentials dict for publishing on behalf of `account`. Combines org-level `PlatformCredential` (with `.env` dominant) with per-a
apps/publisher/engine.py:43
↓ 11 callers
Function
friendly_health_check_error
Map a provider exception to a short, user-facing message.
apps/social_accounts/error_messages.py:23
↓ 11 callers
Function
g
(e,t)
static/js/htmx.min.js:1
↓ 11 callers
Function
h
(e,t)
static/js/htmx.min.js:1
↓ 11 callers
Function
has_org_permission
Return True if ``membership`` grants the given org-permission key. ``membership`` is an ``OrgMembership`` or None (e.g., the user has no memb
apps/members/models.py:299
↓ 11 callers
Function
l
(e,t)
static/js/htmx.min.js:1
↓ 11 callers
Function
parse_and_truncate_tag_string
Lenient tag normalization for HTML form POSTs. Splits a comma-separated string, strips whitespace, truncates each tag to MAX_TAG_LENGTH, dedu
apps/common/validators.py:104
↓ 11 callers
Method
publish_post
(self, access_token: str, content: PublishContent)
providers/facebook.py:272
↓ 10 callers
Method
_client_returning
(self, status, body=None, *, headers=None)
apps/intelligence/tests/test_internal_client_signing.py:159
↓ 10 callers
Function
_make_user
(email)
apps/members/tests/test_org_permissions.py:23
next →
1–100 of 3,156, ranked by callers