JavaScript Playground
Dashboards, JSON pipelines & Chart.js
Run JavaScript in a Web Worker with built-in CSV parsing, groupBy/sumBy helpers, and Chart.js rendering — the same stack powering modern data dashboards and full-stack analytics apps.
What you get when you open Code Studio.
Script editor
Monaco editor with console output and chart images
File explorer
main.js / main.ts plus mounted data files
⌘/Ctrl+Enter
Run the script from the keyboard or toolbar
Cheatsheet insert
Drop common snippets into the editor in one click
Opens in the Code Studio workspace.
// sales.csv loads from the Data panel
const rows = loadCSV("sales.csv");
console.log("Loaded", rows.length, "rows");
console.log(rows[0]);
const byRegion = groupBy(rows, "region");
for (const [region, group] of Object.entries(byRegion)) {
console.log(region, "→ revenue:", sumBy(group, "revenue"));
}
await renderChart({
type: "bar",
data: {
labels: Object.keys(byRegion),
datasets: [{
label: "Revenue",
data: Object.values(byRegion).map((group) => sumBy(group, "revenue")),
backgroundColor: ["#3b82f6", "#f59e0b", "#10b981", "#ef4444"],
}],
},
options: { plugins: { title: { display: true, text: "Revenue by Region", color: "#cbd5e1" } } },
});