PROBNAYA
Independent Computational Laboratory
The public website of PROBNAYA, an independent computational laboratory.
The site presents the laboratory, its instruments, and its investigations. It is a static multi-page website. Live canvas apparatuses render computational processes through measured, frame-rate-independent simulations.
No installation or build step is required.
python3 -m http.server 4173Open http://localhost:4173.
index.htmland the other root HTML files define individual pages.css/style.csscontains the shared visual system and responsive layout.js/apparatus.jsruns the canvas simulations.js/records.jscontains investigation records.js/site.jscontains shared page behavior.api/intake.jsaccepts investigation enquiries.api/observations.jsreceives Observations and delivers each one to the PROBNAYA mailbox;js/observation-attachment.jsprepares one attachment in the browser. Seedocs/observations.md. Publishing is a terminal workflow (npm run observation:new,:validate,:preview,:publish); seedocs/observations-publishing.md.api/machine-portrait.jscreates and directly verifies hosted Stripe Checkout Sessions for Machine Portrait issuance.
The Machine Portrait apparatus requires four server-side environment variables:
STRIPE_SECRET_KEY— a Stripe secret key; never expose it to browser code.STRIPE_PRICE_ID— the fixed one-time EUR 5.00 Price used for issuance.STRIPE_LIVEMODE—truefor live Stripe resources,falsefor test resources.MPA_PUBLIC_URL— the absolute/instrument-mpa/URL Stripe returns to.
The configured Price must be EUR 5.00. The API validates the resulting Checkout Session's amount, currency, line item, payment state, and live/test mode before it authorises construction. V1 intentionally has no webhook or server-side recovery store: a paid return without its retained local draft requires manual support.
Run all serverless function tests with:
npm test