dctx1.3.1
Playground

Playground

Run the real dctx 1.3.1 on a bundled sample or on text files you paste. Each run gets a fresh directory and an empty environment, and is limited to 3 s, 2 s of CPU and 256 MiB; nothing is stored. Commands are checked against the CLI's own options and never reach a shell.

Place

Without JavaScript the form opens the result as a page.

dctx
# results appear here

API

  • GET /api/v1/health Version, sample count and limits
  • GET /api/v1/samples The bundled sample projects
  • POST /api/v1/run Run one dctx command
  • POST /api/v1/run-form The same as /run for an HTML form, answered with an HTML page
  • GET /api/v1/metrics.json Counters: runs, cache hits, timeouts, refusals by reason, median run time
  • GET /api/v1/openapi.json This document

Recorded runs

Captured at build time on the kiosk sample; the playground returns the same bytes for the same command.

dctx map find greet

recorded on kiosk
$ dctx map find greet# kiosk finds:src/util.rs#greet	fn	L2-4s:web/app.ts#renderGreeting	fn	L10-12# exit 0 · 79 bytes · ~23 est. tokens

dctx map neighbors s:src/util.rs#greet --edge calls --dir in

recorded on kiosk
$ dctx map neighbors 's:src/util.rs#greet' --edge calls --dir in# kiosk neighborscalls:in:s:src/main.rs#main	fn	src/main.rs	L7# exit 0 · 64 bytes · ~19 est. tokens

dctx map skeleton src/store.rs

recorded on kiosk
$ dctx map skeleton src/store.rs# kiosk skeletonm:src/store.rs	module	L1-24	src/store.rss:src/store.rs#Order	struct	L4-8	pub struct Orders:src/store.rs#save	fn	L11-14	pub fn save(order: &Order)s:src/store.rs#encode	fn	L17-19	fn encode(order: &Order)s:src/store.rs#checksum	fn	L22-24	fn checksum(text: &str)# exit 0 · 280 bytes · ~80 est. tokens

dctx map path s:src/main.rs#main s:src/store.rs#save

recorded on kiosk
$ dctx map path 's:src/main.rs#main' 's:src/store.rs#save'# kiosk pathstart	s:src/main.rs#main	fn	src/main.rscalls:out	s:src/store.rs#save	fn	src/store.rs# exit 0 · 99 bytes · ~29 est. tokens