Documents

The topics, specs and stories in this project, linked to each other, to classes and to objects.

TilesList
20
NameFirst sentenceTags
DesignThe design of d2pro: the mechanisms that realise its specification, for any code base#ai #design
DesignRoutesThe API of d2pro as designed: conventions and the routes each feature uses#ai #design #routes
FlowsGuideA flow is what d2 does when something happens: a message comes in, the rules that handle it run, one statement after another, and each can send more messages. The shop's #shop #guide
HomeThe pro demo: a small online shop that sells coffee gear, with its model, sample data and flows. It's a wiki topic, Home, like every project's start page: change it any t
LandingThis is a project on d2: a notebook and an app in one, built with an AI.
shopA small online shop, Grindstone Coffee Gear, as a domain model: what it sells, who buys, their orders, and how orders get to them. Its sample data is in shop-samples; wha#shop
shop-cartsTwo flows about carts. A new cart tells the shop who's shopping. Abandoned carts runs once a day (a cron, declared in Init): any cart still open after 48 hours is marked #shop
shop-flowsEach shop flow, run by hand on the sample data (in the [Fiddle](/fiddle?tab=stories&topic=Story:shop-flows), nothing is kept). The triggers in Init start the same flows w#shop
shop-notifyEvery message the shop sends goes through this one rule. Here it keeps the message in the shop's outbox (a Message object, see shop), so the demo shows what would go out #shop
shop-ordersOrder placed. When an order is created, the shop issues its invoice, reserves the stock for each line (from the first warehouse that has enough), checks whether that left#shop
shop-samplesSample objects for shop: Grindstone Coffee Gear, a made-up shop with 12 products, 6 customers, carts, orders in each status, two warehouses and a return. Each $object Cla#shop
shop-shippingShipped. When a shipment's status becomes shipped, its order is marked shipped and the customer gets the tracking number.#shop
shop-stockLow stock. When a stock level drops below its reorder point, whoever runs the shop hears about it, with the supplier to call and how long they take to deliver. It runs wh#shop
SpecThe specification of d2pro: what it does, as its users and AIs meet it#ai #spec
SpecTestThe black-box tests of d2pro: at least one per spec line, each run as a person#ai #test
SpecUiThe UI specification of d2pro: how its UI behaves — screen flows, layouts, what each page shows#ai #specui
WelcomeThis is d2pro, the pro demo: a small online shop that sells coffee gear, built on d2. Everything here is made up and resets on every update, so try anything.
Common topics
AgentHintsthe quirks of this build an AI agent should know#help #agents #ai #inherited
ExampleAiPromptsSample prompts to give your AI, and what came back, by kind of user#ai #examples #inherited
HelpShort how-tos, each a few steps. Pick what you want to do; the guides below go deeper.#inherited

Trash: deleted topics, kept 30 days.