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
↓ 144 callers
Method
is_empty
Whether the pool is empty.
backend/crates/soundtime-p2p/src/connection_pool.rs:127
↓ 74 callers
Function
get
(_target, prop)
frontend/src/lib/components/NetworkGraph.test.ts:7
↓ 73 callers
Method
push
Push a new entry, evicting the oldest if at capacity.
backend/crates/soundtime-server/src/p2p_logs.rs:54
↓ 66 callers
Method
as_str
(&self)
backend/crates/soundtime-db/src/entities/user.rs:14
↓ 58 callers
Method
name
Returns the plugin name.
backend/crates/soundtime-plugin/src/sandbox.rs:167
↓ 57 callers
Method
len
Return the number of entries currently stored.
backend/crates/soundtime-server/src/p2p_logs.rs:91
↓ 48 callers
Function
createTrack
(overrides: Record<string, any> = {})
frontend/src/lib/components/TrackList.test.ts:97
↓ 46 callers
Method
play
()
frontend/src/lib/stores/player.svelte.test.ts:62
↓ 46 callers
Function
spawn
(state: Arc<AppState>)
backend/crates/soundtime-server/src/storage_worker.rs:97
↓ 43 callers
Method
len
Number of currently cached connections.
backend/crates/soundtime-p2p/src/connection_pool.rs:122
↓ 37 callers
Method
default
()
backend/crates/soundtime-p2p/src/node.rs:209
↓ 36 callers
Method
parse
Parse a plugin manifest from a TOML string.
backend/crates/soundtime-plugin/src/manifest.rs:166
↓ 35 callers
Method
get_connection
Get a reusable connection to a peer, or establish a new one. If a cached connection exists and is not stale, it is returned. Otherwise, a new connect
backend/crates/soundtime-p2p/src/connection_pool.rs:51
↓ 31 callers
Method
upsert_peer
Register or update a peer.
backend/crates/soundtime-p2p/src/discovery.rs:50
↓ 30 callers
Method
record_failure
Record a failed access attempt for a track. Returns the updated health status.
backend/crates/soundtime-p2p/src/track_health.rs:178
↓ 30 callers
Function
test_context
Create a test HostContext with the given http_hosts permission.
backend/crates/soundtime-plugin/src/host_functions.rs:822
↓ 29 callers
Function
mockTrack
(id: string)
frontend/src/lib/stores/radio.svelte.test.ts:33
↓ 27 callers
Method
from
(u: user::Model)
backend/crates/soundtime-server/src/api/users.rs:23
↓ 25 callers
Function
generate_token_pair
Generate access + refresh token pair
backend/crates/soundtime-server/src/auth/jwt.rs:38
↓ 25 callers
Method
to
()
backend/crates/soundtime-db/src/entities/user.rs:64
↓ 22 callers
Method
trigger
(event: string)
frontend/src/lib/stores/player.svelte.test.ts:71
↓ 21 callers
Method
check_http_host
Check if a URL's host is in the allowed list (supports glob patterns).
backend/crates/soundtime-plugin/src/host_functions.rs:375
↓ 20 callers
Function
apiFetch
( path: string, options: RequestInit = {} )
frontend/src/lib/api.ts:56
↓ 20 callers
Method
insert_track
Insert searchable terms for a track into the local Bloom filter. Call this when a track is added locally or replicated from a peer.
backend/crates/soundtime-p2p/src/search_index.rs:89
↓ 19 callers
Function
build_announce_payload
Build the JSON payload for the listing server announcement.
backend/crates/soundtime-server/src/listing_worker.rs:43
↓ 19 callers
Function
mockPlugin
Helper to create a mock Plugin object with sensible defaults.
frontend/src/lib/components/PluginSlot.test.ts:16
↓ 18 callers
Function
setLocale
(locale: Locale)
frontend/src/lib/i18n/index.svelte.ts:44
↓ 16 callers
Function
auto_repair_on_failure
Automatically attempt to repair a track that failed to play locally. Strategy: 1. Try the origin peer first (fast path). 2. If that fails, select the
backend/crates/soundtime-p2p/src/track_health.rs:618
↓ 16 callers
Function
sample_params
()
backend/crates/soundtime-server/src/listing_worker.rs:685
↓ 15 callers
Method
check_private_ip
SECURITY: Block requests to private/reserved IP addresses.
backend/crates/soundtime-plugin/src/host_functions.rs:414
↓ 15 callers
Function
createFileList
(files: File[])
frontend/src/lib/components/UploadDropzone.test.ts:41
↓ 15 callers
Function
createMockFile
(name: string, size: number, type = 'audio/mp3')
frontend/src/lib/components/UploadDropzone.test.ts:35
↓ 15 callers
Function
get_setting
(state: &AppState, key: &str)
backend/crates/soundtime-server/src/api/editorial.rs:176
↓ 15 callers
Method
validate
Validate all fields of a parsed manifest.
backend/crates/soundtime-plugin/src/manifest.rs:172
↓ 15 callers
Function
validate_git_url
Validate a git URL for security. Only HTTPS URLs are allowed. File, HTTP, SSH, and git protocols are blocked to prevent SSRF and local file access.
backend/crates/soundtime-plugin/src/installer.rs:37
↓ 14 callers
Method
export_local_bloom
Export the local Bloom filter as a compact serializable structure.
backend/crates/soundtime-p2p/src/search_index.rs:119
↓ 14 callers
Method
lookup_recording
Look up a recording by title and artist name. Returns the best match if found with a score >= 80.
backend/crates/soundtime-p2p/src/musicbrainz.rs:107
↓ 14 callers
Method
mark_healthy
Mark a track as healthy (e.g., after initial successful fetch).
backend/crates/soundtime-p2p/src/track_health.rs:215
↓ 14 callers
Method
remove
Remove a specific blob from the cache tracker (without deleting from store).
backend/crates/soundtime-p2p/src/blob_cache.rs:211
↓ 13 callers
Method
addEventListener
(event: string, handler: Function)
frontend/src/lib/stores/player.svelte.test.ts:55
↓ 13 callers
Function
createMockXHR
(overrides: Record<string, any> = {})
frontend/src/lib/api.test.ts:309
↓ 13 callers
Method
node_id
Get this node's unique identifier (public key).
backend/crates/soundtime-p2p/src/node.rs:638
↓ 13 callers
Function
process_health_batch
Process a batch of tracks for health checking (lazy-fetch model). Uses the health manager for state tracking. The `check_fn` is called for each track
backend/crates/soundtime-p2p/src/track_health.rs:515
↓ 13 callers
Method
registry
Get the peer registry.
backend/crates/soundtime-p2p/src/node.rs:643
↓ 13 callers
Method
store_file
( &self, user_id: Uuid, album_name: Option<&str>, filename: &str, data
backend/crates/soundtime-audio/src/storage.rs:104
↓ 13 callers
Function
t
(key: TranslationKey, params?: Record<string, string | number>)
frontend/src/lib/i18n/index.svelte.ts:53
↓ 13 callers
Function
validate_token
Validate a JWT token and return claims
backend/crates/soundtime-server/src/auth/jwt.rs:87
↓ 12 callers
Function
createTrack
(overrides: Record<string, any> = {})
frontend/src/lib/components/TrackCard.test.ts:45
↓ 12 callers
Method
get_peer
Get a specific peer by node_id.
backend/crates/soundtime-p2p/src/discovery.rs:113
↓ 12 callers
Function
get_plugin_registry
Extract the plugin registry from type-erased application state. Returns `None` if the plugin system is not enabled (`PLUGIN_ENABLED=false`).
backend/crates/soundtime-server/src/api/mod.rs:29
↓ 12 callers
Function
hash_password
Hash a password using Argon2id
backend/crates/soundtime-server/src/auth/password.rs:7
↓ 12 callers
Function
http_client
()
backend/crates/soundtime-server/src/listing_worker.rs:697
↓ 12 callers
Function
send_announce_request
Send the announce payload to the listing server and return the response body. Returns `Ok((status_code, body))` — the caller decides what to do with
backend/crates/soundtime-server/src/listing_worker.rs:64
↓ 11 callers
Method
get_record
Get the health record for a specific track.
backend/crates/soundtime-p2p/src/track_health.rs:231
↓ 11 callers
Method
import_peer_bloom
Import a peer's Bloom filter for search routing.
backend/crates/soundtime-p2p/src/search_index.rs:138
↓ 10 callers
Method
mark_offline
Mark a peer as offline.
backend/crates/soundtime-p2p/src/discovery.rs:87
↓ 10 callers
Function
test_state
()
backend/crates/soundtime-server/src/auth/middleware.rs:203
↓ 9 callers
Function
generate_waveform
Generate a waveform summary (peak amplitudes) for visualization. Returns a vector of normalized peak values (0.0..1.0) with `num_points` entries.
backend/crates/soundtime-audio/src/waveform.rs:20
↓ 9 callers
Function
get_p2p_node
Helper: extract `Arc<P2pNode>` from type-erased AppState field.
backend/crates/soundtime-server/src/api/p2p.rs:21
↓ 9 callers
Function
makeSmartChainable
(boundData: any[] = [])
frontend/src/lib/components/NetworkGraph.test.ts:4
↓ 9 callers
Method
merge
(&mut self, other: &BatchCheckResult)
backend/crates/soundtime-p2p/src/track_health.rs:460
↓ 9 callers
Function
save_listing_status
Persist the listing heartbeat status so the admin panel can display it.
backend/crates/soundtime-server/src/listing_worker.rs:442
↓ 9 callers
Method
set_fetchable
(&self, hash: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2294
↓ 9 callers
Function
test_context_with_perms
Create a test HostContext with fine-grained permissions.
backend/crates/soundtime-plugin/src/host_functions.rs:843
↓ 9 callers
Function
updatePositionState
Update the Media Session playback position state.
frontend/src/lib/stores/player.svelte.ts:80
↓ 8 callers
Function
generate_embedding
( genre: Option<&str>, year: Option<i16>, duration_secs: f32, bitrate: Option<i32>, sample
backend/crates/soundtime-server/src/embeddings.rs:25
↓ 8 callers
Function
getLocale
()
frontend/src/lib/i18n/index.svelte.ts:40
↓ 8 callers
Method
list_peers
Get all known peers.
backend/crates/soundtime-p2p/src/discovery.rs:101
↓ 8 callers
Method
login
(username: string, password: string)
frontend/cypress/support/e2e.ts:8
↓ 8 callers
Function
test_state
()
backend/crates/soundtime-server/src/auth/routes.rs:896
↓ 7 callers
Method
dispatch
Dispatch an event to all subscribed plugins. Iterates over subscribed plugins in load order. Each plugin's WASM call runs without holding the registr
backend/crates/soundtime-plugin/src/registry.rs:311
↓ 7 callers
Method
entries
Return all entries (oldest first). Optionally filter by level and limit count.
backend/crates/soundtime-server/src/p2p_logs.rs:63
↓ 7 callers
Function
formatDuration
(seconds: number)
frontend/src/lib/utils.ts:8
↓ 7 callers
Method
full_path
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:150
↓ 7 callers
Function
json_body
(val: serde_json::Value)
backend/crates/soundtime-server/src/auth/routes.rs:934
↓ 7 callers
Method
ping_peer
Send a ping to a peer and wait for pong.
backend/crates/soundtime-p2p/src/node.rs:902
↓ 7 callers
Function
process_host_requests
Process host function requests from a plugin's event handler response.
backend/crates/soundtime-plugin/src/registry.rs:82
↓ 7 callers
Method
record_access_with_tag
Record access and ensure a persistent tag exists in the blob store. This is the preferred method when a blob store is available. It performs the same
backend/crates/soundtime-p2p/src/blob_cache.rs:104
↓ 7 callers
Method
s3_key
(&self, relative_path: &str)
backend/crates/soundtime-audio/src/storage.rs:282
↓ 7 callers
Function
select_best_copy
Select the best peer copy from a list of duplicate track sources. Returns `None` if no copies are available.
backend/crates/soundtime-p2p/src/track_health.rs:392
↓ 7 callers
Method
send_message_to_peer
Send a message to a specific peer with retry and exponential backoff. Serializes the message once, then attempts to deliver it up to 3 times with dou
backend/crates/soundtime-p2p/src/node.rs:1019
↓ 7 callers
Method
store_cover
( &self, user_id: Uuid, album_name: Option<&str>, data: &[u8], )
backend/crates/soundtime-audio/src/storage.rs:166
↓ 7 callers
Method
upsert_peer_versioned
Register or update a peer with version information.
backend/crates/soundtime-p2p/src/discovery.rs:56
↓ 7 callers
Function
validate_git_url
Validate a git URL for security. Only HTTPS URLs are allowed. File, HTTP, SSH, and git protocols are blocked to prevent SSRF and local file access.
backend/crates/soundtime-server/src/api/themes.rs:120
↓ 6 callers
Method
add_track_tokens
Add a single track's tokens to the search index without a full rebuild. Called immediately when a new track is added to the local catalog so it becom
backend/crates/soundtime-p2p/src/search_index.rs:345
↓ 6 callers
Function
auth_app
(state: Arc<AppState>)
backend/crates/soundtime-server/src/auth/middleware.rs:221
↓ 6 callers
Method
fetch_track
(&self, _peer_id: &str, hash: &str)
backend/crates/soundtime-p2p/src/track_health.rs:2309
↓ 6 callers
Function
getRadioStore
()
frontend/src/lib/stores/radio.svelte.ts:162
↓ 6 callers
Function
get_listing_domain
Read the domain to announce to the listing server. Priority: DB setting `listing_domain` → env var `SOUNDTIME_DOMAIN` → "localhost:8080".
backend/crates/soundtime-server/src/listing_worker.rs:311
↓ 6 callers
Function
get_user_setting
Helper: get a user setting by key.
backend/crates/soundtime-server/src/api/lastfm.rs:139
↓ 6 callers
Method
loginAsAdmin
()
frontend/cypress/support/e2e.ts:9
↓ 6 callers
Function
make_album_model
()
backend/crates/soundtime-server/src/api/albums.rs:233
↓ 6 callers
Function
mb_response_json
( score: u8, date: Option<&str>, has_artist: bool, has_release: bool, )
backend/crates/soundtime-p2p/src/musicbrainz.rs:258
↓ 6 callers
Method
online_peers
Get online peers only.
backend/crates/soundtime-p2p/src/discovery.rs:107
↓ 6 callers
Function
parse_range_header
Parse "bytes=start-end" range header
backend/crates/soundtime-server/src/api/audio.rs:664
↓ 6 callers
Method
peers_matching_query
Get the NodeIds of peers that might have results for a query. Returns peers whose Bloom filter matches the query terms.
backend/crates/soundtime-p2p/src/search_index.rs:172
↓ 6 callers
Method
re_reference
Re-reference a previously dereferenced track. Called when a dereferenced track becomes available again (the peer came back online, the blob was re-an
backend/crates/soundtime-p2p/src/track_health.rs:276
↓ 6 callers
Function
sanitize_filename
(name: &str)
backend/crates/soundtime-audio/src/storage.rs:523
↓ 6 callers
Function
sanitize_log_message
Sanitize a log message from a plugin. Strips control characters (except newline/tab), truncates to max length.
backend/crates/soundtime-plugin/src/host_functions.rs:29
↓ 6 callers
Function
seed_track
Seed algorithm: track-based radio. Builds a mix from three phases, each fetching up to `count * 2` candidates then truncating to its quota before mer
backend/crates/soundtime-server/src/api/radio.rs:172
next →
1–100 of 1,532, ranked by callers