Vlaander
← All engines

PRI · Applied Product — Proof of Authorship

Prima Evidence — Source Code

Source code for a proof-of-authorship web service: files are hashed in the browser, the hash is recorded on Arweave, and a Cloudflare Workers backend handles accounts, Flutterwave payments and an admin console.

Maturity. The open findings from Vlaander's internal review are fixed in the delivered source (commit 1633cb5, 10 October 2026), each with a regression test. The public Arweave record no longer contains the registrant's email address, title or description, only keyed hashes whose key is kept in the deletable database and deleted on erasure. The article cross-site-scripting sink and the deploy settings are fixed. The release of 11 October 2026 (commit cb2b570) moves the website to Next.js 16.3.8 and React 19.3 on the OpenNext Cloudflare adapter, past the December 2025 Next.js advisory; removes 'unsafe-inline' scripts from its CSP; and replaces the flutterwave-react-v3 package, which pulled in axios 0.21.4 and sent payment telemetry through a third-party CORS proxy, with a small checkout loader. Still open: Arweave verification is incomplete, registration does not require a verified email, and 4 website pricing tests fail. Any deployment that wrote proofs with the earlier code has emails in those Arweave records permanently; the source you receive is not such a deployment.

Overview

Prima Evidence records that a file existed at a point in time. The browser computes the file's SHA-256 hash with the Web Crypto API, so the file itself is not uploaded. When a proof is confirmed (paid, from a credit balance or as a free trial), the backend writes a JSON record to Arweave holding the hash, the proof id, a timestamp and keyed hashes (HMAC-SHA256) of the registrant's email and of any title or description. The key is random per proof and kept only in the backend's own store, which can be erased. It uses the Irys bundler first and falls back to a direct Arweave transaction.

The source has six packages. The backend is a Cloudflare Worker built with Hono, using KV, four Durable Objects, a queue for Arweave uploads and a five-minute cron. There are two web front ends: a React 18 and Vite app with a user dashboard and admin pages, and a Next.js 16 website (React 19, deployed to Cloudflare Workers with the OpenNext adapter) in English and Japanese. There are Node and Python client SDKs. There is also a marketing-automation worker (prima-agent) that uses the Anthropic API, X and Resend.

It ships with the Prima Evidence brand. The code references the primaevidence.com domain throughout, and the website and agent carry Vlaander contact addresses. A buyer running it under its own name must replace these and rewrite the legal pages.

The problem

A document-timestamping service needs client-side hashing so files stay private, a permanent public record, accounts and payments, and an operator console. This source provides a working implementation of each, built for Cloudflare Workers, Flutterwave and Arweave.

What it does

  • Client-side SHA-256 hashing in the browser; files are not uploaded.
  • Proof records written to Arweave through the Irys bundler, with a direct Arweave transaction as fallback and a circuit breaker around both. The upload accepts only an allow-listed record with no email, name or free text.
  • Erasure by email: the operator's erasure request finds every proof registered with that address, removes the email, title and description and deletes the per-proof key, so the Arweave record can no longer be linked to the person.
  • Public lookup by hash. It reads the backend's own store, not the chain, and shows a masked email. A separate endpoint checks an Arweave transaction against the service wallet's address.
  • Accounts with scrypt password hashing, JWT sessions (jose) that sign-out revokes, optional TOTP two-factor login, and hashed developer API keys for a versioned API that honours idempotency keys.
  • Flutterwave payments for single proofs, batches and prepaid credit packs, with a constant-time webhook secret check and a once-per-payment credit grant; a free trial proof; printable certificate pages.
  • Admin routes and pages for proofs, users and statistics, plus Resend or SendGrid email and KV-based rate limiting.
  • Website Content Security Policy with a per-request script nonce and no 'unsafe-inline' scripts.
  • GitHub Actions: CI type-checks and tests the backend, website and agent; the deploy workflow deploys the backend and website to a named environment, with actions pinned to commits.

Performance

