Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZingerLittleBee/ServerBee
/ functions
Functions
6,739 in github.com/ZingerLittleBee/ServerBee
⨍
Functions
6,739
◇
Types & classes
1,185
↓ 2,160 callers
Function
t
(lang: string)
apps/docs/src/components/landing/translations.ts:168
↓ 1,357 callers
Method
send
(data: unknown)
apps/web/src/lib/ws-client.ts:102
↓ 780 callers
Method
get
(db: &DatabaseConnection, id: &str)
crates/server/src/service/ping.rs:51
↓ 679 callers
Function
setup_test_db
()
crates/server/src/test_utils.rs:6
↓ 604 callers
Function
http_client
Build a reqwest client that stores cookies automatically (for session auth).
crates/server/tests/common/mod.rs:99
↓ 575 callers
Function
start_test_server
Start a test server in a temporary directory bound to a random port. Returns `(base_url, temp_dir)`. Keep `temp_dir` alive for the duration of the te
crates/server/tests/common/mod.rs:25
↓ 479 callers
Function
login_admin
Log in as the seeded admin; the session cookie is stored on `client`.
crates/server/tests/common/mod.rs:108
↓ 426 callers
Function
default
(value: T)
packages/widget-sdk/src/z/primitives.ts:40
↓ 348 callers
Method
as_str
(&self)
crates/server/src/service/file_transfer.rs:19
↓ 269 callers
Function
cn
(...inputs: ClassValue[])
apps/web/src/lib/utils.ts:4
↓ 237 callers
Function
render
(id: string)
packages/widget-sdk/src/actions/index.ts:25
↓ 234 callers
Function
dispatch
Run the built-in detector identified by `key` using `client`. Returns `(UnlockStatus, Option<region_string>, latency_ms)`. Unknown keys return `Unloc
crates/agent/src/ip_quality/detectors/mod.rs:32
↓ 226 callers
Method
collect
(&mut self)
crates/agent/src/collector/mod.rs:46
↓ 203 callers
Method
contains
(&self, id: &str)
crates/server/src/service/public_status.rs:314
↓ 203 callers
Function
describe
(label: string)
packages/widget-sdk/src/z/primitives.ts:35
↓ 202 callers
Function
ok
(data: T)
crates/server/src/error.rs:110
↓ 166 callers
Function
get
(id: string)
apps/web/src/widgets-runtime/registry.ts:36
↓ 142 callers
Method
len
(&self)
crates/agent/src/security/first_seen_store.rs:114
↓ 116 callers
Function
create_user
( State(state): State<Arc<AppState>>, Extension(actor): Extension<CurrentUser>, ConnectInfo(addr):
crates/server/src/router/api/user.rs:76
↓ 113 callers
Method
find
Find a single preset target by ID.
crates/server/src/presets/mod.rs:99
↓ 109 callers
Method
update
( db: &DatabaseConnection, agent_manager: &AgentManager, id: &str, input: Upda
crates/server/src/service/ping.rs:92
↓ 98 callers
Method
close
Close a terminal session.
crates/agent/src/terminal.rs:230
↓ 98 callers
Function
register_agent
Register an agent (enrollment → register) and return `(server_id, token)`.
crates/server/tests/common/mod.rs:200
↓ 97 callers
Method
success
(response: LatestAgentVersionResponse)
crates/server/src/service/upgrade_release.rs:26
↓ 95 callers
Method
delete
( db: &DatabaseConnection, agent_manager: &AgentManager, id: &str, )
crates/server/src/service/ping.rs:136
↓ 91 callers
Function
NotFound
()
apps/web/src/components/not-found.tsx:11
↓ 91 callers
Method
max
(v: number)
packages/widget-sdk/src/z/primitives.ts:92
↓ 90 callers
Function
create_server
Create a pending server via the admin API and return its server id.
crates/server/tests/common/mod.rs:146
↓ 85 callers
Function
login_as_new_user
Create a second user with the given role and return an authenticated client logged in as that user. Requires an already-authenticated admin client.
crates/server/tests/common/mod.rs:121
↓ 79 callers
Function
formatBytes
(bytes: number)
apps/web/src/lib/utils.ts:50
↓ 75 callers
Method
remove
(&self, transfer_id: &str)
crates/server/src/service/file_transfer.rs:210
↓ 71 callers
Function
recv_agent_text
Receive the next text frame from the agent socket, parsed as JSON (5s timeout).
crates/server/tests/common/mod.rs:225
↓ 69 callers
Function
http_client
Build a reqwest client that stores cookies automatically.
crates/server/tests/integration.rs:105
↓ 66 callers
Function
update
(key: K, value: ConfigFormState[K])
apps/web/src/routes/_authed/settings/status-page-config-form.tsx:56
↓ 65 callers
Function
start_test_server
Start a test server in a temporary directory with a random port. Returns `(base_url, temp_dir)` where `temp_dir` is kept alive for the duration of the
crates/server/tests/integration.rs:23
↓ 60 callers
Function
make_manager
(config: FileConfig)
crates/agent/src/file_manager.rs:755
↓ 59 callers
Function
extract_client_ip
Extract the real client IP address from a request. Security model: - If `trusted_proxies` is empty, return the TCP source IP directly (XFF ignored).
crates/server/src/router/utils.rs:16
↓ 59 callers
Function
login_admin
Login as admin and return the authenticated client (with session cookie).
crates/server/tests/integration.rs:114
↓ 58 callers
Function
make_config
(root: &str)
crates/agent/src/file_manager.rs:739
↓ 57 callers
Function
onChange
()
apps/web/src/hooks/use-mobile.ts:10
↓ 55 callers
Method
default
()
crates/server/src/service/alert.rs:117
↓ 54 callers
Method
dispatch
Dispatch a single `ServerMessage` (as JSON) through the method.
crates/agent/src/reporter.rs:2061
↓ 50 callers
Method
from
(err: sea_orm::DbErr)
crates/server/src/error.rs:94
↓ 50 callers
Method
min
(v: number)
packages/widget-sdk/src/z/primitives.ts:87
↓ 49 callers
Method
delete
Delete a file or directory.
crates/agent/src/file_manager.rs:316
↓ 44 callers
Method
abort
()
apps/web/vite/dev-proxy.ts:13
↓ 40 callers
Method
get_sender
Get the mpsc sender for a specific agent to send commands to it.
crates/server/src/service/agent_manager.rs:334
↓ 39 callers
Method
get
( db: &DatabaseConnection, id: &str, )
crates/server/src/service/widget_module/service.rs:67
↓ 38 callers
Function
connect_agent
Open the agent WebSocket with the given token and return its split halves.
crates/server/tests/common/mod.rs:216
↓ 38 callers
Method
set
Set a config value by key (upsert).
crates/server/src/service/config.rs:18
↓ 37 callers
Function
has_capability
Check if a specific capability bit is set.
crates/common/src/constants.rs:229
↓ 37 callers
Function
login
( State(state): State<Arc<AppState>>, ConnectInfo(addr): ConnectInfo<SocketAddr>, req_headers: Hea
crates/server/src/router/api/auth.rs:136
↓ 36 callers
Function
build_client
Build the dedicated reqwest client for IP quality checks. - Automatic redirects are disabled; the checker follows them manually so every hop's host c
crates/agent/src/ip_quality/http.rs:34
↓ 36 callers
Function
seed_probe_record
( db: &DatabaseConnection, server_id: &str, target_id: &str, timestamp: DateTi
crates/server/src/service/network_probe.rs:1302
↓ 35 callers
Function
send_system_info
Complete the SystemInfo handshake with the given capability bitmask and wait for the server's Ack. `agent_local_capabilities = None` lets the server a
crates/server/tests/common/mod.rs:242
↓ 34 callers
Function
list
()
apps/web/src/widgets-runtime/registry.ts:39
↓ 32 callers
Method
add_connection
Register a new agent connection and broadcast ServerOnline to browsers.
crates/server/src/service/agent_manager.rs:148
↓ 32 callers
Method
observe
(&mut self, attempt: AuthAttempt)
crates/agent/src/security/ssh_detector.rs:91
↓ 31 callers
Function
insert_test_server
(db: &DatabaseConnection, id: &str, name: &str)
crates/server/src/service/network_probe.rs:1280
↓ 27 callers
Function
fetch
Fetch `request`, following redirects manually (so each hop is SSRF-checked), and return an [`HttpOutcome`]. - Validates the initial URL via [`ssrf::v
crates/agent/src/ip_quality/http.rs:51
↓ 27 callers
Function
formatDateTime
(date: Date | string | number | null | undefined, opts: Intl.DateTimeFormatOptions = {})
apps/web/src/lib/format.ts:50
↓ 27 callers
Function
http_client
()
crates/server/tests/agent_registration_integration.rs:96
↓ 27 callers
Function
login_admin
(client: &reqwest::Client, base_url: &str)
crates/server/tests/agent_registration_integration.rs:104
↓ 27 callers
Function
parse_host_port
Parse the host and port from target string. Supports "host" and "host:port".
crates/server/src/service/checker/ssl.rs:242
↓ 26 callers
Method
create_transfer
( &self, server_id: String, user_id: String, direction: TransferDirection,
crates/server/src/service/file_transfer.rs:109
↓ 26 callers
Function
start_test_server
()
crates/server/tests/agent_registration_integration.rs:92
↓ 25 callers
Function
attempt
(user: &str, ip: &str, success: bool)
crates/agent/src/security/ssh_detector.rs:186
↓ 25 callers
Function
get_server
( State(state): State<Arc<AppState>>, Path(id): Path<String>, )
crates/server/src/router/api/server.rs:888
↓ 24 callers
Function
insert_test_server
(db: &DatabaseConnection, id: &str)
crates/server/src/service/traffic.rs:723
↓ 24 callers
Function
make_service
( db: sea_orm::DatabaseConnection, )
crates/server/src/service/firewall.rs:678
↓ 22 callers
Method
as_str
(self)
crates/common/src/constants.rs:74
↓ 22 callers
Function
assert_option_series_eq
(actual: &[Option<f64>], expected: &[Option<f64>])
crates/server/src/service/network_probe.rs:1342
↓ 22 callers
Function
classify
Classify a TikTok probe response.
crates/agent/src/ip_quality/detectors/tiktok.rs:42
↓ 22 callers
Method
connect
()
apps/web/src/lib/ws-client.ts:41
↓ 22 callers
Function
get_cycle_range
Compute billing cycle date range. Returns (start_date_inclusive, end_date_inclusive).
crates/server/src/service/traffic.rs:587
↓ 22 callers
Method
into_response
(self)
crates/server/src/error.rs:73
↓ 22 callers
Method
name
(&self)
crates/server/src/migration/m20260312_000001_init.rs:6
↓ 22 callers
Method
record_event
Persist a security event, broadcast it, and evaluate matching alert rules inline. Returns the generated event id.
crates/server/src/service/security.rs:57
↓ 22 callers
Function
send_server_msg
Send any `ServerMessage` as a text frame.
crates/agent/src/reporter.rs:3075
↓ 22 callers
Function
useAuth
()
apps/web/src/hooks/use-auth.ts:5
↓ 21 callers
Function
cn
(...inputs: ClassValue[])
packages/ui/src/lib/utils.ts:4
↓ 21 callers
Function
create_pending_server
Helper: POST /api/servers and return (server_id, enrollment_id, code).
crates/server/tests/agent_registration_integration.rs:307
↓ 21 callers
Method
load
()
crates/agent/src/config.rs:299
↓ 21 callers
Function
make_manager
()
crates/server/src/service/agent_manager.rs:803
↓ 21 callers
Function
make_manager
Build a DockerManager pointing at a bogus HTTP endpoint. `Docker::connect_with_http` only constructs the transport; it performs no network I/O and ne
crates/agent/src/docker/mod.rs:426
↓ 21 callers
Function
useTerminalWs
(serverId: string)
apps/web/src/hooks/use-terminal-ws.ts:12
↓ 20 callers
Function
bind_fake_server
Bind a loopback listener and return it plus its bound address.
crates/agent/src/reporter.rs:3047
↓ 20 callers
Function
e2e_config
Build a reporter config that points at the given loopback `ws_addr` (`host:port`) and disables every network-touching background task so the fake serv
crates/agent/src/reporter.rs:3021
↓ 20 callers
Function
http_client
()
crates/server/tests/widget_module_integration.rs:110
↓ 20 callers
Function
insert_test_server
Helper: insert a test server into the database.
crates/server/src/service/alert.rs:1657
↓ 20 callers
Function
makeJob
( overrides: Partial<{ server_id: string job_id: string target_version: string sta
apps/web/src/stores/upgrade-jobs-store.test.ts:16
↓ 20 callers
Function
makeServer
(overrides: Partial<ServerMetrics> = {})
apps/web/src/hooks/use-servers-ws.test.ts:12
↓ 20 callers
Function
make_input
Build a minimal CreateIncident with all optional fields at their defaults.
crates/server/src/service/incident.rs:238
↓ 20 callers
Method
mark_failed
(&self, transfer_id: &str, error: String)
crates/server/src/service/file_transfer.rs:185
↓ 20 callers
Function
read_agent_until
Read text frames from the agent until one decodes into an `AgentMessage` matching `pred`, returning it. Pings/Pongs/binary frames and non-matching mes
crates/agent/src/reporter.rs:3093
↓ 20 callers
Function
read_router
()
crates/server/src/router/api/asn.rs:118
↓ 20 callers
Function
set_config
Overwrite the migration-seeded singleton `status_page` row so tests can drive the config / scope branches deterministically.
crates/server/src/service/public_status.rs:991
↓ 20 callers
Function
start_test_server_with_db
Start an in-process test server and return a context exposing both the base URL and the underlying sea-orm connection so tests can seed rows directly.
crates/server/tests/widget_module_integration.rs:29
↓ 20 callers
Function
test_agent_manager
()
crates/server/src/service/ping.rs:322
↓ 19 callers
Function
accept_ws
Accept one TCP connection and complete the WebSocket handshake.
crates/agent/src/reporter.rs:3054
next →
1–100 of 6,739, ranked by callers