Home · Berk Studio · Web Designer
Web Designer — an API server from a route table
The route table is the single source of truth: a runnable pure-BERK HTTP API server, OpenAPI schema, TypeScript client and SQL migration are generated from it, and security and determinism are verified along proof axes. It is not a page (HTML/CSS) designer.
Back end / APIOpenAPI 3.0RBAC · JWT · CORSReplay · contract · DST proof
Screens
Inside the panel
Route table, entities, security analysis, generated code and live server.





Design
Routes and data model
- ✓Route table — GET/POST/PUT/PATCH/DELETE,
/resource/:idpatterns, handler, roles, body schema; single source.berkweb - ✓Entities — field types (text/integer/number/boolean/array), required fields; 5 CRUD routes per entity with body schema derived automatically
- ✓OpenAPI import — derive the route table from an OpenAPI 3.0 JSON document
- ✓Version diff — breaking-change report against an older
.berkweb(BREAKING / WARNING / INFO)
Security
Policy and open-door detection
- ✓RBAC matrix — route × role; write routes without a role are listed as OPEN DOORS
- ✓Policy — CORS origins, JWT secret reference, secure headers; injected into the generated code
- ✓Static analysis — conflicting/ambiguous route detection
Generation and proof
Code, persistence, tests
- ✓Code generation — runnable pure-BERK
@routeserver; deterministic SQL migration; typed TypeScript fetch client (JWT handling) - ✓WAL persistence — real business logic in entity CRUD endpoints with crash recovery
- ✓Deployment profiles — development/test/production (host, port, workers)
- ✓Proof — 13 axes: route conflicts, invalid routes, body-constraint syntax, relations, RBAC, JWT reference, OpenAPI, DST (order independence), contract golden (tests library behaviour; generated handlers are not tested separately), replay (trace → PASS/FAIL), production gates, fuzz, native trust boundary; PROOF STATUS in one report
- ✓Live server — start/stop the generated server on berk.exe, request console, log
- ✓AI assistant (approval mode) — 36 tools (16 read + 20 approval); with 3 Education tools the assistant sees 39. Tools that change things (write tools) and the run tools (fuzz, role matrix, trace capture, replay, production gates) go to an approval window; “Approve all requests in this session” grants approval for that window session only and is not written to settings; a refusal or timeout is reported with the tool name. The live bridge follows the same rule; the file command channel does not write without approval; external command channel
With 1.1.0
Web improvements and packages
- ✓Body constraints — field constraints (e.g. integer range, value list) are applied in the generated server and in the contract golden even when the security policy is on; an out-of-range value was rejected on the live server. A fractional range bound on a decimal field cannot be applied and is rejected with a named error
- ✓CORS preflight — for an allowed origin the OPTIONS response carries
Access-Control-Allow-Headers: authorization, content-typeandMax-Age(for a browser client with JWT); for a disallowed origin noAccess-Control-*header is written; verified by live HTTP header measurement - ✓Library version notice — production gates and live-server start name a function missing from the selected standard library together with the required package version (the gate FAILS and the live server is not started); project export reports it in the status line and still writes the files
- ✓Packages — the web, http and crypto packages do not come with the installation; they are installed with BPM. The minimum versions are checked when the Web API Designer opens (http 1.1.0, crypto 1.1.0) and, if a package is missing or older, you are directed to the Package Manager; the assistant knows the required packages and minimum versions from the production table
- ✓Strict validation — the native trust boundary is derived from the selected standard library; handler and path-parameter names that collide with helper names in the generated code are rejected; an out-of-range port/worker profile is not created;
crud_uretandvarlik_eklereport the reason for a refusal by name
Scope note: HTML/CSS/JS page design, a component library and live page preview are not part of this panel; there is no external database driver configuration.