The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Three-call validation against the real api.worldquantbrain.com:
POST /authentication — proves the TLS/JA3 fingerprint clears BRAIN's edge.
GET /authentication — confirms the session cookie is honored.
GET /operators — confirms a real BRAIN GET decodes into typed structs.
That's it. No submits, no simulations — those consume daily budget against the account.
Usage
$env:BRAINAPI_USER = "you@example.com"
$env:BRAINAPI_PASS = "..."
go run ./scripts/live-smoke
BRAINAPI_USER=you@example.com BRAINAPI_PASS=... go run ./scripts/live-smoke
Exit codes:
Code
Meaning
0
All three calls succeeded — SDK is production-validated for this account.
1
Some call failed — read the structured log on stderr; the step= field says which one.
2
Missing BRAINAPI_USER or BRAINAPI_PASS env.
What this proves
bogdanfinn/tls-client Chrome 131 profile clears BRAIN's edge (no 403 from Cloudflare/WAF).
The Basic-auth login flow lands a session cookie (proves cookie jar wiring works against real Set-Cookie headers, not just httptest).
A real /operators body decodes into the typed []Operator slice without hitting unknown-field issues — this catches schema drift if BRAIN adds a required field we don't decode.
What this does NOT prove
Daily-budget gates (no submit/simulation calls).
Captcha solver against the real /captcha endpoint (no registration call).
Long-poll behavior on real BRAIN (no submit/check/pnl/simulation call).
secondary account permission/tier handling (depends on which account you supply).
To extend coverage, add explicit per-test sub-commands and gate them on a --allow-budget-burn flag that the operator must pass intentionally.
live-smoke runs nine minimum-budget calls against real BRAIN to prove
the Go SDK's TLS impersonation + protocol decoding still match what
BRAIN actually returns today. The CI scheduled workflow runs this
weekly so silent BRAIN-side schema upgrades (the v0.1.1/v0.1.2 class
of bugs) get caught at fixture-refresh time instead of in production.
Steps:
POST /authentication (Login) — Cloudflare/edge accept our JA3?
GET /authentication (Probe) — session cookie working?
GET /operators (Operators) — bare array decode
GET /users/self (Self) — User struct still matches
GET /users/self/competitions (Competitions) — Competition / Leaderboard / Team
GET /users/self/activities/... (Activities) — ActivityStream + RecordSetBlock
GET /users/self/alphas (ListAlphas) — Page[Alpha] including team/origin
GET /alphas/{first} (GetAlpha) — single Alpha detail (skipped if empty)
GET /data-fields (DataFields) — DataFieldsPage / NamedRef
It does NOT submit alphas or run simulations (those consume daily
budget and have visible side effects against the main account).
Recommended account: a secondary account, NOT the main one. Live-smoke is a
canary -- it runs weekly on CI and on ad-hoc demand, so quota/rate-limit
pressure adds up. secondary accounts also exercise a different permission
envelope (fewer perms, fewer data-fields), making the test slightly
more representative of what production secondary account workers see. A
dedicated test account is ideal; pulling one from an existing pool
(e.g. the secondary account store status='active' rows) works too.
NEVER point this at the main account -- one bad week of CI and you
burn through the precious daily budgets.
Usage:
$env:BRAINAPI_USER = "secondary account@example.com"
$env:BRAINAPI_PASS = "..."
go run ./scripts/live-smoke
Exit codes:
0 all nine calls succeeded
1 any call failed (details in stderr)
2 missing credentials
The script picks the deterministic browser profile for the supplied
email, so a fingerprint mismatch from the production bridge will surface here.