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
↓ 4 callers
Function
_serialize_media
Return the same shape as ``GET /api/v1/media/{id}``.
apps/mcp/handlers.py:563
↓ 4 callers
Method
_stored_post_id
Store only Facebook's post object id from PAGEID_POSTID values.
providers/facebook.py:566
↓ 4 callers
Method
_tiktok_payload
(self, **tiktok_fields)
apps/composer/tests/test_account_scope.py:203
↓ 4 callers
Method
_url
(self, asset_id)
apps/composer/tests/test_media_stream.py:141
↓ 4 callers
Function
account_analytics_bundle
Single-pass snapshot fetch for one account over a ``2 * days`` window. Returns a dict with: - ``series_map``: ``{metric_key: 2*days-long se
apps/analytics/services.py:241
↓ 4 callers
Function
be
static/js/alpine.min.js:5
↓ 4 callers
Function
bn
(r,e,o,i)
static/js/htmx.min.js:1
↓ 4 callers
Method
cancel_studio_checkout_session
( self, *, external_org_id: str, stripe_session_id: str | None, idempo
apps/intelligence/services/client.py:148
↓ 4 callers
Function
check_platform_quota
Raise an ``HttpError(429, ...)`` if the per-account cap is reached. Call this immediately before creating a ``PlatformPost`` row in any write
apps/api/limits.py:124
↓ 4 callers
Function
delete_asset
Delete a media asset, checking for post references first.
apps/media_library/services.py:310
↓ 4 callers
Function
derive
Reduce a daily series into the value + delta + sparkline a card needs. For counts, the value is the SUM over the window. For percent / minutes,
apps/analytics/derive.py:49
↓ 4 callers
Function
e
(e)
static/js/htmx.min.js:1
↓ 4 callers
Method
from_asset
(cls, asset, *, last_used_at: dt.datetime | None = None)
apps/api/schemas.py:380
↓ 4 callers
Method
from_derived
(cls, key: str, label: str, derived: DerivedMetric)
apps/api/schemas.py:464
↓ 4 callers
Method
get_account
(self, user_id: int | str)
apps/intelligence/services/client.py:228
↓ 4 callers
Method
get_profile
(self, access_token: str)
providers/linkedin.py:189
↓ 4 callers
Function
j
(e,t)
static/js/alpine.min.js:5
↓ 4 callers
Function
json_attr
Serialize a Python value as a JSON literal safe to embed inside an HTML attribute (e.g. Alpine.js x-data). json.dumps produces JSON, then HTM
apps/common/templatetags/common_extras.py:11
↓ 4 callers
Function
k
(e,t,r)
static/js/alpine.min.js:1
↓ 4 callers
Function
ln
(n,e)
static/js/htmx.min.js:1
↓ 4 callers
Function
on
(t,n,r,o,i)
static/js/htmx.min.js:1
↓ 4 callers
Method
populate_user
Set user.name from Google profile (custom User model has 'name', not first/last).
apps/accounts/adapters.py:9
↓ 4 callers
Function
pt
(l,c,e,u,a)
static/js/htmx.min.js:1
↓ 4 callers
Function
qe
(e)
static/js/htmx.min.js:1
↓ 4 callers
Function
resolve_app_secrets
Return all candidate app secrets for verifying inbound webhooks. Webhook verification authenticates an inbound event rather than selecting a
apps/credentials/models.py:151
↓ 4 callers
Function
rt
(e,t,r)
static/js/alpine.min.js:5
↓ 4 callers
Function
rt
(e)
static/js/htmx.min.js:1
↓ 4 callers
Function
s
(e,t)
static/js/htmx.min.js:1
↓ 4 callers
Function
tt
(e)
static/js/alpine.min.js:5
↓ 4 callers
Function
validate_file
Validate an uploaded file. Returns (file_type, errors). Trusts the sniffed magic bytes, not the client-supplied Content-Type. The client head
apps/media_library/validators.py:107
↓ 4 callers
Function
vn
(e,t,n)
static/js/htmx.min.js:1
↓ 4 callers
Method
with_last_used_at
Annotate each asset with ``last_used_at``. ``PostMedia`` itself has no ``created_at``, so we walk through to the parent ``Post.create
apps/media_library/managers.py:27
↓ 4 callers
Function
xe
(e)
static/js/alpine.min.js:5
↓ 4 callers
Function
ye
(e,t)
static/js/alpine.min.js:5
↓ 4 callers
Function
z
(e)
static/js/alpine.min.js:1
↓ 3 callers
Function
An
(o)
static/js/htmx.min.js:1
↓ 3 callers
Function
B
(e)
static/js/alpine.min.js:1
↓ 3 callers
Function
Ct
(e)
static/js/alpine.min.js:5
↓ 3 callers
Function
Ft
(e,t)
static/js/htmx.min.js:1
↓ 3 callers
Function
G
(e,t,n)
static/js/htmx.min.js:1
↓ 3 callers
Function
H
(e)
static/js/alpine.min.js:5
↓ 3 callers
Function
Ht
(e)
static/js/alpine.min.js:5
↓ 3 callers
Function
It
(e)
static/js/alpine.min.js:5
↓ 3 callers
Function
J
(e,t,r={})
static/js/alpine.min.js:5
↓ 3 callers
Function
Je
(e,t,n)
static/js/htmx.min.js:1
↓ 3 callers
Function
Kt
(e,t,r,n)
static/js/alpine.min.js:5
↓ 3 callers
Function
Ne
(e,t,r,n,i)
static/js/alpine.min.js:5
↓ 3 callers
Function
Nt
(t,e,n)
static/js/htmx.min.js:1
↓ 3 callers
Function
P
(e)
static/js/htmx.min.js:1
↓ 3 callers
Function
Se
(e,t)
static/js/htmx.min.js:1
↓ 3 callers
Function
Ue
static/js/alpine.min.js:5
↓ 3 callers
Function
Un
(e,n,r)
static/js/htmx.min.js:1
↓ 3 callers
Function
Ut
()
static/js/htmx.min.js:1
↓ 3 callers
Function
Vn
(e)
static/js/htmx.min.js:1
↓ 3 callers
Function
Y
(e,t=!1)
static/js/alpine.min.js:5
↓ 3 callers
Function
Y
(e,t)
static/js/htmx.min.js:1
↓ 3 callers
Function
_api_client_for
(sub: IntelligenceSubscription)
apps/intelligence/views.py:73
↓ 3 callers
Function
_apply_pp_publish_filters
Apply channel and tag filters to a PlatformPost queryset.
apps/calendar/views.py:376
↓ 3 callers
Function
_attach_asset_for_composer
Attach an asset to a post, or queue it in the pending-media session. Post path: migrates any session-pending media first (can happen when the
apps/composer/views.py:1940
↓ 3 callers
Function
_audit_failed_request
Write one audit row for an authenticated failure. Codex review flagged that the per-route ``log_audit_entry`` calls only fire on the success
apps/api/api.py:181
↓ 3 callers
Function
_build_connection_redirect_uri
Build the OAuth callback URL for connection link flow. Platforms with an entry in ``PLATFORM_TO_URL_ALIAS`` use the opaque URL slug to keep t
apps/onboarding/views.py:85
↓ 3 callers
Method
_by_platform
(self, accounts: list[dict])
apps/api/tests/test_account_capabilities.py:121
↓ 3 callers
Method
_canonical
(self, method, path_with_query, timestamp, body_bytes, nonce, secret="test-secret")
apps/intelligence/tests/test_internal_client_signing.py:39
↓ 3 callers
Function
_capture_proposed_publish_at
Set ``post.proposed_publish_at`` from the composer's Schedule Post panel. Used by the draft-stage save actions (save draft, submit/resubmit for
apps/composer/views.py:708
↓ 3 callers
Function
_client_and_bucket
Return ``(boto3_client, bucket_name)`` for the configured S3/R2 bucket.
apps/media_library/storage.py:30
↓ 3 callers
Function
_client_ip
Delegate to the canonical, proxy-trust-aware implementation. Originally a duplicate of the same logic in ``apps/api/limits.py`` — deliberatel
apps/api/middleware.py:75
↓ 3 callers
Method
_create_container
(self, access_token: str, ig_user_id: str, payload: dict)
providers/instagram.py:351
↓ 3 callers
Method
_create_container
(self, access_token: str, payload: dict)
providers/instagram_login.py:348
↓ 3 callers
Function
_create_idea_media_asset
Create a MediaAsset from an uploaded file for Idea create/edit flows.
apps/composer/views.py:2418
↓ 3 callers
Function
_detail_context
Build the full context needed for the message detail panel.
apps/inbox/views.py:43
↓ 3 callers
Function
_extract_secret
Return the app secret from a credentials dict, accepting either spelling.
apps/credentials/models.py:116
↓ 3 callers
Function
_feed_events_cache_key
(workspace_id)
apps/composer/views.py:3408
↓ 3 callers
Function
_first_child
(element, *names)
apps/composer/views.py:3438
↓ 3 callers
Function
_get_filtered_platform_posts
Return a PlatformPost queryset filtered by calendar query params. Each row carries an ``effective_at`` annotation that falls back to ``post.s
apps/calendar/views.py:161
↓ 3 callers
Function
_get_workspace
(request, workspace_id)
apps/analytics/views.py:34
↓ 3 callers
Function
_inviter_org_level
(inviter, org)
apps/members/services.py:35
↓ 3 callers
Function
_inviter_workspace_level
Return inviter's effective workspace role level in *workspace_id*. Org owners are treated as workspace owners across every workspace in their
apps/members/services.py:42
↓ 3 callers
Function
_is_insufficient_scope
Best-effort recognition of "you don't have the right scope" errors. Each provider raises slightly different exceptions; rather than wire them
apps/analytics/tasks.py:285
↓ 3 callers
Function
_is_valid_uuid
(value)
apps/composer/views.py:72
↓ 3 callers
Function
_make_user
(email)
apps/calendar/test_security.py:20
↓ 3 callers
Function
_mark_needs_reconnect
(account)
apps/analytics/tasks.py:587
↓ 3 callers
Function
_month_view_data
Populate context with month view data (no rendering).
apps/calendar/views.py:706
↓ 3 callers
Function
_normalize
Apply the backend's LOCATION prefix + ``safe_join`` traversal guard. Keeps presign / HEAD / range-GET in agreement on the exact key the object
apps/media_library/storage.py:35
↓ 3 callers
Function
_notify_reviewers
Notify every workspace member with ``approve_posts`` (except the actor).
apps/approvals/services.py:75
↓ 3 callers
Function
_occupied_datetimes
Future slot instants already claimed on this channel. Non-published/-publishing PlatformPosts with a future ``scheduled_at`` on ``social_acco
apps/calendar/services.py:106
↓ 3 callers
Method
_open_attempt
(self, **overrides)
apps/intelligence/tests/test_discard_checkout.py:174
↓ 3 callers
Function
_parse_date
Parse a YYYY-MM-DD date string.
apps/calendar/views.py:90
↓ 3 callers
Function
_parse_iso_datetime
(value: Any, field_name: str)
apps/mcp/handlers.py:153
↓ 3 callers
Method
_pinterest_payload
(self, **fields)
apps/composer/tests/test_account_scope.py:285
↓ 3 callers
Function
_queue_pending_activation
Persist PendingActivation + enqueue worker.
apps/intelligence/views.py:805
↓ 3 callers
Method
_remove_url
(self, entry_id, queue_id=None)
apps/calendar/tests.py:1203
↓ 3 callers
Method
_render
(self, **context_overrides)
apps/intelligence/tests/test_discard_checkout.py:388
↓ 3 callers
Function
_render_explore
Shared helper to render the explore feeds partial.
apps/composer/views.py:3904
↓ 3 callers
Function
_reschedule_or_fail
(pending: PendingActivation, exc: Exception)
apps/intelligence/tasks.py:224
↓ 3 callers
Function
_resolve_allowed_account
(api_key, social_account_id_str: str)
apps/mcp/handlers.py:71
↓ 3 callers
Function
_resolve_provider
Mirror apps.social_accounts.tasks.check_social_account_health's credential resolution so platforms with org-level creds (Meta apps, etc.) work.
apps/analytics/tasks.py:256
↓ 3 callers
Method
_schedule_retry
Schedule a retry with exponential backoff.
apps/publisher/engine.py:539
↓ 3 callers
Method
_scheduled_post
(self, *, held_sibling)
apps/approvals/test_workflow.py:214
↓ 3 callers
Function
_scoped_platform_post_ids
PlatformPost IDs inside the composer's ``account_scope``, or ``None`` when unscoped.
apps/composer/views.py:122
↓ 3 callers
Function
_seed_account_snapshots
Write a contiguous ``2 * days``-long account snapshot history. We need 2× the requested window so the derive helper's previous-period delta h
apps/api/tests/test_analytics_router.py:191
← previous
next →
301–400 of 3,156, ranked by callers