Go to example tasks
JavaScript code runner for JSON transformations
Created by
Automation Lab
Execute a JavaScript JSON transformation in a bounded sandbox and export structured stdout, status, timing, and errors.
AI Code Runner Sandboxautomation-lab/ai-code-runner-sandbox
Batch index
Execution ID
Status
Language
+6 fieldsTextNumberBooleanListObject
Input
🧩 Runtime language:javascript
Code:const chunks=[]; for await (const c of process.stdin) chunks.push(c); const x=JSON.parse(Buffer.concat(chunks).toString()); console.log(JSON.stringify({total:x.values.reduce((a,b)=>a+b,0)}));
Standard input:[object Object]
Parse stdout as JSON:true
⏱️ Execution timeout (seconds):5
Output fields
Batch index
Execution ID
Status
Language
Exit code
Duration (ms)
Standard output
Standard error
Parsed result
Executed at
Sign up on Apify01
Create your Apify account to access the AI Code Runner Sandbox.
Start the run02
The Actor will start running based on the input automatically.
Receive the output03
Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.
Integrate into your workflow04
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.
