{"uid":"cap_jqP_rjeDDww686qgI1X72","slug":"dt0ur-online-javascript-sandbox-94d73f36","name":"dt0ur.online JavaScript Sandbox","description":"Executes untrusted JavaScript expressions in an isolated, frozen Node.js VM context with 1000ms CPU timeout and memory bounds.","url":"https://dt0ur.online/api/code/sandbox?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"JavaScript code expression to execute safely"},"language":{"enum":["javascript","js"],"type":"string","default":"javascript"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9z-_wcq9af-vnYmNj6wv3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes untrusted JavaScript expressions in an isolated, frozen Node.js VM with a 1000ms CPU timeout and memory constraints","exampleAgentPrompt":"Can you run this JavaScript expression for me in a safe sandbox: `[1,2,3,4,5].reduce((acc, n) => acc + n, 0)` and tell me the result?","exampleUseCases":[{"title":"Evaluate dynamic math formula","prompt":"I need you to compute `Math.pow(2, 10) + Math.sqrt(144)` using JavaScript — just run it safely and give me the result."},{"title":"Test user-submitted JS snippet","prompt":"A user submitted this JS snippet and I want to run it without risking anything: `const arr = [3,1,4,1,5]; arr.sort((a,b)=>a-b); arr` — can you execute it in a secure sandbox and return what it produces?"},{"title":"Prototype a quick algorithm","prompt":"Run this JavaScript for me in an isolated environment: `function fib(n){return n<=1?n:fib(n-1)+fib(n-2);} fib(10)` — I just want to know the output."}],"resultDescription":"Returns the result of executing the provided JavaScript expression within an isolated, frozen Node.js VM context. The response includes the computed return value or output of the expression. If the code exceeds the 1000ms CPU timeout or violates memory bounds, an error is returned instead.","failureModes":["Code exceeds 1000ms CPU timeout — returns a timeout error","Memory bounds exceeded — returns an out-of-memory or resource limit error","Syntax errors in the submitted JavaScript — returns a parse/syntax error","Attempts to access restricted globals or APIs in the frozen VM context — returns a reference or access error","Empty or missing `code` field — returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need to safely execute untrusted or dynamically-generated JavaScript snippets without risk to the host environment. It is ideal for evaluating user-submitted code, computing algorithmic results on the fly, or prototyping JavaScript logic without a local Node.js runtime. The frozen VM context and hard CPU/memory limits make it appropriate for multi-tenant or agent-driven scenarios where isolation is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:39:28.309Z","isFirstParty":false,"canonicalSlug":"dt0ur-online-javascript-sandbox-94d73f36"}