MCPcopy Create free account

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

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

↓ 6 callersFunctionupsert_setting
( db: &sea_orm::DatabaseConnection, key: &str, value: &str, )
backend/crates/soundtime-server/src/api/setup.rs:57
↓ 6 callersMethodvalidate_wasm
Validate a WASM binary file. Checks: 1. File size within limits 2. Magic bytes (0x00 0x61 0x73 0x6D = "\0asm") 3. Import analysis: only allowed names
backend/crates/soundtime-plugin/src/installer.rs:336
↓ 5 callersMethodannounce_all_tracks_to_peer
Announce all locally-uploaded tracks to a specific peer using paginated queries. Called when a new peer connects to sync existing catalogs. Sends one
backend/crates/soundtime-p2p/src/node.rs:1227
↓ 5 callersMethodclear
Clear all entries.
backend/crates/soundtime-server/src/p2p_logs.rs:86
↓ 5 callersFunctionclearTokens
()
frontend/src/lib/api.ts:26
↓ 5 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 5 callersFunctionextract_metadata_from_file
Extract metadata from an audio file using lofty
backend/crates/soundtime-audio/src/metadata.rs:81
↓ 5 callersFunctionget_listing_url
Read the listing URL from instance settings, falling back to env var then default.
backend/crates/soundtime-server/src/listing_worker.rs:329
↓ 5 callersFunctionget_setting
Read a single instance_setting by key.
backend/crates/soundtime-server/src/listing_worker.rs:396
↓ 5 callersMethodinvalidate
Remove a cached connection (e.g., after a stream error). Call this when `open_bi()` or a write fails so the next attempt will establish a fresh conne
backend/crates/soundtime-p2p/src/connection_pool.rs:102
↓ 5 callersMethodpause
()
frontend/src/lib/stores/player.svelte.test.ts:67
↓ 5 callersMethodread_file
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:192
↓ 5 callersMethodrecord_access
Record an access to a blob, adding it to the cache if not already tracked. This should be called every time a blob is read from or written to the sto
backend/crates/soundtime-p2p/src/blob_cache.rs:78
↓ 5 callersFunctionupsert_setting
Upsert an instance_setting key/value pair.
backend/crates/soundtime-server/src/listing_worker.rs:408
↓ 5 callersFunctionvec_to_pgvector
Format a vector as pgvector-compatible string: `[0.1,0.2,...]`
backend/crates/soundtime-server/src/embeddings.rs:227
↓ 5 callersFunctionverify_password
Verify a password against an Argon2id hash
backend/crates/soundtime-server/src/auth/password.rs:15
↓ 4 callersMethodacquire_recovery_permit
Acquire a permit from the recovery semaphore. Used to limit concurrent recovery operations for backpressure. # Panics Panics if the semaphore is clos
backend/crates/soundtime-p2p/src/track_health.rs:311
↓ 4 callersFunctionadmin_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/middleware.rs:228
↓ 4 callersFunctionbuild_api_sig
Build the `api_sig` required by the Last.fm API protocol. # Security MD5 is used here because the Last.fm API *requires* it for request signing. This
backend/crates/soundtime-server/src/api/lastfm.rs:61
↓ 4 callersFunctionbuild_version
Return the build version string. Uses `CARGO_PKG_VERSION` (from Cargo.toml) as the base. If `SOUNDTIME_BUILD_NUMBER` is set at compile time (via CI),
backend/crates/soundtime-p2p/src/lib.rs:49
↓ 4 callersFunctioncreate_test_wav
─── Helper: create a minimal WAV file ───────────────────────────
backend/crates/soundtime-audio/src/waveform.rs:228
↓ 4 callersFunctiondecrypt_session_key
Decrypt a stored Last.fm session key.
backend/crates/soundtime-server/src/api/lastfm.rs:105
↓ 4 callersMethodemit_event
Emit a custom event. Returns true if the event name is valid. The actual dispatch is handled by the registry, not here.
backend/crates/soundtime-plugin/src/host_functions.rs:669
↓ 4 callersFunctionensure_local_file
( storage: &dyn StorageBackend, relative_path: &str, )
backend/crates/soundtime-audio/src/storage.rs:507
↓ 4 callersFunctiongetAccessToken
()
frontend/src/lib/api.ts:11
↓ 4 callersFunctiongetPlayerStore
()
frontend/src/lib/stores/player.svelte.ts:329
↓ 4 callersFunctiongetQueueStore
()
frontend/src/lib/stores/queue.svelte.ts:201
↓ 4 callersMethodget_local_track
Retrieve a track's data from the local blob store by hash.
backend/crates/soundtime-p2p/src/node.rs:747
↓ 4 callersMethodhash_file
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:46
↓ 4 callersFunctionis_peer_blocked
Check if a peer is blocked, either by its iroh NodeId string or readable name. We reuse the `blocked_domains` table — the `domain` column stores eithe
backend/crates/soundtime-p2p/src/blocked.rs:9
↓ 4 callersFunctionparse_pgvector
Parse a pgvector text representation `[0.1,0.2,...]` into a Vec<f32>.
backend/crates/soundtime-server/src/embeddings.rs:329
↓ 4 callersMethodpeer_count
Count of known peers.
backend/crates/soundtime-p2p/src/discovery.rs:119
↓ 4 callersMethodrebuild_from_tracks
Rebuild the local Bloom filter from a full list of tracks. Called at startup to populate the index from the database.
backend/crates/soundtime-p2p/src/search_index.rs:217
↓ 4 callersMethodrecord_success
Record a successful recovery/access for a track, resetting its failure count.
backend/crates/soundtime-p2p/src/track_health.rs:205
↓ 4 callersMethodremove_peer
Remove a peer from the registry.
backend/crates/soundtime-p2p/src/discovery.rs:95
↓ 4 callersFunctionsetTokens
(access: string, refresh: string)
frontend/src/lib/api.ts:21
↓ 4 callersFunctionset_user_setting
Helper: upsert a user setting.
backend/crates/soundtime-server/src/api/lastfm.rs:155
↓ 4 callersFunctionstreamUrl
(trackId: string)
frontend/src/lib/api.ts:184
↓ 4 callersMethodtry_acquire_recovery_permit
Try to acquire a recovery permit without blocking. Returns `None` if all permits are in use (system is at capacity).
backend/crates/soundtime-p2p/src/track_health.rs:320
↓ 3 callersMethoddelete_file
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:158
↓ 3 callersMethoddiscover_via_peer
Discover peers by exchanging peer lists with a known peer (Peer Exchange / PEX). Sends our known peers, receives theirs, and connects to any new ones.
backend/crates/soundtime-p2p/src/node.rs:1425
↓ 3 callersFunctionemail_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/routes.rs:927
↓ 3 callersFunctionencode_decade
Encode year into 4-dimensional era representation.
backend/crates/soundtime-server/src/embeddings.rs:129
↓ 3 callersFunctionencode_duration
Encode duration into 4-dimensional profile.
backend/crates/soundtime-server/src/embeddings.rs:148
↓ 3 callersFunctionencrypt_session_key
Encrypt a Last.fm session key for storage using AES-256-GCM. The encryption key is derived from `jwt_secret` via HKDF-SHA256. Returns base64-encoded
backend/crates/soundtime-server/src/api/lastfm.rs:75
↓ 3 callersFunctionenrich_track
Enrich a single track with MusicBrainz metadata. Returns a `MetadataResult` describing what was found/updated.
backend/crates/soundtime-server/src/metadata_lookup.rs:509
↓ 3 callersMethodfetch_track_from_peer
Connect to a remote peer and fetch a track by its content hash.
backend/crates/soundtime-p2p/src/node.rs:843
↓ 3 callersFunctionget_listing_token
Read the listing token from instance settings.
backend/crates/soundtime-server/src/listing_worker.rs:360
↓ 3 callersMethodis_dereferenced
Check if a track has been dereferenced (exhausted all retries).
backend/crates/soundtime-p2p/src/track_health.rs:263
↓ 3 callersFunctionis_listing_enabled
Check if the `listing_public` setting is enabled. Defaults to `false` — listing is opt-in.
backend/crates/soundtime-server/src/listing_worker.rs:348
↓ 3 callersFunctionis_setup_complete
(db: &sea_orm::DatabaseConnection)
backend/crates/soundtime-server/src/api/setup.rs:47
↓ 3 callersFunctionis_supported_format
Check if a file extension is supported
backend/crates/soundtime-audio/src/metadata.rs:46
↓ 3 callersMethodlist_files
(&self, prefix: &str)
backend/crates/soundtime-audio/src/storage.rs:199
↓ 3 callersMethodload
Load a WASM plugin from disk into a sandboxed environment. Reads the WASM binary, configures memory limits (in 64 KB pages), and enables fuel-based e
backend/crates/soundtime-plugin/src/sandbox.rs:90
↓ 3 callersFunctionload_active_theme
Look up the currently active theme from instance_settings + themes table.
backend/crates/soundtime-server/src/api/themes.rs:1043
↓ 3 callersFunctionmake_user_model
()
backend/crates/soundtime-server/src/api/users.rs:73
↓ 3 callersMethodmark_dirty
Mark the search index as dirty, requiring a full rebuild. Bloom filters don't support removal, so when a track is deleted this flag is set. The next
backend/crates/soundtime-p2p/src/search_index.rs:376
↓ 3 callersFunctionnew_sync_tracker
Create a new sync task tracker.
backend/crates/soundtime-p2p/src/library_sync.rs:126
↓ 3 callersFunctionnormalize_instance_domain
Normalize a node ID for comparison with the `instance_domain` column. `instance_domain` stores values like `"p2p://node_id_here"`. This helper ensure
backend/crates/soundtime-p2p/src/library_sync.rs:137
↓ 3 callersMethodprocess_track_announcement
Internal: process a single track announcement — de-duplicate, auto-fetch blob, create artist/album/track/remote_track records in the local database. U
backend/crates/soundtime-p2p/src/node.rs:2145
↓ 3 callersMethodpublish_cover
Publish cover art data to the local blob store. Returns the content hash (BLAKE3) that identifies the blob.
backend/crates/soundtime-p2p/src/node.rs:721
↓ 3 callersFunctionremoveTheme
Remove the injected theme stylesheet.
frontend/src/lib/stores/theme.svelte.ts:32
↓ 3 callersMethodremove_record
Remove a record (e.g., when a track is deleted from the catalog).
backend/crates/soundtime-p2p/src/track_health.rs:293
↓ 3 callersMethodset_alternatives
(&self, alts: Vec<PeerTrackInfo>)
backend/crates/soundtime-p2p/src/track_health.rs:2298
↓ 3 callersMethodset_plugin_status
Update a plugin's status in the database.
backend/crates/soundtime-plugin/src/registry.rs:453
↓ 3 callersMethodset_track_metadata
Set a metadata field on a track. Requires `write_tracks` permission.
backend/crates/soundtime-plugin/src/host_functions.rs:292
↓ 3 callersFunctiontest_state
()
backend/crates/soundtime-server/src/api/reports.rs:784
↓ 3 callersMethodunload_plugin
Unload a plugin, removing it from memory and subscriptions.
backend/crates/soundtime-plugin/src/registry.rs:277
↓ 3 callersFunctionvalidate_path_safety
Validate that a path is safe (no `..` components, not absolute).
backend/crates/soundtime-plugin/src/manifest.rs:124
↓ 2 callersMethodadd_local_blob
(&self, hash: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2286
↓ 2 callersMethodalternative_sources
(&self, _hash: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2326
↓ 2 callersFunctionattempt_recovery
Attempt to recover a single track from a specific peer. Returns the recovered data bytes on success.
backend/crates/soundtime-p2p/src/track_health.rs:489
↓ 2 callersFunctionbuild_client_with_ua
(user_agent: &str)
backend/crates/soundtime-server/src/metadata_lookup.rs:195
↓ 2 callersMethodcall
Call a WASM function by name with raw byte input/output. Sets a fresh fuel budget before each call. Errors are classified into fuel exhaustion, memor
backend/crates/soundtime-plugin/src/sandbox.rs:123
↓ 2 callersFunctioncheck_blob_exists
Check if a track's data exists locally in the blob store. This is the fast path — no network IO needed.
backend/crates/soundtime-p2p/src/track_health.rs:479
↓ 2 callersMethodcheck_blob_exists
(&self, hash: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2318
↓ 2 callersFunctioncheck_instance_health
Check if a remote instance is reachable by hitting its NodeInfo endpoint.
backend/crates/soundtime-server/src/metadata_lookup.rs:1257
↓ 2 callersMethodclone_repo
Clone a git repository to the given directory.
backend/crates/soundtime-server/src/api/themes.rs:741
↓ 2 callersMethodclone_repo
Clone a git repository to the given directory.
backend/crates/soundtime-plugin/src/installer.rs:321
↓ 2 callersMethodconfig
Get the current configuration.
backend/crates/soundtime-p2p/src/track_health.rs:172
↓ 2 callersFunctionconvert_aiff_to_flac
Convert an AIFF file to FLAC using ffmpeg, preserving all metadata. Returns the path to the newly created FLAC file. The original AIFF file is remove
backend/crates/soundtime-audio/src/convert.rs:25
↓ 2 callersFunctioncopy_filtered_dir
Recursively copy only files with allowed extensions from src to dest. Returns total bytes copied.
backend/crates/soundtime-server/src/api/themes.rs:231
↓ 2 callersFunctioncosine_distance
Cosine distance (1 - cosine_similarity) for testing.
backend/crates/soundtime-server/src/embeddings.rs:667
↓ 2 callersMethodcover_base_path
Returns the base directory for cover art storage. Uses `metadata_storage_path` if set, otherwise falls back to `audio_storage_path`.
backend/crates/soundtime-p2p/src/node.rs:631
↓ 2 callersMethoddb
Get the database connection.
backend/crates/soundtime-p2p/src/node.rs:653
↓ 2 callersFunctiondelete_lastfm_settings
Helper: delete all Last.fm settings for a user.
backend/crates/soundtime-server/src/api/lastfm.rs:187
↓ 2 callersFunctiondelete_listing_token
Delete the listing token from instance settings (used when the server rejects it).
backend/crates/soundtime-server/src/listing_worker.rs:377
↓ 2 callersFunctiondir_size
Calculate total size of a directory tree in bytes.
backend/crates/soundtime-server/src/api/themes.rs:288
↓ 2 callersMethoddistributed_search
Perform a distributed search across the P2P network. Uses Bloom filters to route the query only to peers likely to have results. Queries up to 10 matc
backend/crates/soundtime-p2p/src/node.rs:1573
↓ 2 callersMethodevict_if_needed
Evict least-recently-used blobs until total size is within the limit. Blobs are evicted by removing their tags from the `FsStore`, which makes them e
backend/crates/soundtime-p2p/src/blob_cache.rs:159
↓ 2 callersFunctionfetch_trending_postgres
Fetch trending tracks from PostgreSQL (fallback when Redis is unavailable).
backend/crates/soundtime-server/src/trending.rs:166
↓ 2 callersFunctionfind_similar_tracks
Find tracks most similar to a given embedding using cosine distance. Returns `(track_id, distance)` pairs sorted by similarity (closest first).
backend/crates/soundtime-server/src/embeddings.rs:262
↓ 2 callersMethodfinish_fetch
Mark a fetch as completed (whether success or failure).
backend/crates/soundtime-p2p/src/blob_cache.rs:149
↓ 2 callersFunctionformatDate
(dateStr: string)
frontend/src/lib/utils.ts:14
↓ 2 callersFunctiongenerate_editorial_inner
Inner generation function (reusable from scheduler and endpoint)
backend/crates/soundtime-server/src/api/editorial.rs:287
↓ 2 callersMethodget_config
Get a config value for this plugin. Requires `config_access` permission.
backend/crates/soundtime-plugin/src/host_functions.rs:539
↓ 2 callersMethodget_current_timestamp
Get the current UTC timestamp in ISO 8601 format.
backend/crates/soundtime-plugin/src/host_functions.rs:684
↓ 2 callersFunctionget_p2p_node
Extract p2p node from type-erased state
backend/crates/soundtime-server/src/api/audio.rs:22
↓ 2 callersFunctionget_p2p_node
Extract p2p node from type-erased state
backend/crates/soundtime-server/src/api/admin.rs:22
↓ 2 callersFunctionget_p2p_node
Extract p2p node from type-erased state
backend/crates/soundtime-server/src/api/tracks.rs:19
← previousnext →101–200 of 1,532, ranked by callers