Measured 2026-10-11
MetricFigureBasis
API read latency, local server, 20 simultaneous usersMedian 6.3–9.7 ms for the stats, verify and pricing endpoints; p95 19–44 ms; p99 34 ms to 1.0 s (three runs, about 22 requests per second)Measured by Vlaander
Rate limit under the shipped load test100 requests per 15 minutes per client address: run unchanged from one machine, the shipped load test was refused (429) after the first ~100 requestsMeasured by Vlaander
Date
2026-10-11
Hardware
AMD EPYC 7763, GitHub Codespace (shared Azure VM), 4 vCPU (2 cores), 15 GiB
Toolchain
Node 24.21.0, npm 11.19.0, TypeScript 5.9.3; Vitest 2.1.9 with @cloudflare/vitest-pool-workers 0.5.41 (backend), Vitest 4.0.18 (agent, website), Vitest 1.6.1 (React app); Next.js 16.3.8, React 19.3.0, @opennextjs/cloudflare 1.20.10, Wrangler 4.149.0 (website); Python 3.14.2; Ubuntu 24.04
Source archive SHA-256
ff5aea7ecff9c6221aa7f23784d1b20d537c72e477f981ec1ca4f894ba06e70d
Method
The delivered source archive (commit cb2b570) was extracted into an empty directory. In each of the five npm packages, `npm ci`, then `tsc --noEmit`; then `vitest run` in the backend (Cloudflare Workers pool), the agent, the Next.js website and the React app. The Node SDK was type-checked and the Python SDK's modules parsed. The website was built with `opennextjs-cloudflare build` and served with `opennextjs-cloudflare preview`, and its English and Japanese home, pricing, use-case, developer, auth and verify pages, robots.txt and sitemap.xml were requested. Counts are the tests each runner reports. Packing the same commit twice gave a byte-identical archive. Performance (12 October 2026): prima-workers-backend from the same archive, run locally with wrangler dev --local (Node 24.21.0) on 2 CPUs; the archive's k6 load-test.js (k6 0.57.0, 2 CPUs, same machine: ramp to 20 virtual users over 90 s, GET health, stats, verify and pricing with 0.5 s pauses), once unchanged and three times with one change, a distinct CF-Connecting-IP per iteration so that the per-address rate limit is evaluated on every request but does not trip.
  • Measured on the archive above. The archive delivered since 21 October 2026 (SHA-256 43a7092473779d8853fbcaa9a930c8b10b85fa5e2bc9c8794ba43a258a121e76) was rebuilt from it with only its LICENSE file and the licence line of README.md rewritten for licensing; the code, tests and benchmark tools are byte-identical.
  • The latency figures are from a local simulation of Cloudflare Workers (workerd, with local KV and Durable Objects), not from Cloudflare's network, and cover read endpoints only: the load test deliberately skips proof creation, which writes to Arweave and costs money. Throughput was set by the script's pauses (about 22 requests per second), not by the server.
  • The health endpoint answered 200 but reported degraded, because its Arweave and Flutterwave checks had no credentials in this setup; it is left out of the figures above (median 33–37 ms, including those failed checks).
  • To rerun the load test from one machine, give each request its own client address (CF-Connecting-IP) or raise the general rate limit on a test deployment; otherwise it measures the rate limiter.
  • On the previous delivered archive (57af96b4…, commit 1633cb5, 10 October 2026) the same suites gave backend 653 of 653, agent 330 of 330, website 148 of 152 and React app 58 of 58. The added website and React app tests cover the OpenNext deploy configuration, the CSP nonce and the Flutterwave checkout loader.
  • The 4 failing website tests check pricing constants. They failed before these fixes too and were deliberately left, because pricing is the operator's decision.
  • The OpenNext build completed, and every page requested from the local preview returned 200 (English pages are served without a locale prefix; /en paths redirect to them). Each response carried a CSP with a fresh script nonce and no 'unsafe-inline' scripts, and every executable script tag carried the nonce.
  • In the React app, `tsc -p tsconfig.node.json` (vite.config.ts only) reports a missing Node types package; the app's own `tsc` passes. This file is unchanged by the release.
  • The SDKs have no test suites. The React app's Playwright tests were not run. Nothing was deployed and no Arweave, Flutterwave or Resend call was made; those integrations are exercised against mocks.

Measured figures were produced by Vlaander on the hardware above from the source archive you would receive. The benchmark tools ship with that source, so you can rerun them after delivery; nothing can be run before purchase. Any performance data is illustrative only and not a guarantee of your results. No refund is available after delivery, except where a remedy cannot lawfully be excluded.

