Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CICCADA-CORP/SoundTime
/ functions
Functions
1,532 in github.com/CICCADA-CORP/SoundTime
⨍
Functions
1,532
◇
Types & classes
433
↓ 1 callers
Function
getTaskStore
()
frontend/src/lib/stores/tasks.svelte.ts:83
↓ 1 callers
Function
getThemeStore
()
frontend/src/lib/stores/theme.svelte.ts:77
↓ 1 callers
Function
get_ai_config
(db: &DatabaseConnection)
backend/crates/soundtime-server/src/metadata_lookup.rs:778
↓ 1 callers
Function
get_instance_description
Get the instance description from settings.
backend/crates/soundtime-server/src/listing_worker.rs:389
↓ 1 callers
Function
get_instance_name
Get the instance name from settings.
backend/crates/soundtime-server/src/listing_worker.rs:382
↓ 1 callers
Function
get_library_sync_overview
Get the library sync overview for all known peers.
backend/crates/soundtime-p2p/src/library_sync.rs:148
↓ 1 callers
Method
get_or_fetch_track
Retrieve a P2P track by hash, fetching from the origin peer on-demand if not cached. 1. Try the local blob store (fast path). 2. If missing, look up
backend/crates/soundtime-p2p/src/node.rs:764
↓ 1 callers
Function
get_peer_sync_status
Get sync status for a single peer.
backend/crates/soundtime-p2p/src/library_sync.rs:189
↓ 1 callers
Function
get_user_taste_vector
Get a user's taste vector from the database.
backend/crates/soundtime-server/src/embeddings.rs:516
↓ 1 callers
Method
handle_message
Internal: handle a single protocol message.
backend/crates/soundtime-p2p/src/node.rs:2393
↓ 1 callers
Method
handle_search_query
Handle an incoming SearchQuery: run a local FTS query and return results.
backend/crates/soundtime-p2p/src/node.rs:1706
↓ 1 callers
Method
has_function
Check if the plugin exports a function with the given name.
backend/crates/soundtime-plugin/src/sandbox.rs:162
↓ 1 callers
Function
import_file
Import a single audio file from storage into the database.
backend/crates/soundtime-server/src/storage_worker.rs:299
↓ 1 callers
Method
incremental_sync_to_peer
Announce all locally-uploaded tracks to a specific peer using incremental sync when possible (if we have a `last_seen` timestamp for this peer), other
backend/crates/soundtime-p2p/src/node.rs:1840
↓ 1 callers
Function
init
Initialize the theme store: check safe mode, fetch active theme, inject CSS.
frontend/src/lib/stores/theme.svelte.ts:40
↓ 1 callers
Function
initAudio
()
frontend/src/lib/stores/player.svelte.ts:138
↓ 1 callers
Function
injectTheme
Inject a <link> stylesheet for the active theme.
frontend/src/lib/stores/theme.svelte.ts:21
↓ 1 callers
Function
instance_base_url
Build the base URL for the given domain, respecting SOUNDTIME_SCHEME env var.
backend/crates/soundtime-server/src/metadata_lookup.rs:35
↓ 1 callers
Function
is_any_peer_id_blocked
Check if any of the provided identifiers (NodeId, peer name) are blocked.
backend/crates/soundtime-p2p/src/blocked.rs:19
↓ 1 callers
Function
l2_normalize
L2-normalize a vector in place.
backend/crates/soundtime-server/src/embeddings.rs:119
↓ 1 callers
Function
list_blocked_domains
GET /api/admin/blocked-domains
backend/crates/soundtime-server/src/api/admin.rs:129
↓ 1 callers
Function
loadAutoplay
Read autoplay preference from localStorage (defaults to false).
frontend/src/lib/stores/queue.svelte.ts:16
↓ 1 callers
Method
load_enabled_plugins
Load all enabled plugins from the database. Queries plugins with status "enabled", loads their WASM sandboxes, and registers their event subscription
backend/crates/soundtime-plugin/src/registry.rs:182
↓ 1 callers
Method
load_from_db
Load peers from the database (used at startup to restore known peers). All loaded peers are marked offline until pinged.
backend/crates/soundtime-p2p/src/discovery.rs:176
↓ 1 callers
Function
load_mb_config
Load MusicBrainz configuration from instance_settings or fall back to defaults.
backend/crates/soundtime-server/src/metadata_lookup.rs:47
↓ 1 callers
Method
log_error
Log an error message on behalf of the plugin.
backend/crates/soundtime-plugin/src/host_functions.rs:613
↓ 1 callers
Method
log_event_execution
Log an event execution to the `plugin_events_log` table.
backend/crates/soundtime-plugin/src/registry.rs:426
↓ 1 callers
Method
log_info
Log an info message on behalf of the plugin.
backend/crates/soundtime-plugin/src/host_functions.rs:601
↓ 1 callers
Method
log_warn
Log a warning message on behalf of the plugin.
backend/crates/soundtime-plugin/src/host_functions.rs:607
↓ 1 callers
Function
login_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/routes.rs:910
↓ 1 callers
Function
new_metadata_tracker
Create a new metadata task tracker, initialized to `None` (idle). Called once at server startup in `main.rs` and installed as an Axum `Extension` on
backend/crates/soundtime-server/src/metadata_lookup.rs:1145
↓ 1 callers
Function
new_tracker
Create a new task tracker.
backend/crates/soundtime-server/src/storage_worker.rs:91
↓ 1 callers
Function
normalize_genre
Normalize a genre string: split compound genres on common separators, take the first segment, trim whitespace, and title-case it.
backend/crates/soundtime-audio/src/metadata.rs:52
↓ 1 callers
Function
parse_size
Parse a human-readable size string like `"2GB"`, `"512MB"`, `"1TB"`, or `"1073741824"`.
backend/crates/soundtime-p2p/src/blob_cache.rs:238
↓ 1 callers
Function
parse_wikipedia_url
Parse a Wikipedia URL into (language_code, article_title). e.g. "https://en.wikipedia.org/wiki/Daft_Punk" → ("en", "Daft_Punk")
backend/crates/soundtime-server/src/metadata_lookup.rs:495
↓ 1 callers
Method
peer_is_online
(&self, peer_id: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2322
↓ 1 callers
Method
permissions
Returns the permissions.
backend/crates/soundtime-plugin/src/host_functions.rs:701
↓ 1 callers
Function
persist_track_status
Update a remote track's `is_available` and `last_checked_at` in the database. Matches by reconstructing the `remote_uri` pattern `p2p://origin_node/c
backend/crates/soundtime-p2p/src/track_health.rs:870
↓ 1 callers
Method
pg_interval
PostgreSQL interval string for fallback queries.
backend/crates/soundtime-server/src/trending.rs:43
↓ 1 callers
Function
plugin_system_disabled
Return a standard error when the plugin system is disabled.
backend/crates/soundtime-server/src/api/plugins.rs:26
↓ 1 callers
Function
previous
()
frontend/src/lib/stores/queue.svelte.ts:174
↓ 1 callers
Function
process_single_upload
Shared logic for processing a single file upload (used by both single and batch).
backend/crates/soundtime-server/src/api/audio.rs:837
↓ 1 callers
Method
rebuild_search_index
Rebuild the local Bloom filter search index from all tracks in the database.
backend/crates/soundtime-p2p/src/node.rs:1541
↓ 1 callers
Function
record_play
( pool: &deadpool_redis::Pool, track_id: Uuid, completed: bool, skipped: bool, )
backend/crates/soundtime-server/src/trending.rs:66
↓ 1 callers
Function
refreshAccessToken
()
frontend/src/lib/api.ts:31
↓ 1 callers
Function
refresh_all_peers
Ping all known peers and update their status.
backend/crates/soundtime-p2p/src/discovery.rs:251
↓ 1 callers
Function
refresh_instance_availability
Check availability of all known instances and update remote_tracks accordingly. P2P tracks (instance_domain starting with "p2p://") are skipped — thei
backend/crates/soundtime-server/src/metadata_lookup.rs:1285
↓ 1 callers
Function
registerMediaSessionHandlers
Register Media Session action handlers.
frontend/src/lib/stores/player.svelte.ts:96
↓ 1 callers
Method
removeEventListener
()
frontend/src/lib/stores/player.svelte.test.ts:60
↓ 1 callers
Method
request_catalog_from_peer
Send a `RequestCatalog` message to a peer, asking them to send us their full catalog via paginated `CatalogSync` messages.
backend/crates/soundtime-p2p/src/node.rs:1417
↓ 1 callers
Function
resolve_duplicates
Group track copies by content hash and select the best source for each.
backend/crates/soundtime-p2p/src/track_health.rs:408
↓ 1 callers
Function
resolve_wikidata_to_wikipedia
Resolve a Wikidata URL (e.g. https://www.wikidata.org/wiki/Q44190) to a Wikipedia (lang, title) pair via the Wikidata API sitelinks.
backend/crates/soundtime-server/src/metadata_lookup.rs:446
↓ 1 callers
Function
run_integrity_check
( state: &AppState, tracker: Option<&TaskTrackerHandle>, )
backend/crates/soundtime-server/src/storage_worker.rs:133
↓ 1 callers
Function
sanitize_for_path
Sanitize a string for use as a filesystem directory name.
backend/crates/soundtime-p2p/src/node.rs:51
↓ 1 callers
Method
save_to_db
Persist the entire peer registry to the database. Uses upsert (INSERT … ON CONFLICT UPDATE) so it is safe to call repeatedly. Runs inside a single t
backend/crates/soundtime-p2p/src/discovery.rs:128
↓ 1 callers
Function
scrobble_for_user
Scrobble a track to Last.fm for a given user (fire-and-forget). Called from `log_listen` via `tokio::spawn`. Errors are logged, never returned to the
backend/crates/soundtime-server/src/api/lastfm.rs:522
↓ 1 callers
Method
search_peer
Send a search query to a specific peer and wait for results.
backend/crates/soundtime-p2p/src/node.rs:1660
↓ 1 callers
Function
search_recording
Search MusicBrainz for a recording matching title + artist.
backend/crates/soundtime-server/src/metadata_lookup.rs:203
↓ 1 callers
Method
set_online
(&self, peer_id: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2290
↓ 1 callers
Function
set_setting
(state: &AppState, key: &str, value: &str)
backend/crates/soundtime-server/src/api/editorial.rs:186
↓ 1 callers
Function
should_capture
Returns true if a tracing target should be captured.
backend/crates/soundtime-server/src/p2p_logs.rs:163
↓ 1 callers
Method
snapshot
Get a snapshot of all health records for monitoring/reporting.
backend/crates/soundtime-p2p/src/track_health.rs:332
↓ 1 callers
Function
spawn_editorial_scheduler
Called once at startup — spawns a background task that checks weekly
backend/crates/soundtime-server/src/api/editorial.rs:215
↓ 1 callers
Function
spawn_health_monitor
Spawn a background task that periodically sweeps remote tracks. The task runs until the `shutdown_rx` channel receives `true`. Returns the `JoinHandl
backend/crates/soundtime-p2p/src/track_health.rs:712
↓ 1 callers
Function
spawn_library_resync
Trigger a full library re-sync with a specific peer in the background. Runs through five phases: 1. **Ping** — verify peer connectivity and learn its
backend/crates/soundtime-p2p/src/library_sync.rs:264
↓ 1 callers
Method
status_counts
Count tracks by health status.
backend/crates/soundtime-p2p/src/track_health.rs:338
↓ 1 callers
Function
test_state
()
backend/crates/soundtime-server/src/api/admin.rs:1312
↓ 1 callers
Method
try_send_bytes
Internal: single attempt to send pre-serialized message bytes to a peer.
backend/crates/soundtime-p2p/src/node.rs:1043
↓ 1 callers
Method
try_start_fetch
Check if a fetch for this hash is already in progress. If not, marks it as in-flight and returns `true` (caller should fetch). If yes, returns `false`
backend/crates/soundtime-p2p/src/blob_cache.rs:143
↓ 1 callers
Method
ttl_secs
(&self)
backend/crates/soundtime-server/src/trending.rs:34
↓ 1 callers
Method
uninstall_plugin
Uninstall a plugin: remove files and DB record.
backend/crates/soundtime-plugin/src/installer.rs:560
↓ 1 callers
Method
uninstall_theme
Uninstall a theme: remove files and DB record. Also clears `active_theme_id` from instance_settings if this was the active theme.
backend/crates/soundtime-server/src/api/themes.rs:692
↓ 1 callers
Function
updateMediaSession
Update the Media Session metadata (lock screen, notification center).
frontend/src/lib/stores/player.svelte.ts:26
↓ 1 callers
Method
update_plugin
Update an installed plugin by re-cloning and re-validating. The old version is preserved for rollback. If loading the new version fails, the old vers
backend/crates/soundtime-plugin/src/installer.rs:403
↓ 1 callers
Method
update_theme
Update an installed theme by re-cloning and re-validating.
backend/crates/soundtime-server/src/api/themes.rs:518
↓ 1 callers
Function
update_user_taste_vector
Compute and store a user's taste vector based on their listen history. The taste vector is a weighted average of track embeddings where the weight is
backend/crates/soundtime-server/src/embeddings.rs:430
↓ 1 callers
Function
validate_http_host
Validate an HTTP host entry. Must be non-empty, contain no spaces, and either be `"*"`, `"localhost"`, or contain at least one dot (basic domain vali
backend/crates/soundtime-plugin/src/manifest.rs:145
↓ 1 callers
Function
validate_plugin_name
Validate a plugin name against `^[a-z][a-z0-9-]{1,63}$`. The name must start with a lowercase ASCII letter, followed by 1-63 characters that are lowe
backend/crates/soundtime-plugin/src/manifest.rs:85
Function
_check_is_any_blocked
( _db: &'a DatabaseConnection, _ids: &'a [&'a str], )
backend/crates/soundtime-p2p/src/blocked.rs:46
Function
_check_is_peer_blocked
Verify is_peer_blocked and is_any_peer_id_blocked exist with correct signatures
backend/crates/soundtime-p2p/src/blocked.rs:39
Function
_resetForTests
Reset all player state. Intended for test isolation.
frontend/src/lib/stores/player.svelte.ts:316
Function
active
()
frontend/src/lib/stores/radio.svelte.ts:164
Function
activeTheme
()
frontend/src/lib/stores/theme.svelte.ts:79
Function
addNext
(track: Track)
frontend/src/lib/stores/queue.svelte.ts:55
Function
addToQueue
(track: Track)
frontend/src/lib/stores/queue.svelte.ts:50
Function
add_and_ping_peer
Manually add a peer by its EndpointAddr and ping it. Returns the PeerInfo if the peer responds.
backend/crates/soundtime-p2p/src/discovery.rs:212
Function
add_favorite
POST /api/favorites/:track_id (auth required)
backend/crates/soundtime-server/src/api/favorites.rs:83
Function
add_peer
POST /api/admin/p2p/peers — add a peer by NodeId (admin only)
backend/crates/soundtime-server/src/api/p2p.rs:97
Function
add_track_to_playlist
POST /api/playlists/:id/tracks (auth required, owner only)
backend/crates/soundtime-server/src/api/playlists.rs:290
Method
alternative_sources
(&self, hash: &str)
backend/crates/soundtime-p2p/src/node.rs:2851
Function
announce_connection_refused
()
backend/crates/soundtime-server/src/listing_worker.rs:992
Function
announce_first_registration_returns_token
()
backend/crates/soundtime-server/src/listing_worker.rs:863
Function
announce_heartbeat_with_token_succeeds
()
backend/crates/soundtime-server/src/listing_worker.rs:893
Function
announce_multiple_heartbeats_succeed
()
backend/crates/soundtime-server/src/listing_worker.rs:1050
Function
announce_payload_matches_expected_json
()
backend/crates/soundtime-server/src/listing_worker.rs:1003
Function
announce_server_returns_500
()
backend/crates/soundtime-server/src/listing_worker.rs:946
Function
announce_server_returns_error_status
()
backend/crates/soundtime-server/src/listing_worker.rs:922
Function
announce_server_unknown_error_field
()
backend/crates/soundtime-server/src/listing_worker.rs:968
Method
apiRequest
(method: string, path: string, body?: object)
frontend/cypress/support/e2e.ts:11
Function
autoplay
()
frontend/src/lib/stores/queue.svelte.ts:213
← previous
next →
301–400 of 1,532, ranked by callers