Borehole · Project · free tier
smallbets/userbase
Free reading: not for reliance
8e99702 · 1,371 commits · 272 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

src/userbase-server/user.js is 2,895 lines, 37× this codebase's median file

adequate

The 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.

Evidence
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

adequate
02.4

Nothing in the history is tagged as a release

adequate

Across 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.

Evidence
0 tags across 1,371 commits and 2436 days
02.6

Almost no process scaffolding exists in the repository

adequate

Of 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.

Evidence
1 of 5 markers present across 272 tracked files

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.2

None of the standard security guard rails are configured

adequate

There 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.

Evidence
checked 5 kinds of guard rail across 272 tracked files; 0 present
05.27

The build runs third-party code it does not pin

adequate

2 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.

Evidence
.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
05.26

82 locked dependencies have published vulnerabilities, 79 high or critical in what ships

adequate

82 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.

Evidence
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
05.49

The production build publishes source maps

adequate

The 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.

Evidence
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

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None 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.

Evidence
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
06.9

No error reporter is wired in

adequate

Nothing 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.

Evidence
no error reporter initialised
06.17

The code branches on the environment's name at 27 places

adequate

27 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.

Fit with the Acquirer

not assessable

Not 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.