Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahtavarasmus/lightfriend
/ functions
Functions
2,907 in github.com/ahtavarasmus/lightfriend
⨍
Functions
2,907
◇
Types & classes
857
↓ 1 callers
Function
handle_web_ws
Browser-based voice call: raw PCM i16 at 16kHz in, 24kHz out. No Twilio, no mulaw. Direct browser <-> server audio.
backend/src/api/voice_pipeline.rs:724
↓ 1 callers
Function
handle_youtube_subscriptions
Get user's subscription feed
backend/src/tool_call_utils/youtube.rs:126
↓ 1 callers
Function
handle_youtube_tool
Handle YouTube tool calls
backend/src/tool_call_utils/youtube.rs:62
↓ 1 callers
Method
has_active_youtube
YouTube integration methods
backend/src/repositories/user_repository.rs:794
↓ 1 callers
Function
has_clock_time
Check for clock time patterns like "3:30", "15:00", "3pm", "3 pm"
backend/src/proactive/signal_extraction.rs:174
↓ 1 callers
Function
has_local_numbers_code
Check if country code has local numbers (FI, NL, GB, AU, US, CA)
backend/src/handlers/pricing_handlers.rs:455
↓ 1 callers
Method
has_passkeys
Check if a user has any passkeys
backend/src/repositories/webauthn_repository.rs:157
↓ 1 callers
Method
has_system_alert_feedback_after
( &self, user_id: i32, created_after: i32, )
backend/src/repositories/user_repository.rs:588
↓ 1 callers
Method
has_twilio_credentials
Check if user has their own Twilio credentials stored (BYOT) in PG.
backend/src/repositories/user_repository.rs:1607
↓ 1 callers
Method
has_valid_subscription_tier
Check if user has a specific subscription tier and has messages left
backend/src/repositories/user_subscriptions.rs:202
↓ 1 callers
Function
highest_plan
(left: PlanType, right: PlanType)
backend/stripe_webhook_logic/src/lib.rs:46
↓ 1 callers
Function
humanize_error
Map backend error strings to user-friendly messages
frontend/src/connections/bridge_connect.rs:33
↓ 1 callers
Function
infer_service
(room_name: &str, sender_localpart: &str)
backend/src/utils/bridge.rs:278
↓ 1 callers
Function
infer_service_from_room_members
When `infer_service()` fails (sender is user, not a bridge ghost), scan room members for ghost bot localparts to determine platform.
backend/src/utils/bridge.rs:311
↓ 1 callers
Function
init_openai_realtime
( state: &Arc<AppState>, user_id: i32, )
backend/src/api/voice_pipeline.rs:1324
↓ 1 callers
Function
initialize_all_idle_tasks
Startup sweep: spawn one IDLE task for every `active` imap_connection row. Staggers task spawns by 100ms to avoid a thundering herd against Gmail's lo
backend/src/utils/imap_idle.rs:79
↓ 1 callers
Function
initialize_smartphone_free_days_metric
Migrate existing digest settings to items (one-time migration). Initialize the smartphone-free days metric if it doesn't exist. This runs on startup t
backend/src/jobs/scheduler.rs:445
↓ 1 callers
Function
inner_idle_loop
Inner loop: keep re-entering IDLE until something forces a reconnect. Returns the session back on clean exit (timeout, manual interrupt) so the outer
backend/src/utils/imap_idle.rs:290
↓ 1 callers
Method
invite_to_room
Invite a user to a room
backend/src/test_utils/matrix_test_server.rs:229
↓ 1 callers
Method
is_admin
(&self, user_id: i32)
backend/src/repositories/user_core.rs:703
↓ 1 callers
Function
is_call_event_message
Check if a message is a call event notice from a mautrix bridge. mautrix-whatsapp and mautrix-signal send these as m.notice messages.
backend/src/api/matrix_client.rs:745
↓ 1 callers
Function
is_command_safe_event_id
(event_id: &str)
backend/src/utils/tuwunel_event_cleanup.rs:155
↓ 1 callers
Method
is_credits_under_threshold
Check if user credits are below their auto-charge threshold. Returns true when `charge_when_under` is enabled and credits are at or below the `charge_
backend/src/repositories/user_repository.rs:1370
↓ 1 callers
Function
is_disconnection_message
Detect if a bridge bot message is a spontaneous push event reporting that the user's session was terminated externally. Scope: this function is ONLY
backend/src/api/matrix_client.rs:730
↓ 1 callers
Function
is_hallucination
(transcript: &str)
backend/src/api/voice_pipeline.rs:249
↓ 1 callers
Function
is_health_check_message
Check if a message is a health check or status message that should be skipped
backend/src/api/matrix_client.rs:735
↓ 1 callers
Method
is_healthy
Check if the Synapse server is healthy
backend/src/test_utils/matrix_test_server.rs:94
↓ 1 callers
Function
is_mcp_tool
Check if a tool name is an MCP tool
backend/src/tool_call_utils/mcp.rs:225
↓ 1 callers
Method
is_message_seen
Check if a message in a room has been seen on the native platform.
backend/src/repositories/ontology_repository.rs:1972
↓ 1 callers
Method
is_muted
(&self)
backend/src/api/matrix_client.rs:356
↓ 1 callers
Method
is_phone_contact
True when the contact is from the user's phone book (has a full_name).
backend/src/repositories/whatsapp_bridge_repository.rs:46
↓ 1 callers
Function
is_phone_contact_from_room_name
Returns whether the room name indicates a phone contact (from phone book). (WA) / (Signal) = phone contact (has FullName/ContactName) (WA~) / (Signal~
backend/src/utils/bridge.rs:267
↓ 1 callers
Method
is_room_muted
(&self, matrix_user_id: &str, room_id: &str)
backend/src/repositories/whatsapp_bridge_repository.rs:386
↓ 1 callers
Function
is_rule_complete
( when_mode: &WhenMode, schedule_mode: &ScheduleMode, once_date: &str, once_time: &str, lo
frontend/src/dashboard/rule_builder.rs:6388
↓ 1 callers
Function
is_shortener
(domain: &str)
backend/src/utils/sms_sanitizer.rs:167
↓ 1 callers
Method
is_tinfoil_circuit_open
(&self)
backend/src/ai_config.rs:216
↓ 1 callers
Function
is_trusted
(domain: &str)
backend/src/utils/sms_sanitizer.rs:160
↓ 1 callers
Function
is_tuwunel_admin_redaction_reason
(reason: Option<&str>)
backend/src/utils/tuwunel_event_cleanup.rs:122
↓ 1 callers
Function
is_valid_email
Validate email format using basic rules. Returns true if email appears to be valid format. Note: This is a basic validation, not a full RFC 5322 check
backend/src/handlers/imap_auth.rs:18
↓ 1 callers
Function
issue_access_token_response
( user_id: i32, )
backend/src/handlers/auth_handlers.rs:607
↓ 1 callers
Function
json_value_to_schema_define
Convert a JSON Schema value to JSONSchemaDefine
backend/src/tool_call_utils/mcp.rs:267
↓ 1 callers
Method
label
(&self)
frontend/src/dashboard/rule_builder.rs:888
↓ 1 callers
Function
latest_github_release
(owner: str, repo: str)
scripts/update_enclave_dependency_pins.py:153
↓ 1 callers
Function
latest_pypi_version
(package: str)
scripts/update_enclave_dependency_pins.py:167
↓ 1 callers
Method
latest_system_alert_for_feedback
( &self, user_id: i32, since_ts: i32, )
backend/src/repositories/user_repository.rs:568
↓ 1 callers
Function
legacy_product_cutoff_ts
()
backend/src/utils/country.rs:53
↓ 1 callers
Method
link_existing_user
Link an existing user to a Stripe customer.
backend/src/services/signup_service.rs:124
↓ 1 callers
Function
list_all_contacts
Fetch all contacts from Resend. Used for disaster recovery to rebuild user list.
backend/src/utils/resend_contacts.rs:82
↓ 1 callers
Method
list_embeddings
All embeddings for a user filtered by label type ('track' or 'wrong'). Returned in created_at desc order so callers can easily take the N most recent.
backend/src/repositories/commitment_repository.rs:326
↓ 1 callers
Method
list_for_user
List active (non-revoked) tokens for the dashboard UI, newest first.
backend/src/repositories/webhook_tokens_repository.rs:70
↓ 1 callers
Method
list_recent_prompts
( &self, user_id: i32, limit: i64, )
backend/src/repositories/commitment_repository.rs:295
↓ 1 callers
Function
log_admin_media_info
(user: &User, payload: &TwilioWebhookPayload)
backend/src/api/twilio_sms/assembly.rs:47
↓ 1 callers
Function
log_disabled_once
()
backend/src/utils/tuwunel_event_cleanup.rs:140
↓ 1 callers
Function
log_dns_lookup
Resolve the homeserver hostname to IP addresses using tokio's resolver. This isolates DNS from TCP/TLS/HTTP. If this fails but HTTP_PROXY is set, that
backend/src/handlers/telegram_auth.rs:139
↓ 1 callers
Function
log_invalid_event_id_once
(event_id: &str)
backend/src/utils/tuwunel_event_cleanup.rs:146
↓ 1 callers
Method
log_message_history
Log message to user's message history.
backend/src/services/twilio_message_service.rs:566
↓ 1 callers
Function
log_network_env
Log the proxy / TLS environment variables that reqwest and matrix-sdk auto-detect. This is the first thing to check when the enclave behaves different
backend/src/handlers/telegram_auth.rs:71
↓ 1 callers
Function
log_resolv_conf
Read /etc/resolv.conf and log the first 500 chars. On the VPS this is usually the cloud provider's resolver; inside the enclave it's whatever was bake
backend/src/handlers/telegram_auth.rs:116
↓ 1 callers
Function
log_tcp_connect
Raw TCP connect probe - no TLS, no HTTP. If this fails, it's either tap0 is dead, the vsock proxy on the host isn't running, or DNS gave us an unreach
backend/src/handlers/telegram_auth.rs:183
↓ 1 callers
Function
log_web_chat_usage
(state: &Arc<AppState>, user_id: i32, processing_time_secs: u64)
backend/src/api/twilio_sms/delivery.rs:75
↓ 1 callers
Function
login_with_password
( client: &MatrixClient, state: &Arc<AppState>, username: &str, password: &str, device_id:
backend/src/utils/matrix_auth.rs:212
↓ 1 callers
Function
logout_all_bridges
Send logout commands to each connected bridge. Best-effort: any individual bridge failing is logged and ignored so a stuck bridge cannot block the res
backend/src/services/data_purge.rs:385
↓ 1 callers
Function
logout_single_bridge
( client: &matrix_sdk::Client, room: &matrix_sdk::Room, bridge_type: &str, )
backend/src/services/data_purge.rs:446
↓ 1 callers
Method
lookup_sender_rule
Look up the active sender rule for a given (user, platform, sender_key). Returns None when no active rule exists. If multiple rules exist (e.g., mute
backend/src/repositories/commitment_repository.rs:58
↓ 1 callers
Function
main
()
scripts/imap_idle_stress.py:465
↓ 1 callers
Function
main
()
scripts/update_enclave_dependency_pins.py:204
↓ 1 callers
Method
make_call
( &self, credentials: &TwilioCredentials, to: &str, from: &str, twiml:
backend/src/api/twilio_client.rs:708
↓ 1 callers
Function
make_notification_call
Initiate an outbound voice call to a user using Twilio + our voice pipeline. The call connects to our WebSocket and speaks the notification message as
backend/src/api/voice_pipeline.rs:506
↓ 1 callers
Function
map_sinch_status
Map Sinch's status string to Twilio's taxonomy so the rest of our code (admin alerts, message_status_log, credit deduction predicates) keeps working w
backend/src/handlers/sinch_handlers.rs:84
↓ 1 callers
Function
map_telnyx_status
Map Telnyx's per-recipient status string to Twilio's taxonomy so the rest of our code (admin alerts, message_status_log queries, credit predicates) ke
backend/src/handlers/telnyx_handlers.rs:102
↓ 1 callers
Method
mark_message_seen
Mark a single message as seen by its ID.
backend/src/repositories/ontology_repository.rs:1960
↓ 1 callers
Method
mark_refresh_token_compromised
(&self, user_id: i32)
backend/src/repositories/user_core.rs:446
↓ 1 callers
Method
mark_tesla_key_paired
(&self, user_id: i32, paired: bool)
backend/src/repositories/user_repository.rs:1124
↓ 1 callers
Function
matches_trigger
Check if an ontology change event matches a rule's trigger config.
backend/src/proactive/rules.rs:247
↓ 1 callers
Method
merge_persons
Merge two Persons: move all channels from merge_id to keep_id, then delete merge_id.
backend/src/repositories/ontology_repository.rs:748
↓ 1 callers
Function
message_to_json
Convert a ChatMessage to its JSON representation for the API.
backend/src/api/tinfoil_client.rs:98
↓ 1 callers
Function
migrate_admin_alerts
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1249
↓ 1 callers
Function
migrate_bridge_disconnection_events
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:694
↓ 1 callers
Function
migrate_bridges
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:642
↓ 1 callers
Function
migrate_country_availability
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1190
↓ 1 callers
Function
migrate_disabled_alert_types
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1302
↓ 1 callers
Function
migrate_imap_connection
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:111
↓ 1 callers
Function
migrate_items
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:594
↓ 1 callers
Function
migrate_mcp_servers
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:354
↓ 1 callers
Function
migrate_message_history
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:170
↓ 1 callers
Function
migrate_message_status_log
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1120
↓ 1 callers
Function
migrate_processed_emails
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:801
↓ 1 callers
Function
migrate_refund_info
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1073
↓ 1 callers
Function
migrate_site_metrics
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1336
↓ 1 callers
Function
migrate_tesla
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:223
↓ 1 callers
Function
migrate_totp_backup_codes
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:445
↓ 1 callers
Function
migrate_totp_secrets
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:404
↓ 1 callers
Function
migrate_usage_logs
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:732
↓ 1 callers
Function
migrate_user_info
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:64
↓ 1 callers
Function
migrate_user_settings
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:933
↓ 1 callers
Function
migrate_users
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:835
↓ 1 callers
Function
migrate_waitlist
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:1039
↓ 1 callers
Function
migrate_webauthn_challenges
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:544
↓ 1 callers
Function
migrate_webauthn_credentials
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:482
↓ 1 callers
Function
migrate_youtube
(sqlite: &mut SqliteConnection, pg: &mut PgConnection)
backend/src/bin/migrate_to_pg.rs:298
← previous
next →
1,001–1,100 of 2,907, ranked by callers