Show HN: Ggplot2 chart playground – in the browser with WebAssembly

2 hours ago 2

Interactive R data visualization in the browser using WebR (R in WebAssembly) and ggplot2 (the best charting library ever).

WebR ggplot2 Playground Screenshot

A web application that runs R code directly in your browser - no server required. Features live code editing, CSV upload, and interactive plots. Try it online at quesmaorg.github.io/webr-ggplot-playground.

For more context, see our recent blog post on sandboxing AI-generated code.

MIT License. Vibe-coded by Piotr Migdał from Quesma.

Prerequisites:

# Clone repository git clone https://github.com/QuesmaOrg/webr-ggplot-playground.git cd webr-ggplot-playground # Install dependencies pnpm install # Start development server pnpm dev # Build for production pnpm build
  1. Open http://localhost:5173 in your browser
  2. Select an example or write your own R code
  3. Upload CSV files via drag & drop
  4. Click "Run Code" to execute
Read Entire Article