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
↓ 1 callers
Function
_credits_for
Mirror of Intelligence's per-endpoint credit cost (display-only, Intelligence is authoritative).
apps/intelligence/views.py:1208
↓ 1 callers
Function
_date_range
()
tests/providers/test_tiktok.py:21
↓ 1 callers
Function
_day_view
Render day view with detailed hour timeline.
apps/calendar/views.py:948
↓ 1 callers
Function
_dcr_rate_limited
Best-effort per-IP cap with a server-wide backstop to blunt row-spam. Once an IP is over its per-IP cap we short-circuit *before* touching the
apps/oauth_server/views.py:74
↓ 1 callers
Function
_decode_cursor
(cursor: str | None)
apps/api/routers/media.py:234
↓ 1 callers
Method
_delete_staged_photos
Best-effort cleanup of unpublished photos staged for a multi-photo post. Swallows errors so cleanup never masks the original publish failure.
providers/facebook.py:401
↓ 1 callers
Function
_derive_hmac_pepper
Derive a 256-bit HMAC pepper from SECRET_KEY via HKDF. Distinct ``info`` bytes from the field-encryption key derivation in ``apps.common.encr
apps/api_keys/services.py:44
↓ 1 callers
Function
_dispatch_email
Send notification email using Django's email backend.
apps/notifications/engine.py:240
↓ 1 callers
Function
_dispatch_in_app
In-app delivery is just the DB record - already created.
apps/notifications/engine.py:235
↓ 1 callers
Function
_encode_cursor
(payload: dict)
apps/api/routers/media.py:244
↓ 1 callers
Function
_escalate
Notify workspace managers that a post is stalled.
apps/approvals/tasks.py:144
↓ 1 callers
Method
_exchange_for_long_lived_token
Exchange a short-lived token for a long-lived one.
providers/threads.py:129
↓ 1 callers
Method
_exchange_for_long_lived_token
(self, short_lived_token: str)
providers/instagram_login.py:195
↓ 1 callers
Function
_extract_image_url
(entry, summary_raw)
apps/composer/views.py:3470
↓ 1 callers
Method
_extract_tags
Resolve up to 4 Forem-valid tags from an explicit hint or #hashtags.
providers/devto.py:174
↓ 1 callers
Function
_fetch_feed_events_for_workspace
Fetch and aggregate recent events across all workspace feeds. Each feed is re-validated against is_safe_url at fetch time (not just at add ti
apps/composer/views.py:3629
↓ 1 callers
Method
_fetch_publish_status
Fetch the publish status payload for an in-flight publish job. Returns the ``data`` block of ``/v2/post/publish/status/fetch/``. Once
providers/tiktok.py:496
↓ 1 callers
Function
_filter_events_for_feed
(events, selected_feed_id)
apps/composer/views.py:3693
↓ 1 callers
Method
_first_image_url
Use the first image media URL as the article cover, if any.
providers/devto.py:189
↓ 1 callers
Function
_fk_referenced_asset_ids
Collect all asset IDs referenced via foreign keys.
apps/media_library/services.py:708
↓ 1 callers
Function
_flatten_validation_error
Render Django's nested ValidationError as a single readable line.
apps/api/routers/media.py:189
↓ 1 callers
Function
_get_cached_workspace_feed_events
Return cached feed events and last refresh time for workspace feeds.
apps/composer/views.py:3671
↓ 1 callers
Method
_get_client_ip
(request)
apps/accounts/middleware.py:69
↓ 1 callers
Method
_get_location_id
Return the location ID from credentials or by listing locations.
providers/google_business.py:183
↓ 1 callers
Method
_get_media_fields
(self, access_token: str, media_id: str)
providers/instagram.py:587
↓ 1 callers
Method
_get_media_fields
(self, access_token: str, media_id: str)
providers/instagram_login.py:551
↓ 1 callers
Method
_get_post_insights
(self, access_token: str, post_ids: list[str])
providers/facebook.py:520
↓ 1 callers
Method
_get_profile_fields
(self, access_token: str, ig_user_id: str)
providers/instagram.py:573
↓ 1 callers
Method
_get_profile_fields
(self, access_token: str)
providers/instagram_login.py:537
↓ 1 callers
Function
_get_publish_context
Build shared context for the publish page (channels, tags, timezone).
apps/calendar/views.py:320
↓ 1 callers
Function
_get_visible_platform_choices
Return PlatformCredential.Platform.choices filtered to visible platforms. Platforms without a PlatformVisibility row default to visible.
apps/social_accounts/views.py:49
↓ 1 callers
Function
_handle_account_deletion
Handle account deletion with sole-owner safety check.
apps/accounts/views.py:178
↓ 1 callers
Function
_handle_cancel_deletion
Cancel a pending organization deletion (owner only). Also removes the queued background-task row so the worker isn't holding a no-op schedule
apps/organizations/views.py:180
↓ 1 callers
Function
_handle_facebook_change
Handle a single Facebook change event (comment, mention, etc.).
apps/inbox/webhooks.py:161
↓ 1 callers
Function
_handle_facebook_messaging
Handle a Facebook/Instagram messaging event (DM).
apps/inbox/webhooks.py:212
↓ 1 callers
Function
_handle_immediate_org_deletion
Permanently delete an organization right now (owner only). Since v1 is one-org-per-user, deleting the org leaves the user with no workspace/o
apps/organizations/views.py:158
↓ 1 callers
Function
_handle_name_update
Handle name change.
apps/accounts/views.py:134
↓ 1 callers
Function
_handle_name_update
Handle organization name change.
apps/organizations/views.py:116
↓ 1 callers
Function
_handle_org_deletion
Schedule organization deletion for 14 days from now (owner only).
apps/organizations/views.py:140
↓ 1 callers
Function
_handle_password_update
Handle password change.
apps/accounts/views.py:146
↓ 1 callers
Function
_handle_photo_update
Handle avatar upload or deletion.
apps/accounts/views.py:84
↓ 1 callers
Function
_handle_tz_update
Handle default timezone change.
apps/organizations/views.py:128
↓ 1 callers
Function
_i
(e)
static/js/alpine.min.js:5
↓ 1 callers
Function
_initial_issuance_context
Build the initial state for the issuance modal. The workspace dropdown is rendered server-side from the org's workspaces; everything downstre
apps/api_keys/views.py:209
↓ 1 callers
Function
_is_https_uri
(value)
apps/oauth_server/views.py:90
↓ 1 callers
Function
_is_in_quiet_hours
Check if the user is currently in their quiet hours window.
apps/notifications/engine.py:154
↓ 1 callers
Function
_is_recent
True if a provider message timestamp falls within the backlog-notify window.
apps/inbox/tasks.py:26
↓ 1 callers
Function
_is_secure_intelligence_url
(url: str)
config/settings/base.py:534
↓ 1 callers
Function
_issuer_still_authorized
True iff ``api_key.issued_by`` still has a WorkspaceMembership in the key's workspace. Returns False when the issuer was deleted (FK set to N
apps/api_keys/services.py:386
↓ 1 callers
Function
_json_referenced_asset_ids
Collect all asset IDs embedded in JSON fields.
apps/media_library/services.py:719
↓ 1 callers
Function
_json_referenced_asset_ids_postgres
Extract asset IDs from JSON fields using PostgreSQL jsonb functions.
apps/media_library/services.py:726
↓ 1 callers
Function
_json_referenced_asset_ids_python
Extract asset IDs from JSON fields by iterating in Python (SQLite fallback).
apps/media_library/services.py:774
↓ 1 callers
Function
_last_touched_cache_key
(api_key_pk)
apps/api_keys/services.py:414
↓ 1 callers
Function
_list_view
Render list/table view of posts.
apps/calendar/views.py:955
↓ 1 callers
Function
_load_holidays
Load holidays.json once and cache.
apps/calendar/holidays.py:13
↓ 1 callers
Method
_login_portal
(self)
apps/approvals/test_workflow.py:458
↓ 1 callers
Function
_make_member
(org)
apps/intelligence/tests/test_discard_checkout.py:83
↓ 1 callers
Function
_make_owner
(org)
apps/intelligence/tests/test_discard_checkout.py:72
↓ 1 callers
Function
_make_user
(email)
apps/approvals/test_security.py:15
↓ 1 callers
Method
_materialize_video_to_disk
Return a local path for the video plus whether the caller owns cleanup. The publisher engine downloads media to a temp file before invoking t
providers/linkedin.py:736
↓ 1 callers
Function
_me_for
(request, org_id, sub: IntelligenceSubscription | None)
apps/intelligence/views.py:79
↓ 1 callers
Function
_n
(e,t)
static/js/alpine.min.js:5
↓ 1 callers
Function
_n
()
static/js/htmx.min.js:1
↓ 1 callers
Function
_niches_for
Return the niche catalog for the playground's content-gaps panel. Pulls from Django's cache when possible; on miss, makes one billed call to
apps/intelligence/views.py:105
↓ 1 callers
Method
_normalize_name
(self, name)
apps/media_library/tests/test_presigned_upload.py:65
↓ 1 callers
Function
_normalize_selected_feed_id
(selected_feed_id, feeds)
apps/composer/views.py:3412
↓ 1 callers
Function
_notify_clients
Send CLIENT_APPROVAL_REQUESTED notification to all client members.
apps/approvals/services.py:410
↓ 1 callers
Function
_notify_mentions
Send notifications to @mentioned workspace members.
apps/approvals/comments.py:156
↓ 1 callers
Function
_notify_reviewers_of_hold
Notify reviewers (approve_posts holders) that a client put a post on hold.
apps/approvals/services.py:398
↓ 1 callers
Method
_notify_sla_overdue
Notify about an SLA-overdue message.
apps/inbox/tasks.py:166
↓ 1 callers
Function
_override_bytes
Return an OrgSetting override in bytes, or ``None``. Accepts either an integer JSON value or a stringified integer. Anything else logs and is
apps/media_library/quotas.py:77
↓ 1 callers
Method
_page_scoped_post_id
(self, post_id: str)
providers/facebook.py:573
↓ 1 callers
Method
_parse_facets
Parse links, mentions, and hashtags into Bluesky facet objects. Byte offsets are computed over the UTF-8 encoding of the text.
providers/bluesky.py:279
↓ 1 callers
Function
_parse_media_asset_ids
Parse ordered media ids from CSV, preserving order and removing duplicates.
apps/composer/views.py:2258
↓ 1 callers
Function
_parse_published_at
(raw_value)
apps/composer/views.py:3494
↓ 1 callers
Function
_parse_quota_message
Parse ``rate_limited tier=X limit=N remaining=N retry_after=N`` into JSON. The limits module emits this fixed format from ``_format_quota_message
apps/api/api.py:259
↓ 1 callers
Function
_parse_range
(value: str | None)
apps/analytics/views.py:52
↓ 1 callers
Function
_pkce_code_challenge
Derive TikTok's PKCE ``code_challenge`` from a ``code_verifier``. TikTok deviates from RFC 7636: the challenge is the HEX-encoded SHA256 of t
providers/tiktok.py:86
↓ 1 callers
Function
_platform_display_names
Return list of (platform_key, display_name) tuples.
apps/common/context_processors.py:139
↓ 1 callers
Function
_populate_calendar_context
Populate context with calendar data without rendering. Used when we need the calendar data (period_label, prev/next dates, etc.) but want to
apps/calendar/views.py:677
↓ 1 callers
Function
_post_cadence_due
Decide whether ``post`` is due for a new ``_sync_post_metrics`` sync. Looks at the latest ``PostInsightsSnapshot.captured_at`` for ``post`` and
apps/analytics/tasks.py:594
↓ 1 callers
Function
_post_first_comment_task
Post the first comment as a background task (avoids blocking the publisher thread).
apps/publisher/engine.py:623
↓ 1 callers
Method
_preview_post
(self, data)
apps/composer/tests/test_preview.py:25
↓ 1 callers
Function
_process_image
Extract metadata and generate thumbnail for an image.
apps/media_library/tasks.py:46
↓ 1 callers
Function
_process_meta_events
Process Meta (Facebook/Instagram) webhook events into InboxMessages. An event is processed only for SocialAccounts whose platform is in `plat
apps/inbox/webhooks.py:90
↓ 1 callers
Function
_process_video
Extract metadata and generate thumbnail for a video.
apps/media_library/tasks.py:57
↓ 1 callers
Function
_process_youtube_notification
Parse Atom XML notification from YouTube and upsert messages.
apps/inbox/webhooks.py:308
↓ 1 callers
Method
_publish_article_post
(self, access_token: str, author: str, content: PublishContent)
providers/linkedin.py:419
↓ 1 callers
Method
_publish_carousel
Create and publish a carousel thread.
providers/threads.py:324
↓ 1 callers
Method
_publish_carousel
Publish a carousel post with multiple media items.
providers/instagram.py:319
↓ 1 callers
Method
_publish_carousel
(self, access_token: str, content: PublishContent)
providers/instagram_login.py:321
↓ 1 callers
Method
_publish_file_upload
Publish using FILE_UPLOAD source (two-step).
providers/tiktok.py:431
↓ 1 callers
Method
_publish_image_post
(self, access_token: str, author: str, content: PublishContent)
providers/linkedin.py:267
↓ 1 callers
Method
_publish_multi_photo
(self, access_token: str, page_id: str, content: PublishContent)
providers/facebook.py:326
↓ 1 callers
Method
_publish_photo
(self, access_token: str, page_id: str, content: PublishContent)
providers/facebook.py:304
↓ 1 callers
Method
_publish_poll_post
(self, access_token: str, author: str, content: PublishContent)
providers/linkedin.py:442
↓ 1 callers
Method
_publish_post_group
Publish a group of due PlatformPosts belonging to the same Post. Grouping is purely an operational optimization (shared media download,
apps/publisher/engine.py:150
↓ 1 callers
Method
_publish_pull_from_url
Publish using PULL_FROM_URL source.
providers/tiktok.py:410
↓ 1 callers
Method
_publish_single
Create and publish a single-item thread (TEXT, IMAGE, or VIDEO).
providers/threads.py:227
↓ 1 callers
Method
_publish_single
Publish a single image, reel, or story.
providers/instagram.py:284
← previous
next →
801–900 of 3,156, ranked by callers