▶ Watch
How to submit

Ship your first tenk.

One JavaScript file, 10 KB or less, no account needed. Here's everything you need to know to get your creation into the TenkJS feed.

1. Write your JavaScript

Your tenk runs inside a page that's already set up for you:

A tiny starting point:

const x = c.getContext('2d');
let t = 0;
(function loop() {
  x.fillStyle = 'rgba(5,5,10,.2)';
  x.fillRect(0, 0, c.width, c.height);
  for (let i = 0; i < 60; i++) {
    const a = i / 60 * Math.PI * 2 + t;
    x.fillStyle = `hsl(${i * 6 + t * 50}, 90%, 60%)`;
    x.fillRect(c.width / 2 + Math.cos(a * 3) * 200, c.height / 2 + Math.sin(a * 2) * 200, 6, 6);
  }
  t += 0.01;
  requestAnimationFrame(loop);
})();

2. Keep it under 10 KB

The limit is 10,240 bytes for the whole file. Minifiers such as Terser help, and for extra headroom many creators use tricks from code golf: short variable names, reusing maths, and generating content procedurally instead of storing it. You don't have to golf: plenty of great tenks are just tidy, readable code.

3. Stay inside the sandbox

Tenks run in an isolated sandbox. Uploads that use any of these are rejected automatically:

Everything else that runs on a canvas, from 2D drawing to WebGL shaders, is fair game.

4. Upload and preview

On the submit page, drop in your .js file. It's checked instantly and runs in a live preview, so you can see exactly what viewers will see. Any problems are listed with a plain-English explanation so you can fix them and try again.

5. Pick portrait or landscape

6. Make it discoverable

7. Verify your email and go live

Enter your email and we'll send you a verification link. Click it within 3 days and your tenk is published to the feed. Your email is never shown publicly. Nothing is published until you verify.

The same email contains your master key. Keep it safe: together with your email, it lets you post new versions of your tenk later from the update page. We can't show you the key again.

Tips for a great tenk

Something went wrong. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.