MCPcopy Create free account

hub / github.com/CICCADA-CORP/SoundTime / functions

Functions1,532 in github.com/CICCADA-CORP/SoundTime

↓ 2 callersFunctionget_track_embedding
Get a track's embedding from the database.
backend/crates/soundtime-server/src/embeddings.rs:304
↓ 2 callersMethodget_user_info
Get user information. Requires `read_users` permission. Never exposes password hashes or JWT tokens.
backend/crates/soundtime-plugin/src/host_functions.rs:639
↓ 2 callersMethodhas_blob
Check if a blob exists locally.
backend/crates/soundtime-p2p/src/node.rs:838
↓ 2 callersMethodhealth_manager
Get the track health manager for failure tracking and auto-repair.
backend/crates/soundtime-p2p/src/node.rs:688
↓ 2 callersMethodinstall_from_git
Install a theme from a git repository URL. The full installation flow: 1. Validate git URL 2. Clone repo to temp directory 3. Parse and validate `the
backend/crates/soundtime-server/src/api/themes.rs:364
↓ 2 callersFunctionis_allowed_extension
Check whether a file extension is in the allowed list.
backend/crates/soundtime-server/src/api/themes.rs:164
↓ 2 callersFunctionis_local_domain
Returns `true` if the domain looks like a local/unreachable address.
backend/crates/soundtime-server/src/listing_worker.rs:97
↓ 2 callersMethodload_plugin
Load a plugin by its database ID.
backend/crates/soundtime-plugin/src/registry.rs:267
↓ 2 callersMethodload_plugin_from_model
Load a single plugin from its DB model.
backend/crates/soundtime-plugin/src/registry.rs:211
↓ 2 callersFunctionlogListen
* Log a listen event with behavioral signals to `POST /history`. * * Sends the track's `duration_listened`, whether it `completed` naturally, * and
frontend/src/lib/stores/player.svelte.ts:221
↓ 2 callersFunctionmakeHandler
(data: any[])
frontend/src/lib/components/NetworkGraph.test.ts:5
↓ 2 callersFunctionmake_artist_model
()
backend/crates/soundtime-server/src/api/artists.rs:212
↓ 2 callersFunctionmake_playlist_model
()
backend/crates/soundtime-server/src/api/playlists.rs:364
↓ 2 callersFunctionmake_track_model
()
backend/crates/soundtime-server/src/api/tracks.rs:1261
↓ 2 callersMethodmetadata_base
Returns the path for storing metadata files (covers). Falls back to `base_path` if no separate metadata path is configured.
backend/crates/soundtime-audio/src/storage.rs:91
↓ 2 callersFunctionneeds_aiff_conversion
Check whether the given extension is an AIFF format that needs conversion.
backend/crates/soundtime-audio/src/convert.rs:17
↓ 2 callersFunctionnext
()
frontend/src/lib/stores/queue.svelte.ts:102
↓ 2 callersMethodnode_addr
Get the node address (includes relay URL and direct addresses).
backend/crates/soundtime-p2p/src/node.rs:658
↓ 2 callersFunctionpassword_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/routes.rs:920
↓ 2 callersFunctionpause
()
frontend/src/lib/stores/player.svelte.ts:268
↓ 2 callersFunctionpoll
()
frontend/src/lib/stores/tasks.svelte.ts:18
↓ 2 callersMethodpublish_track
Publish a track's audio data to the local blob store. Returns the content hash (BLAKE3) that identifies the blob.
backend/crates/soundtime-p2p/src/node.rs:694
↓ 2 callersFunctionpublish_track_to_p2p
Publish a newly uploaded track to the P2P blob store and broadcast an announcement to all connected peers. This is best-effort: failures are logged b
backend/crates/soundtime-server/src/api/audio.rs:1086
↓ 2 callersFunctionquality_score
Quality score for ranking track copies across peers. Higher score = better quality / more desirable copy.
backend/crates/soundtime-p2p/src/track_health.rs:358
↓ 2 callersMethodread_response
Read HTTP response with body size limit.
backend/crates/soundtime-plugin/src/host_functions.rs:506
↓ 2 callersMethodrebuild_from_db
Rebuild the local Bloom filter from the database using paginated queries. Instead of loading all tracks into memory at once, this fetches pages of `R
backend/crates/soundtime-p2p/src/search_index.rs:260
↓ 2 callersMethodredis_key
(&self)
backend/crates/soundtime-server/src/trending.rs:24
↓ 2 callersFunctionrefresh_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/routes.rs:914
↓ 2 callersMethodrelay_url
Get the relay URL this node is connected to (if any). By default, iroh connects to n0.computer production relay servers.
backend/crates/soundtime-p2p/src/node.rs:664
↓ 2 callersMethodremove_peer
Remove a peer's index (when peer is removed from registry).
backend/crates/soundtime-p2p/src/search_index.rs:204
↓ 2 callersFunctionresetMocks
()
frontend/src/lib/components/TrackList.test.ts:11
↓ 2 callersFunctionresetMocks
()
frontend/src/lib/components/ExpandedPlayer.test.ts:34
↓ 2 callersFunctionresetMocks
()
frontend/src/lib/components/AudioPlayer.test.ts:33
↓ 2 callersFunctionresolveMediaUrl
Resolve a relative media URL to an absolute one.
frontend/src/lib/stores/player.svelte.ts:19
↓ 2 callersFunctionresume
()
frontend/src/lib/stores/player.svelte.ts:276
↓ 2 callersFunctionrun_sync
( state: &AppState, tracker: Option<&TaskTrackerHandle>, )
backend/crates/soundtime-server/src/storage_worker.rs:207
↓ 2 callersFunctionsave_listing_token
Save the listing token to instance settings.
backend/crates/soundtime-server/src/listing_worker.rs:372
↓ 2 callersMethodsearch_index
Get the search index.
backend/crates/soundtime-p2p/src/node.rs:648
↓ 2 callersFunctionseed_artist
Seed algorithm: artist-based radio. Builds a mix from two phases, each fetching up to `count * 2` candidates then truncating to its quota before merg
backend/crates/soundtime-server/src/api/radio.rs:267
↓ 2 callersFunctionseed_genre
Seed algorithm: genre-based radio. Single-phase: fetches up to `count * 3` (capped at 200) tracks matching the given genre, shuffles them, and return
backend/crates/soundtime-server/src/api/radio.rs:357
↓ 2 callersFunctionseed_personal_mix
Seed algorithm: personal mix. Draws from listen history and favorites across three phases, each fetching up to `count * 2` candidates then truncating
backend/crates/soundtime-server/src/api/radio.rs:410
↓ 2 callersFunctionseed_similar
Seed algorithm: similarity-based radio using vector embeddings. Uses pgvector cosine distance to find tracks with similar audio characteristics to th
backend/crates/soundtime-server/src/api/radio.rs:609
↓ 2 callersFunctionsend_delist_request
Send a DELETE request to the listing server to immediately remove this instance. Requires a valid listing token. If no token is available, the instan
backend/crates/soundtime-server/src/listing_worker.rs:624
↓ 2 callersFunctionsend_heartbeat
Send a heartbeat to the listing server. Handles the 409 "domain already registered" case by attempting to verify ownership via the listing server's h
backend/crates/soundtime-server/src/listing_worker.rs:461
↓ 2 callersMethodset_config
Set a config value for this plugin. Requires `config_access` permission.
backend/crates/soundtime-plugin/src/host_functions.rs:557
↓ 2 callersMethodset_track_lyrics
Set lyrics on a track. Requires `write_tracks` permission. Since the tracks table does not have a dedicated lyrics column, lyrics are stored in plugi
backend/crates/soundtime-plugin/src/host_functions.rs:339
↓ 2 callersMethodshutdown
Gracefully shutdown the P2P node.
backend/crates/soundtime-p2p/src/node.rs:1532
↓ 2 callersFunctionsimple_hash
Simple deterministic hash for strings (FNV-1a inspired).
backend/crates/soundtime-server/src/embeddings.rs:109
↓ 2 callersFunctionstopPolling
()
frontend/src/lib/stores/tasks.svelte.ts:52
↓ 2 callersMethodsync_cover_for_album
Fetch a cover art blob from a peer, write it to the local audio storage, and update the album's `cover_url` in the database.
backend/crates/soundtime-p2p/src/node.rs:2707
↓ 2 callersFunctiontry_resolve_media
SECURITY: Resolve a media file path, ensuring it stays within the base directory. Returns `None` if the file doesn't exist or would escape the base.
backend/crates/soundtime-server/src/api/audio.rs:727
↓ 2 callersFunctionupdateFavicon
Swap the page favicon to the track's cover art, or restore the default.
frontend/src/lib/stores/player.svelte.ts:51
↓ 2 callersFunctionupsert_track_embedding
Store a track embedding in the database. Uses `INSERT ... ON CONFLICT` to upsert — if the track already has an embedding, it is updated.
backend/crates/soundtime-server/src/embeddings.rs:236
↓ 2 callersFunctionvalidate_audio_magic_bytes
SECURITY: Validate audio file magic bytes to prevent disguised file uploads
backend/crates/soundtime-server/src/api/audio.rs:30
↓ 2 callersFunctionvalidate_semver
Validate a version string as semver.
backend/crates/soundtime-plugin/src/manifest.rs:116
↓ 2 callersFunctionvalidate_theme_files
Walk a directory and ensure all files have allowed extensions. Rejects any .js, .html, or other disallowed files.
backend/crates/soundtime-server/src/api/themes.rs:173
↓ 2 callersMethodvalidate_wasm_imports
Validate WASM imports against the allowed namespace list.
backend/crates/soundtime-plugin/src/installer.rs:369
↓ 2 callersMethodwrite_config_internal
Internal config write — bypasses permission check.
backend/crates/soundtime-plugin/src/host_functions.rs:569
↓ 1 callersMethodaccept_loop
Internal: accept incoming connections in a loop.
backend/crates/soundtime-p2p/src/node.rs:2044
↓ 1 callersMethodbackfill_content_hashes
Backfill `content_hash` for local tracks that were imported before P2P was enabled. Reads each file, publishes it to the blob store (BLAKE3), and upda
backend/crates/soundtime-p2p/src/node.rs:1133
↓ 1 callersFunctionbackfill_embeddings
Generate and store embeddings for all tracks that don't have one yet. This is meant to be called as a background task on startup or after new tracks
backend/crates/soundtime-server/src/embeddings.rs:341
↓ 1 callersMethodblob_cache
Get a reference to the blob cache.
backend/crates/soundtime-p2p/src/node.rs:683
↓ 1 callersMethodbroadcast_announce_track
Broadcast a track announcement to all online peers concurrently. Called after a track is published to the local blob store. Uses a semaphore to limit
backend/crates/soundtime-p2p/src/node.rs:1084
↓ 1 callersMethodbroadcast_bloom_filter
Broadcast our Bloom filter to all online peers for search routing.
backend/crates/soundtime-p2p/src/node.rs:1549
↓ 1 callersFunctionbuild_client
()
backend/crates/soundtime-server/src/metadata_lookup.rs:191
↓ 1 callersFunctionbuild_tsquery
Helper: build a tsquery string from user input. Splits on whitespace, wraps each word with `:*` for prefix matching, and joins with `&` for AND semant
backend/crates/soundtime-server/src/api/search.rs:38
↓ 1 callersFunctioncheckSafeMode
Check if safe mode is requested via URL param or localStorage.
frontend/src/lib/stores/theme.svelte.ts:12
↓ 1 callersFunctioncheck_if_listed
Check if our domain appears in the listing server's public node list.
backend/crates/soundtime-server/src/listing_worker.rs:605
↓ 1 callersMethodclear
Clear all records.
backend/crates/soundtime-p2p/src/track_health.rs:299
↓ 1 callersFunctioncollect_files_recursive
( dir: &Path, base: &Path, result: &mut Vec<String>, )
backend/crates/soundtime-audio/src/storage.rs:210
↓ 1 callersMethodconfig
Returns a reference to the sandbox configuration.
backend/crates/soundtime-plugin/src/sandbox.rs:172
↓ 1 callersFunctionconnect
Connect to the database and return a connection pool
backend/crates/soundtime-db/src/lib.rs:68
↓ 1 callersMethodconnect_to_seed_peers
Connect to a list of seed peers by EndpointId. Pings each one and registers it in the registry.
backend/crates/soundtime-p2p/src/node.rs:949
↓ 1 callersFunctioncopy_dir_recursive
Recursively copy a directory and its contents.
backend/crates/soundtime-plugin/src/installer.rs:84
↓ 1 callersMethoddegraded_tracks
Get all tracks that are in a degraded state (need recovery).
backend/crates/soundtime-p2p/src/track_health.rs:237
↓ 1 callersMethoddereferenced_tracks
Get all dereferenced tracks.
backend/crates/soundtime-p2p/src/track_health.rs:247
↓ 1 callersFunctiondetectLocale
Detect the best locale from the browser
frontend/src/lib/i18n/index.svelte.ts:25
↓ 1 callersMethoddht_discovery_enabled
Whether DHT discovery is enabled for this node.
backend/crates/soundtime-p2p/src/node.rs:678
↓ 1 callersMethoddirect_addresses_count
Get the number of direct addresses the endpoint is listening on.
backend/crates/soundtime-p2p/src/node.rs:671
↓ 1 callersMethoddisable_plugin
Disable a plugin: unload it and set status to "disabled" in DB.
backend/crates/soundtime-plugin/src/registry.rs:482
↓ 1 callersMethoddisconnect
()
frontend/src/tests/setup.ts:42
↓ 1 callersFunctiondownload_cover
Download cover image bytes from URL.
backend/crates/soundtime-server/src/metadata_lookup.rs:274
↓ 1 callersMethodenable_plugin
Enable a plugin: set status to "enabled" in DB and load it.
backend/crates/soundtime-plugin/src/registry.rs:475
↓ 1 callersFunctionencode_audio_quality
Encode audio quality into 4 dimensions.
backend/crates/soundtime-server/src/embeddings.rs:173
↓ 1 callersFunctionencode_popularity
Encode popularity (play count) into 4 dimensions using log scaling.
backend/crates/soundtime-server/src/embeddings.rs:205
↓ 1 callersFunctionenrich_all_tracks_background
Run metadata enrichment as a background task, updating the tracker with progress. ## Flow 1. Queries all tracks without a `musicbrainz_id` (not yet
backend/crates/soundtime-server/src/metadata_lookup.rs:1167
↓ 1 callersFunctionenrich_tracks
Batch-fetch artist and album data for a set of tracks and build enriched `TrackResponse` objects. Reuses the same pattern as `list_tracks` and `list_r
backend/crates/soundtime-server/src/api/radio.rs:83
↓ 1 callersMethodevict_oldest
Evict the oldest entry to make room.
backend/crates/soundtime-p2p/src/connection_pool.rs:132
↓ 1 callersMethodexchange_peers
Send our peer list to a remote peer and receive theirs.
backend/crates/soundtime-p2p/src/node.rs:1479
↓ 1 callersFunctionfetchMe
()
frontend/src/lib/stores/auth.svelte.ts:64
↓ 1 callersFunctionfetch_artist_bio_image
Fetch artist bio and image from MusicBrainz relations → Wikipedia. Falls back to searching Wikipedia by artist name if no direct link. Returns (bio, i
backend/crates/soundtime-server/src/metadata_lookup.rs:331
↓ 1 callersFunctionfetch_cover_art_url
Fetch cover art from Cover Art Archive for a release MBID.
backend/crates/soundtime-server/src/metadata_lookup.rs:239
↓ 1 callersFunctionfetch_lyricscom_lyrics
( client: &reqwest::Client, api_key: &str, title: &str, artist: &str, )
backend/crates/soundtime-server/src/api/lyrics.rs:213
↓ 1 callersFunctionfetch_musixmatch_lyrics
( client: &reqwest::Client, api_key: &str, title: &str, artist: &str, )
backend/crates/soundtime-server/src/api/lyrics.rs:164
↓ 1 callersFunctionfetch_trending_redis
( pool: &deadpool_redis::Pool, window: TrendingWindow, limit: usize, )
backend/crates/soundtime-server/src/trending.rs:132
↓ 1 callersMethodfile_exists
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:154
↓ 1 callersFunctionfind_matching_local_track
Find a local track matching the given criteria.
backend/crates/soundtime-server/src/metadata_lookup.rs:1497
↓ 1 callersFunctiongenerate_and_store_embedding
Generate and store the embedding for a single track. Called when a new track is added to the library.
backend/crates/soundtime-server/src/embeddings.rs:405
↓ 1 callersFunctiongetAuthStore
()
frontend/src/lib/stores/auth.svelte.ts:80
↓ 1 callersFunctiongetRefreshToken
()
frontend/src/lib/api.ts:16
← previousnext →201–300 of 1,532, ranked by callers