Skip to content

This repository serves an index.html page that can run arbitrary js code. Thus, this github account doesn't serve any other pages to ensure isolation.

License

Notifications You must be signed in to change notification settings

isolated-playground/isolated-playground.github.io

Repository files navigation

Isolated Playground

A minimal Vite + TypeScript playground that executes base64-encoded JavaScript from URL parameters.

Usage

Access the playground with a jsSrcBase64 query parameter containing base64-encoded JavaScript:

https://isolated-playground.github.io/?jsSrcBase64=<base64-encoded-js>

Example:

// To encode: console.log('Hello World!')
// Base64: Y29uc29sZS5sb2coJ0hlbGxvIFdvcmxkIScpOw==
// URL: https://isolated-playground.github.io/?jsSrcBase64=Y29uc29sZS5sb2coJ0hlbGxvIFdvcmxkIScpOw==

Development

# Install dependencies
npm install

# Start dev server
npm run dev

# Build for production
npm run build

Deployment

The app automatically deploys to GitHub Pages when changes are pushed to the main branch.

About

This repository serves an index.html page that can run arbitrary js code. Thus, this github account doesn't serve any other pages to ensure isolation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published