About this site

It is built with the framework it shows.

Hosting

This site is hosted on GitHub Pages, which cannot send custom headers. The playgrounds still run sandboxed, without network access. A host that sends headers adds a few protections; the Hosts page lists them.

What still holds

  • Every sandbox frame carries its policy in a meta tag as well.
  • The frame's sandbox attribute keeps it on an opaque origin. A playground's code has no network and cannot reach this page. Escape tests in Chromium, Firefox and WebKit cover this.
  • This page's own policy is a meta tag too, and it forbids inline styles and scripts, other than by hash.

What is missing

  • frame-ancestors and sandbox as headers. Another site could embed the frame documents and run code in them under playgroundkit.github.io. That code would still have no network. It could read only that origin's IndexedDB, where saved programs are kept.
  • A meta policy cannot carry frame-ancestors.
  • GitHub Pages caches every file for 10 minutes, so a new version can take that long to appear.

Saved code

Some playgrounds keep your edits in this browser (localStorage), so they are still there after a reload. Nothing is sent anywhere. Clear the site's data to remove them.

Made of

  • code-playgrounds and languages, built with Nix.
  • Astro, Solid and Tailwind. The pages are static; the interactive parts are Solid islands.
  • Fonts: Literata and JetBrains Mono, under the SIL Open Font License 1.1.
  • This site's source is free software under the GPL-3.0-or-later.