Read 2026-10-23
smallbets/userbase: technical due diligence, read from its repository
What Borehole read in smallbets/userbase's code and history at 8e99702: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongsrc/userbase-server/user.js is 2,895 lines, 37× this codebase's median file
adequateThe median source file here is 78 lines. 6 files exceed 1,000 lines, the largest being 2,895. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
src/userbase-server/user.js:1 — 2,895 lines (37× median) |
src/userbase-js/src/db.js:1 — 2,424 lines (31× median) |
src/userbase-server/db.js:1 — 1,828 lines (23× median) |
src/userbase-server/admin.js:1 — 1,515 lines (19× median) |
src/userbase-server/admin-panel/components/Dashboard/AppUsersTable.jsx:1 — 1,339 lines (17× median) |
Engineering Process & SDLC Maturity
adequateNothing in the history is tagged as a release
adequateAcross 6.7 years of history there is not one tag. There may still be a deployment process, but this repository holds no record of what shipped when — which is the record a buyer needs to reconstruct an incident or a regression after the fact.
| 0 tags across 1,371 commits and 2436 days |
Almost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 272 tracked files |
Product & Engineering Maturity
strongNo finding.
Security & Reliability Posture
adequateNone of the standard security guard rails are configured
adequateThere is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.
| checked 5 kinds of guard rail across 272 tracked files; 0 present |
The build runs third-party code it does not pin
adequate2 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 1 step pipes a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
.github/workflows/e2e-tests.yml:25 — action pinned by tag |
.github/workflows/e2e-tests.yml:48 — action pinned by tag |
buildspec.yml:12 — download piped into a shell |
82 locked dependencies have published vulnerabilities, 79 high or critical in what ships
adequate82 of 1,053 locked dependencies match 153 published advisories in OSV, 79 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version.
src/userbase-sql.js/package-lock.json — @babel/traverse 7.11.0: GHSA-67hx-6x53-jw92 (critical), fixed in 7.23.2 |
src/userbase-sql.js/package-lock.json — cipher-base 1.0.4: GHSA-cpq7-6gpm-g9rc (critical), fixed in 1.0.5 |
src/userbase-sql.js/package-lock.json — ejs 2.7.4: GHSA-phwq-j96m-2c2q (critical), fixed in 3.1.7 |
The production build publishes source maps
adequateThe build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.
src/proof-of-concept/webpack.config.js:22 — source maps in a production build |
src/userbase-js/webpack.common.js:5 — source maps in a production build |
src/userbase-server/admin-panel/webpack.config.js:20 — source maps in a production build |
Observability & Operations
adequateNo telemetry or error reporting is wired in anywhere
adequateNone of 219 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.
| searched 219 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
The code branches on the environment's name at 27 places
adequate27 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.
src/userbase-server/admin-panel/components/Dashboard/StripeDataTable.jsx:4 — branch on the environment name |
src/userbase-server/admin-panel/components/Dashboard/StripeDataTable.jsx:22 — branch on the environment name |
src/userbase-server/admin-panel/components/Dashboard/StripeDataTable.jsx:47 — branch on the environment name |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on smallbets/userbase: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.