temporalio/samples-typescript — reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript repo that acts like a cookbook of small Temporal samples I can run locally to learn the SDK. I want each example in its own folder, with a tiny README and simple commands, starting with a basic hello world and then a spread of real patterns like activities, cancellation and heartbeating, dependency injection, timers, signals and queries, schedules, child workflows, continue as new, search attributes, worker specific queues, patching, environment based config, logging, and a production style build example.
Please make it easy to start with a local Temporal dev server and Node 18 or newer, and make the basic sample runnable with one command for the worker and one for the workflow trigger. If it makes sense, set it up as a workspace repo so each sample can be run on its own without too much ceremony.
Keep the examples short and practical, with comments that explain what the user should notice. You can look up current Temporal TypeScript docs online if you need to.
Want more depth? Deep Reverse