Trinket
Open source · browser-based · for education

The key to open education

Trinket lets students and educators write and run code directly in the browser — Python, HTML, Java, R and more. No installs, no friction, just code.

Everything you need to teach with code

A complete coding environment, reimagined for the classroom.

Browser-based editor

A full VS Code-grade editor (Monaco) in the browser. Nothing to install — students just start typing.

Run code instantly

Execute Python, HTML/CSS/JS and more right inline. Output appears next to the code, no setup required.

Share & embed

Every trinket gets a short link and an embed code. Drop interactive examples into any webpage.

Build courses

Compose lessons with embedded, runnable trinkets to create interactive coding curricula.

Fork & remix

Start from any public trinket. Fork it into your account and make it your own in one click.

Modern stack

Next.js 16, tRPC, Better Auth, Upstash QStash and Vercel Blob — fast, typed, and serverless-ready.

Many languages, one editor

Pick a language and start a trinket in seconds.

Ready to start?

Spin up a trinket and run your first program right now. It’s free and open source.

Launch the editor