You can start using TenkJS as soon as you open the website. The main page is a feed of tiny JavaScript creations called tenks, and each one runs directly in your browser. Some are animations, some are games, and some are experiments that respond to a tap, drag or key press.
This guide walks through the everyday controls, then takes you from a first JavaScript file to a published tenk. You do not need to write code to enjoy the first half. If you want an introduction to the idea behind the platform, read What is TenkJS? first, or come back to it after exploring.
1. Start with the main feed
Open the homepage and let the first tenk load. Look at the creation, its title and its description before moving on. A short instruction such as “tap to restart” or “drag to draw” can make the difference between watching an idle screen and discovering the whole idea.
On a desktop, scroll to move through the feed. On a touch screen, swipe. You can also use the site's previous and next buttons, and the up and down arrow keys when the feed receives them. If a creation uses those keys itself, the visible navigation buttons provide another way to move on.
2. Try the creation's own controls
Give an unfamiliar tenk a moment before deciding it does nothing. Move your pointer over it, tap once, or try the interaction mentioned in its description. A game may be waiting for a first action, while a drawing experiment may only reveal itself when you drag.
Remember that a tenk can consume a gesture for its own purpose. A swipe inside a drawing toy might draw rather than change the feed. Use the surrounding area or the navigation controls when that happens. On a phone, try holding the device comfortably and keeping accidental scrolling separate from the action you are trying to perform.
3. Switch between Latest and Trending
Use Latest near the top of the page to browse newly published creations. Featured work can also appear prominently in that view. Choose Trending for a different ordering influenced by likes, views and how recently a tenk was published.
These views are useful starting points, not permanent commitments. You can switch whenever you want a different selection. If you are returning after a few days, Latest is a good way to look for recent additions. If you are new and want somewhere to begin, Trending can help you find work that has already attracted attention from other visitors.
4. Use Browse to find something specific
Open the side panel using the panel toggle, then select Browse. The search box looks across tenks, creators and tags. Start with a simple word connected to what you want to see, such as “space,” “game” or “particles.”
The tag buttons offer another way to narrow the results. Select a relevant tag, then choose a result to play it. If nothing appears, remove the active filter or broaden your search. You may be combining a search term and a tag too narrowly. The Live tab in the same panel is useful for seeing recent activity and the currently playing tenk.
5. Replay something you want to try again
Use the replay control to restart the current creation. This is helpful for a short game, an animation with an interesting opening, or a simulation you want to observe from the beginning. The site's keyboard shortcut is R, when the feed handles that key.
Replaying gives you a fresh run, but a tenk may use randomness, so the next attempt can look different. If you are investigating how something works, compare what changes with what stays consistent. That is often a useful first clue about which parts come from fixed rules and which parts come from generated values.
6. Like and share your favourites
Press the like control, or L when the feed receives the shortcut, to show appreciation. The website remembers liked tenks in your browser, so do not rely on that as a collection that automatically follows you to another device.
To keep a reliable reference, share or save the tenk's link. The share control can copy its address or use the device's sharing interface where supported. Individual tenks have addresses under /t/, which take someone directly to that creation. Test the copied link if you are including it in a message, and add a short note explaining the interaction your friend should try.
7. Open View source when you are curious
Choose View source to inspect the JavaScript for the current tenk. Start with something visible: a colour, the number of particles, a drawing command or the event that handles a click. You do not need to understand the whole file at once.
If the code is compact, focus on one small section and connect it to the effect on screen. For example, a repeated drawing call might explain a trail or a field of shapes. Use what you learn to build your own experiment, while respecting the original creator and any licence attached to their work. Reading code is a starting point for understanding, not automatic permission to republish it.
8. Make a tiny first file
When you are ready to create, start with one JavaScript file. The environment already provides a canvas called c. This example draws an animated circle without external assets or libraries:
const ctx = c.getContext('2d');
function draw(time) {
const w = c.width;
const h = c.height;
const size = Math.min(w, h);
const x = w / 2 + Math.sin(time / 900) * size * 0.25;
ctx.fillStyle = '#101024';
ctx.fillRect(0, 0, w, h);
ctx.fillStyle = '#ff659d';
ctx.beginPath();
ctx.arc(x, h / 2, size * 0.08, 0, Math.PI * 2);
ctx.fill();
requestAnimationFrame(draw);
}
requestAnimationFrame(draw);
Save it as something like moving-circle.js using a plain-text code editor. It belongs in a JavaScript file, without surrounding HTML or Markdown fences. The drawing uses the actual canvas dimensions, so the circle remains proportional as the available frame size changes.
9. Check the file size and dependencies
The upload limit is 10,240 bytes for the JavaScript file. Check the saved file's size rather than estimating from the number of lines. A small readable example is a better starting point than an elaborate project that already exceeds the budget.
Keep the experiment self-contained. It cannot rely on fetching a remote image, loading an arbitrary external script or contacting your own server. If you need one of the libraries offered by TenkJS, select it on the submission form. The example above needs none. Sound effects use the supported ZzFX library and require viewer interaction before playback; ordinary unrestricted browser audio is not the intended route.
10. Open Submit and choose an orientation
Go to Submit, choose your .js file and select portrait or landscape. Portrait suits a tall composition; landscape gives you a wider stage. Choose the format that makes the idea clear rather than treating either one as a quality setting.
Consider the actual device a viewer may use. A tiny target that works with a mouse may be frustrating under a finger. A wide scene may need larger details to remain readable on a smaller screen. Even with one selected orientation, base your drawing on the canvas dimensions and leave enough room around important controls or action.
11. Read the checks and use the preview
The submission page checks your file and lets you test it in a sandbox preview. Treat this as part of making the tenk, rather than a final administrative step. Run it, interact with it, replay it, and notice whether the first few seconds explain the idea.
If validation reports a problem, read the message and any line number before changing the code. Common causes include unsupported network or storage access, code generated from strings, and dependencies the sandbox does not allow. Fix the underlying behaviour and upload again. Passing validation is useful, but you still need to check that the creation actually looks and behaves as intended.
12. Add clear discovery information
Give your tenk a title of up to 60 characters. Use the description, up to 280 characters, to explain what happens and how to control it. A practical description might be: “Drag to steer the pink circle. Replay to start again.”
Add relevant tags, up to five, and an optional creator name. Choose labels a visitor would reasonably use to find the work. Avoid filling the description with claims that do not help someone play. Check the content policy before submitting, and use content you have the right to share. A clear presentation helps both viewers and the people reviewing submissions.
13. Submit and verify your email
Enter an email address you can access, complete the submission, and look for the verification message. Your email is used for the publishing and ownership flow, rather than being displayed publicly as your creator name.
Follow the verification link within its three-day lifetime, then use the confirmation button on the verification page. Opening the email alone does not publish the tenk. Depending on the site's settings, verification either makes it live or moves it into the approval queue. If it does not appear immediately, check the status shown by the site before uploading the same creation again. Duplicate submissions usually make troubleshooting harder.
14. Keep your master key safe
The submission email includes a master key for later updates. Keep that message and store the key somewhere private. Together with the original submission email address, it proves that you are allowed to replace the tenk's code.
Do not paste the key into the public description, source code, a screenshot or a shared troubleshooting message. Save your own readable source file as well. If you create a minified upload, keep the unminified original and note which version you published. That small habit makes it much easier to fix a bug or return to an experiment after a break.
15. Update a published tenk
Choose Update code and enter the tenk's link or slug. The site finds the submission and presents its update form. Authenticate using the original email address and master key, then upload the replacement code and use the available checks and preview.
Test the specific behaviour you changed, along with the basic experience that already worked. If you adjusted pointer input, try a normal click and a drag. If you improved layout, check another frame size. Submit the update when you are satisfied. Updating the existing tenk is the appropriate route for a revised version of the same creation, rather than posting a duplicate for each small fix.
If something does not work
Start by separating a website problem from a problem with one tenk. Try another creation. If that works, replay the original and reread its controls. A particular experiment may need a tap, use a different input, or perform poorly on your device.
If the whole feed is unresponsive, check your connection and reload the page. For a submission problem, keep the exact validation message and the file you tested, then fix one issue at a time. For an update problem, check the original email and key carefully rather than repeatedly guessing. Several incorrect authentication attempts can temporarily lock further attempts, so pause and verify your details before trying again.
A useful first-session plan
For a comfortable first visit, explore a handful of tenks, try one search, replay a favourite and open its source. If you want to create, save the circle example, change its colour or movement, and test it on the submission page before adding more features.
Aim for one complete interaction that works well. You can improve the design after seeing it in the real frame and trying it on another device. When you are ready, submit your tenk, verify your email and keep your update details safe. That gives you the whole cycle: discover an idea, make a small experiment, share it, and return to make it better.