Repository navigation
A/B test stats for any product: @profullstack/abtest, API, dashboard - #468
Merged
Merged
Conversation
… /dashboard/experiments Sticky deterministic assignment (same arm server side and in a client's offline fallback), exposure/conversion/revenue/named events with idempotency keys, and per-arm stats: Wilson CI, pooled two-proportion z test, exact Bayesian probability to beat control, sample size per arm and a plain-language verdict. Migration applied to prod by hand. First user: board.saas voice trial length. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan54 finding(s) HIGH/CRITICAL: 3 | MEDIUM: 33 | LOW: 18
…and 4 more. Full results in the Security tab. Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anthony asked for a crawlproof A/B test stats plugin (none existed: only ad creative experiments). This adds one for any product.
packages/abtest-> npm@profullstack/abtest: sticky deterministic assignment (cyrb53 of experiment+unit, weights), Wilson CI, pooled two-proportion z test, exact Beta probability to beat control, sample size per arm, verdict text (collecting / keep running with n needed / significant / no difference; Bonferroni past 2 arms), fail-open client with offline fallback,abtestCLI./api/abtest/v1: experiments (GET/POST upsert), experiments/:key (GET stats, PATCH status/winner), assign, events (single or batch of 100, idempotency ids). crp_ bearer; read-only tokens may GET. Skips the crawl gateway (server-to-server)./dashboard/experimentslist + per-experiment table (rate + CI, lift, p, P(beat), revenue, engagement events). Nav link added.20261122200000_abtest_experiments.sql(ab_experiments, ab_assignments, ab_events, ab_arm_counts RPC; RLS on, service role only; unit ids stored hashed). Already applied to prod, PostgREST reloaded.First user: board.saas voice trial length (30d vs 90d, control 90d).
🤖 Generated with Claude Code