delta-script-prompt is a prompt-to-delta-script generator. A script author describes a desired change in a prompt, submits it, and receives a generated delta script they can read and inspect. The product's intent is narrow and exacting: turn a found instruction (the prompt) into a coded artefact (the delta script) and present that artefact as the hero subject — a printed plate, not a chat reply.
The audience is script authors who want a precise, inspectable change specification rather than a conversational toy. The emotional register is cool, exacting, and slightly archival: sparse metadata, one diagram doing all the work, and a single spot colour that carries meaning.
This document is the System Requirements Document for the product. It specifies the two accepted pages (Landing and Generator), the single accepted persona (Script Author), the generation lifecycle, and the visual and technical constraints that govern delivery.
delta-script-prompt is a small, two-surface web application backed by a shared FastAPI service. The Landing page is an anonymous public entry that explains the prompt-to-delta-script generator and routes to the generator. The Generator page is an anonymous, cohesive workspace where the Script Author enters a prompt, triggers generation, and views the resulting delta script in a dark code plate.
The backend calls a model provider through a LiteLLM gateway to produce the delta script from the submitted prompt. Application-owned persistent data lives in MariaDB; LiteLLM keeps its own state in PostgreSQL. The frontend is a React application.
Actors: one active human persona, the Script Author. The model provider (reached via LiteLLM) is a non-persona system actor that performs generation on the backend's behalf.
Removed from scope
The product is delivered as a first-party web application with custom UI. Both accepted surfaces — Landing and Generator — are anonymously reachable; no account, sign-in, or identity establishment is required or implied by the accepted requirements. The Script Author's work is a single-session interaction: enter a prompt, generate, read the output. No durable per-user history, saved library, or account continuity is accepted, so none is introduced.
Generation is performed by the backend through the provisioned LiteLLM gateway. The model provider is an external dependency owned outside this product; the product owns the prompt input, the generation request, the loading and error states, and the presentation of the returned delta script. The delta script output is treated as a printed artefact rendered in a dark code plate with line numbers and an orange caret.
Everything described here is current. No future-horizon capabilities are accepted.
Not applicable — no reference directive with content_source was supplied.
DELTA / SCRIPT set small and letterspaced in the top-left, a full-viewport-width hairline rule beneath it, a large centred geometric delta diagram (~420px, 1px black strokes, one orange node) in a vast quiet bone-paper field, and a narrow right-hand column of small uppercase metadata (PROMPT IN · DELTA OUT · REVISION CODED) aligned to the baseline grid. A numbered caption 00 LANDING sits above a full-bleed hairline rule.Open the generator → link, set at body size, flush left under the diagram, navigating to the Generator.#141414 at 20% opacity, edge to edge.#141414 lines, one #E4571F node; the only orange on the page besides the entry link.01 PROMPT, 02 DELTA SCRIPT) with a hairline rule running edge to edge above it. The active pane's rule is thickened to 2px and tinted orange as a wayfinding device.#141414 ground, #F2F0EB text, JetBrains Mono 13px at 1.6 line-height, line numbers in muted grey, and a 1px orange caret blinking at the insertion point.02 DELTA SCRIPT caption and no code.FR-1 — Generate a delta script from a prompt (explicit) As a Script Author, I should enter a prompt describing a desired change and submit it so that the system generates a delta script from it.
FR-2 — View the generated delta script output (explicit) As a Script Author, I should view the generated delta script so that I can read and inspect the resulting change specification.
#141414 ground, #F2F0EB text, JetBrains Mono 13px at 1.6 line-height, line numbers in muted grey, and a 1px orange caret at the insertion point.FR-3 — Reach the generator from the public entry (required_inference) As a Script Author, I should understand what the product does from the Landing page and open the generator from it.
Open the generator → link.DELTA / SCRIPT wordmark top-left, a full-width hairline rule, the large centred delta diagram with its single orange node, the right-hand metadata column (PROMPT IN · DELTA OUT · REVISION CODED), and the 00 LANDING caption above its rule.Open the generator → link.01 PROMPT above the rule with the prompt field, and 02 DELTA SCRIPT below with an empty framed output plate.Muse: Peter Saville. Headline: One coded artefact, a lot of silence, and a spot colour that means something.
Mode: Light mode as the primary surface; dark code inserts inside the output plate.
Colour tokens (exact):
| Role | Hex | Usage |
|---|---|---|
| Background | #F2F0EB | Bone-paper ground |
| Surface | #E7E4DD | Slightly darker card stock |
| Text | #141414 | Near-black ink for all type and rules |
| Primary | #141414 | Primary ink |
| Accent | #E4571F | Factory-orange spot colour — active state, output caret, the single diagram node only; never a button fill everywhere |
| Muted | #6E6A63 | Warm grey for metadata and line numbers |
| Code ground | #141414 | Dark code plate ground |
| Code text | #F2F0EB | Code plate text (contrast above 7:1 at body size) |
| Code caret | #E4571F | Orange caret in the code plate |
Typography:
Shape language: Almost no radius — 0px on panels, 2px on inputs and the generate control. Hairline rules at 1px in #141414 at 20% opacity, full-bleed horizontal dividers edge to edge, and one thin 1px framed plate around the output. No shadows, no pills, no blobs.
Layout: Strict 12-column grid on bone paper with a wide left metadata rail (columns 1–3) holding small uppercase labels and numbered steps, and a dominant right field (columns 4–12) holding the prompt and the output plate. Landing is a single centred artefact — an oversized abstract delta mark — with silence around it and metadata blocks aligned to the baseline grid. The Generator is a two-pane split: prompt above a horizontal rule, output plate below, each with its own numbered caption (01 / 02) in the rail.
Imagery: One abstract diagram as the identity — a thin-stroke geometric delta/triangle derived from a data-flow schematic, drawn in 1px #141414 lines with a single orange node. Output rendered in a dark code plate with line numbers. No photography, no illustration, no stock people.
Accessibility: Readable text and controls stay whole at 375px, 768px, and 1280px, wrapping or scaling (e.g. clamp(...)) to fit; no element covers any part of them. The generic indigo/blue-on-white SaaS template is forbidden.
The Landing first screen is not a SaaS hero — it is a record sleeve. A bone-paper field (#F2F0EB) carries the wordmark DELTA / SCRIPT set small and letterspaced in the top-left, with a thin rule running the full viewport width beneath it. The dominant element is a large centred geometric delta diagram (~420px, 1px black strokes, one orange node) sitting inside a vast quiet field — roughly 60% empty bone-paper space. To its right, a narrow column of small uppercase metadata (PROMPT IN · DELTA OUT · REVISION CODED) aligns to the baseline grid. The only orange on screen is the diagram node and a single underlined Open the generator → link set at body size, flush left under the diagram. Nothing is centred as a headline-plus-button stack; the composition reads like a printed plate.
Signature moves carried through the product:
00 LANDING, 01 PROMPT, 02 DELTA SCRIPT) with a hairline rule running edge to edge above it.Interaction Model: Static Motion Tempo: still Hero Dimensionality: flat
Landing Hero Motion Brief
#141414 strokes, one #E4571F node) centred in the bone-paper field, with the wordmark top-left and the metadata column to its right.Open the generator → link is the only transition, carrying the Script Author from the diagram to the prompt field.DELTA / SCRIPT top-left, full-width hairline rule beneath, the delta diagram centred with its one orange node, metadata column right-aligned to the baseline grid, and the underlined entry link flush left under the diagram.#F2F0EB on #141414).prefers-reduced-motion, fades collapse to instant swaps and the caret is static.backend, database, frontend, litellm, and postgres.

No comments yet. Be the first!