Value in your own metrics

File confidentiality
Only the hash leaves the browser. The file content never reaches the backend or the chain.
Permanence without personal data
Each confirmed proof becomes a public Arweave record that the operator cannot alter or delete. It holds no email, name, title or description, so erasure requests can be honoured: deleting the per-proof key makes the record unlinkable to the person.
Serverless operation
Backend, uploads and scheduled jobs run on Cloudflare Workers, KV, Durable Objects and Queues, so there are no servers to manage.
Developer access
Proofs can be created through a versioned HTTP API with API keys, or through the Node and Python SDKs.

Assurance and build

Language
TypeScript (strict mode in every TypeScript package) · Python SDK
Frameworks
Hono on Cloudflare Workers · React 18 with Vite · Next.js 16.3.8 and React 19.3 via the OpenNext Cloudflare adapter (@opennextjs/cloudflare 1.20.10, Wrangler 4)
Edge runtime
Cloudflare Workers · KV · Durable Objects · Queues · Cron Triggers; D1 for the agent
External services
Flutterwave · Irys and Arweave · Resend or SendGrid · Anthropic API, X and Resend (agent)
Integrity
Client-side SHA-256 · records on Arweave
Tests
Run by Vlaander from the delivered archive on 11 October 2026: backend 653 of 653 passing (Cloudflare Workers pool), agent 330 of 330, React app 63 of 63, Next.js website 166 of 170 (the 4 failures are pricing-constant tests that failed before and were left unchanged); tsc clean in all five TypeScript packages; the OpenNext build and a local preview of the English and Japanese pages succeeded. The SDKs have no tests.
Test coverage
Lines by package: backend 61.8%, agent 43.1%, React app 11.8%, website 10.5%; overall 28.5% (functions 30.2%, branches 29.3%) of each package's src, untested files included. From the project's own tests: 1,212 passing and 4 failing (the website pricing tests). Vitest with v8 coverage (istanbul for the backend, whose Workers test pool does not support v8), measured by Vlaander on the delivered archive, 16 November 2026. The two SDKs have no tests and are not counted
Internal review
Vlaander quality gate, 7 October 2026: 1 critical and 6 high findings, plus medium findings. Fixed in the delivered source (commit 1633cb5, 10 October 2026), each with a regression test: customer emails written permanently to Arweave; the stored cross-site-scripting sink in the website's articles; the deploy settings; an email recoverable from a file hash; non-atomic credit grants; markup accepted as a hash; an unvalidated transaction id in a payment API path; JSON-LD script injection; sign-out not revoking the token; the agent's auto-posting default, unauthenticated email webhook and contact-revealing beacon; unpinned CI actions and staging deploying to production; ignored idempotency keys; 1,000-value verification codes. Fixed earlier (8 October 2026): the critical payment flaw, cheaper-currency credit packs and the Node SDK hashing the wrong bytes. Fixed in the release of 11 October 2026 (merge commit cb2b570), with tests: W3, the website's Next.js 15.5.2 inside the December 2025 advisory range (moved to Next.js 16.3.8 on OpenNext, commits 5b67095 and 1c4c846); the 'unsafe-inline' scripts in the website CSP (per-request nonce, commit 00dbfc5); W6, flutterwave-react-v3 pulling in axios 0.21.4 and sending payment telemetry through a cors-anywhere proxy (replaced by a small checkout loader in the website and the React app, axios removed, commits 2b4b666 and c3ca61e). Open: incomplete Arweave verification, registration without a verified email, and the low findings.
Third-party code
None vendored. THIRD_PARTY_NOTICES.md lists every npm dependency in the five lockfiles with version and declared licence, and flags the LGPL, MPL, CC-BY and undeclared-licence items.
Source archive SHA-256
43a7092473779d8853fbcaa9a930c8b10b85fa5e2bc9c8794ba43a258a121e76

Releases are not yet cryptographically signed, and no release manifests or external audit summaries are published. Check the source tarball you receive against its SHA-256 in Schedule 1 of your Licence Agreement, which you see before you sign.

Scope and maturity

What is real today, what is deliberately excluded, and what is pending — published unprompted.

