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
↓ 2 callers
Function
get_track_embedding
Get a track's embedding from the database.
backend/crates/soundtime-server/src/embeddings.rs:304
↓ 2 callers
Method
get_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 callers
Method
has_blob
Check if a blob exists locally.
backend/crates/soundtime-p2p/src/node.rs:838
↓ 2 callers
Method
health_manager
Get the track health manager for failure tracking and auto-repair.
backend/crates/soundtime-p2p/src/node.rs:688
↓ 2 callers
Method
install_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 callers
Function
is_allowed_extension
Check whether a file extension is in the allowed list.
backend/crates/soundtime-server/src/api/themes.rs:164
↓ 2 callers
Function
is_local_domain
Returns `true` if the domain looks like a local/unreachable address.
backend/crates/soundtime-server/src/listing_worker.rs:97
↓ 2 callers
Method
load_plugin
Load a plugin by its database ID.
backend/crates/soundtime-plugin/src/registry.rs:267
↓ 2 callers
Method
load_plugin_from_model
Load a single plugin from its DB model.
backend/crates/soundtime-plugin/src/registry.rs:211
↓ 2 callers
Function
logListen
* 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 callers
Function
makeHandler
(data: any[])
frontend/src/lib/components/NetworkGraph.test.ts:5
↓ 2 callers
Function
make_artist_model
()
backend/crates/soundtime-server/src/api/artists.rs:212
↓ 2 callers
Function
make_playlist_model
()
backend/crates/soundtime-server/src/api/playlists.rs:364
↓ 2 callers
Function
make_track_model
()
backend/crates/soundtime-server/src/api/tracks.rs:1261
↓ 2 callers
Method
metadata_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 callers
Function
needs_aiff_conversion
Check whether the given extension is an AIFF format that needs conversion.
backend/crates/soundtime-audio/src/convert.rs:17
↓ 2 callers
Function
next
()
frontend/src/lib/stores/queue.svelte.ts:102
↓ 2 callers
Method
node_addr
Get the node address (includes relay URL and direct addresses).
backend/crates/soundtime-p2p/src/node.rs:658
↓ 2 callers
Function
password_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/routes.rs:920
↓ 2 callers
Function
pause
()
frontend/src/lib/stores/player.svelte.ts:268
↓ 2 callers
Function
poll
()
frontend/src/lib/stores/tasks.svelte.ts:18
↓ 2 callers
Method
publish_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 callers
Function
publish_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 callers
Function
quality_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 callers
Method
read_response
Read HTTP response with body size limit.
backend/crates/soundtime-plugin/src/host_functions.rs:506
↓ 2 callers
Method
rebuild_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 callers
Method
redis_key
(&self)
backend/crates/soundtime-server/src/trending.rs:24
↓ 2 callers
Function
refresh_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/routes.rs:914
↓ 2 callers
Method
relay_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 callers
Method
remove_peer
Remove a peer's index (when peer is removed from registry).
backend/crates/soundtime-p2p/src/search_index.rs:204
↓ 2 callers
Function
resetMocks
()
frontend/src/lib/components/TrackList.test.ts:11
↓ 2 callers
Function
resetMocks
()
frontend/src/lib/components/ExpandedPlayer.test.ts:34
↓ 2 callers
Function
resetMocks
()
frontend/src/lib/components/AudioPlayer.test.ts:33
↓ 2 callers
Function
resolveMediaUrl
Resolve a relative media URL to an absolute one.
frontend/src/lib/stores/player.svelte.ts:19
↓ 2 callers
Function
resume
()
frontend/src/lib/stores/player.svelte.ts:276
↓ 2 callers
Function
run_sync
( state: &AppState, tracker: Option<&TaskTrackerHandle>, )
backend/crates/soundtime-server/src/storage_worker.rs:207
↓ 2 callers
Function
save_listing_token
Save the listing token to instance settings.
backend/crates/soundtime-server/src/listing_worker.rs:372
↓ 2 callers
Method
search_index
Get the search index.
backend/crates/soundtime-p2p/src/node.rs:648
↓ 2 callers
Function
seed_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 callers
Function
seed_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 callers
Function
seed_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 callers
Function
seed_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 callers
Function
send_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 callers
Function
send_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 callers
Method
set_config
Set a config value for this plugin. Requires `config_access` permission.
backend/crates/soundtime-plugin/src/host_functions.rs:557
↓ 2 callers
Method
set_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 callers
Method
shutdown
Gracefully shutdown the P2P node.
backend/crates/soundtime-p2p/src/node.rs:1532
↓ 2 callers
Function
simple_hash
Simple deterministic hash for strings (FNV-1a inspired).
backend/crates/soundtime-server/src/embeddings.rs:109
↓ 2 callers
Function
stopPolling
()
frontend/src/lib/stores/tasks.svelte.ts:52
↓ 2 callers
Method
sync_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 callers
Function
try_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 callers
Function
updateFavicon
Swap the page favicon to the track's cover art, or restore the default.
frontend/src/lib/stores/player.svelte.ts:51
↓ 2 callers
Function
upsert_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 callers
Function
validate_audio_magic_bytes
SECURITY: Validate audio file magic bytes to prevent disguised file uploads
backend/crates/soundtime-server/src/api/audio.rs:30
↓ 2 callers
Function
validate_semver
Validate a version string as semver.
backend/crates/soundtime-plugin/src/manifest.rs:116
↓ 2 callers
Function
validate_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 callers
Method
validate_wasm_imports
Validate WASM imports against the allowed namespace list.
backend/crates/soundtime-plugin/src/installer.rs:369
↓ 2 callers
Method
write_config_internal
Internal config write — bypasses permission check.
backend/crates/soundtime-plugin/src/host_functions.rs:569
↓ 1 callers
Method
accept_loop
Internal: accept incoming connections in a loop.
backend/crates/soundtime-p2p/src/node.rs:2044
↓ 1 callers
Method
backfill_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 callers
Function
backfill_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 callers
Method
blob_cache
Get a reference to the blob cache.
backend/crates/soundtime-p2p/src/node.rs:683
↓ 1 callers
Method
broadcast_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 callers
Method
broadcast_bloom_filter
Broadcast our Bloom filter to all online peers for search routing.
backend/crates/soundtime-p2p/src/node.rs:1549
↓ 1 callers
Function
build_client
()
backend/crates/soundtime-server/src/metadata_lookup.rs:191
↓ 1 callers
Function
build_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 callers
Function
checkSafeMode
Check if safe mode is requested via URL param or localStorage.
frontend/src/lib/stores/theme.svelte.ts:12
↓ 1 callers
Function
check_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 callers
Method
clear
Clear all records.
backend/crates/soundtime-p2p/src/track_health.rs:299
↓ 1 callers
Function
collect_files_recursive
( dir: &Path, base: &Path, result: &mut Vec<String>, )
backend/crates/soundtime-audio/src/storage.rs:210
↓ 1 callers
Method
config
Returns a reference to the sandbox configuration.
backend/crates/soundtime-plugin/src/sandbox.rs:172
↓ 1 callers
Function
connect
Connect to the database and return a connection pool
backend/crates/soundtime-db/src/lib.rs:68
↓ 1 callers
Method
connect_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 callers
Function
copy_dir_recursive
Recursively copy a directory and its contents.
backend/crates/soundtime-plugin/src/installer.rs:84
↓ 1 callers
Method
degraded_tracks
Get all tracks that are in a degraded state (need recovery).
backend/crates/soundtime-p2p/src/track_health.rs:237
↓ 1 callers
Method
dereferenced_tracks
Get all dereferenced tracks.
backend/crates/soundtime-p2p/src/track_health.rs:247
↓ 1 callers
Function
detectLocale
Detect the best locale from the browser
frontend/src/lib/i18n/index.svelte.ts:25
↓ 1 callers
Method
dht_discovery_enabled
Whether DHT discovery is enabled for this node.
backend/crates/soundtime-p2p/src/node.rs:678
↓ 1 callers
Method
direct_addresses_count
Get the number of direct addresses the endpoint is listening on.
backend/crates/soundtime-p2p/src/node.rs:671
↓ 1 callers
Method
disable_plugin
Disable a plugin: unload it and set status to "disabled" in DB.
backend/crates/soundtime-plugin/src/registry.rs:482
↓ 1 callers
Method
disconnect
()
frontend/src/tests/setup.ts:42
↓ 1 callers
Function
download_cover
Download cover image bytes from URL.
backend/crates/soundtime-server/src/metadata_lookup.rs:274
↓ 1 callers
Method
enable_plugin
Enable a plugin: set status to "enabled" in DB and load it.
backend/crates/soundtime-plugin/src/registry.rs:475
↓ 1 callers
Function
encode_audio_quality
Encode audio quality into 4 dimensions.
backend/crates/soundtime-server/src/embeddings.rs:173
↓ 1 callers
Function
encode_popularity
Encode popularity (play count) into 4 dimensions using log scaling.
backend/crates/soundtime-server/src/embeddings.rs:205
↓ 1 callers
Function
enrich_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 callers
Function
enrich_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 callers
Method
evict_oldest
Evict the oldest entry to make room.
backend/crates/soundtime-p2p/src/connection_pool.rs:132
↓ 1 callers
Method
exchange_peers
Send our peer list to a remote peer and receive theirs.
backend/crates/soundtime-p2p/src/node.rs:1479
↓ 1 callers
Function
fetchMe
()
frontend/src/lib/stores/auth.svelte.ts:64
↓ 1 callers
Function
fetch_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 callers
Function
fetch_cover_art_url
Fetch cover art from Cover Art Archive for a release MBID.
backend/crates/soundtime-server/src/metadata_lookup.rs:239
↓ 1 callers
Function
fetch_lyricscom_lyrics
( client: &reqwest::Client, api_key: &str, title: &str, artist: &str, )
backend/crates/soundtime-server/src/api/lyrics.rs:213
↓ 1 callers
Function
fetch_musixmatch_lyrics
( client: &reqwest::Client, api_key: &str, title: &str, artist: &str, )
backend/crates/soundtime-server/src/api/lyrics.rs:164
↓ 1 callers
Function
fetch_trending_redis
( pool: &deadpool_redis::Pool, window: TrendingWindow, limit: usize, )
backend/crates/soundtime-server/src/trending.rs:132
↓ 1 callers
Method
file_exists
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:154
↓ 1 callers
Function
find_matching_local_track
Find a local track matching the given criteria.
backend/crates/soundtime-server/src/metadata_lookup.rs:1497
↓ 1 callers
Function
generate_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 callers
Function
getAuthStore
()
frontend/src/lib/stores/auth.svelte.ts:80
↓ 1 callers
Function
getRefreshToken
()
frontend/src/lib/api.ts:16
← previous
next →
201–300 of 1,532, ranked by callers