Included today

  • Backend: a Cloudflare Worker (Hono, KV, Durable Objects, Queues, JWT, Flutterwave, Arweave and Irys), with its Vitest suite.
  • Front ends: a React 18 and Vite app with user dashboard and admin pages, and a Next.js 16 website (React 19, OpenNext on Cloudflare Workers) in English and Japanese.
  • Node and Python client SDKs, a marketing-automation worker (prima-agent), GitHub Actions workflows, a runbook and setup guides for Arweave and Flutterwave.

Explicitly scoped out

  • A focused proof-of-authorship service, not a general document-management platform.
  • The purchase delivers the source archive only. Domain names, any running Prima Evidence deployment with its users and data, and third-party accounts, keys and wallets are not included.

Pending

  • Open review findings: incomplete Arweave verification (data and owner can come from different gateways, no local signature check, no finality check); registration does not require a verified email; and the low findings.
  • 4 website pricing-constant tests fail.
  • Lookup by hash does not check the chain. Verification against Arweave returns 503 until the operator sets the service wallet address.
  • Rebranding: primaevidence.com and Vlaander contact addresses must be replaced, and the legal pages rewritten.
  • Live operation, scaling and any regulatory posture are the acquirer's responsibility.

Who it's for

  • Legal technology and intellectual-property services firms adding a timestamping product line.
  • Notarisation, registry and records businesses digitising evidentiary services.
  • Creative-industry platforms serving authorship and provenance claims.

Before you buy

  1. Read Vlaander's fix report and the open findings above, and decide which to close before launch.
  2. Run wrangler deployments list and check the production worker name, vars and prices before any redeploy.
  3. Check the website's OpenNext worker names, routes and service bindings in wrangler.toml against your Cloudflare account before the first deploy.
  4. Confirm the Arweave and Irys cost per proof and who funds the upload wallet at your projected volume.
  5. Establish, with counsel, the evidentiary weight a hash timestamp carries in your target jurisdictions, and how a registrant proves the link to a keyed-hash record.
  6. Review the Flutterwave integration against your payment and acquirer requirements.
  7. Review the prima-agent worker before enabling it: it ships seed data aimed at the Japanese and Nigerian markets.

What you get

  • The asset's source, licensedSubject to the Licence Agreement, Vlaander grants the verified Buyer a perpetual, worldwide, non-exclusive, non-transferable licence to use, copy and modify the Asset, build it into the Buyer’s own products, and run, host and distribute those products to the Buyer’s customers in non-source form. The licence is for one company: it doesn’t cover affiliates. The source code stays confidential to the Buyer’s own staff and contractors, and may not be passed on, published or resold. Vlaander keeps ownership and licenses the same Asset to other businesses.
  • Its testsThe test suite the published assurance claims rest on, as delivered in the source archive.
  • Its audit artefactsSpecifications, model-checking output, reviews and the software bill of materials, where the asset has them.
  • Not includedThird-party and open-source materials are not sold, assigned or licensed by Vlaander. They remain under their own licences, listed in each asset’s software bill of materials (SBOM.md in the archive), and the Buyer is responsible for complying with those licences.

Licence

$1,700 paid once · or ₦2,295,000

Included

  • The engine's source archive, with its tests and audit artefacts, matching the SHA-256 in Schedule 1
  • A perpetual, non-exclusive licence for one company under the Licence Agreement

Not included

  • No updates
  • No support
Buy a licence

One price per engine, in US dollars, paid once. The source is what you get: Vlaander does not sell updates, support or bundles. The Licence Agreement you sign is the binding text.

First described in: VLA-GEN catalogue, 3 August 2026, §3.9. Revised by Vlaander against the delivered source; every figure is labelled with its basis.

From test to source

  1. 01

    Check

    Read the engine's page: what Vlaander measured and on which hardware, what it has not measured, and the open review findings. Nothing runs before purchase.

  2. 02

    Buy

    Verified businesses only. Choose an engine, give your company's details, have your authorised signatory sign the Licence Agreement, then pay the invoice in naira by bank transfer, or in USDC on Polygon. Once the payment is verified, your account shows Paid.

  3. 03

    Receive

    We confirm the funds and release the source tarball to you. Delivering, then Download ready. Check it against the SHA-256 in Schedule 1, then rerun the tests and benchmarks yourself.