JS1k: The JavaScript code golfing competition

2019 - Ten Year Js1k!

Home   Rules   Demos   Submit Mailing list  |  Update demo meta data  |  The /r/js1k subreddit JS1k, the yearly JS code golfing competition

Check out demos from previous editions too! 2010 , 2010 , 2011 , 2012 , 2013 , 2014 , 2015 , 2016 , 2017 , 2018


Worm Trap

By Oliver Güther
( @MagnitudoOrg, website )

Click to free the worms. Multiple clicks to accelerate. Worms get trapped again, if they hit the box.


1k-physics

By rodrigo

a simple 2d physics engine


Upper Class Worms

By Oliver Güther
( @MagnitudoOrg, website )

Click and hold a mouse button to open the barrier. Try to get all worms to the upper layer.


Superdisco

By Piesku
( @pieskucom, website )


Maximum overcast

By Siorki
( @Siorki )

Move with arrows. Smoother remake of my 2013 entry, but the weather is not as nice this year.


X-Painter

By Fabio Vergani

Move mouse and make your artwork: right click and save the image. Left click: stop and go.


ZzFX - zmall zoundz

By Frank Force
( @KilledByAPixel, website )

ZzFX - A zmall open zource zound fx maker for your java zcript gamez


Magical Light Tunnel

By Jani Ylikangas
( @jylikangas, website )

Your treasure lies beyond the crystal cave...


X Marks the Spot

By Richard Sudaryono
( @gamehelp16, website )

Please read the details first!


Lava Mine

By fishtastic
( website )

Escape from the rising lava. Move and dig with [Arrow Keys].


3D Lissajous Curves

By Oliver Sepsik
( @Calada2, website )

Create unique 3D curves in CSS3D! Rotate them with your mouse


Mandelbrot X

By Oliver Sepsik
( @Calada2, website )

Explore the Mandelbrot set with your mouse. Double click to toggle the corrupted X fractal. Zoom with the mouse wheel and change the iteration with 'Enter' and 'Space'


Colorguess!

By Oliver Sepsik
( @Calada2, website )

Can you guess the RGB composition of a random color? You'll find out in this game!


Dark fluorescence

By Siorki
( @Siorki )

Shadebobs dance to the sound of an electric guitar. Playing time 01:57


Fractal Whirlwind

By Oliver Sepsik
( @Calada2, website )

An animated Julia set in rainbow colors. Use the scroll wheel to change the speed. Refresh for a new experience!


Animated Functions

By Oliver Sepsik
( @Calada2, website )

Math functions transforming into one another. Double click to disable non-continuous functions.


1st Order ODE Graph

By Muhammad Rifqi Priyo Susanto
( @SRifqi )

Draw the slope field of a 1st order ODE and add object (type or click) to trace the equation.


The Digit Dilemma

By Frank Force
( @KilledByAPixel, website )

Push numbers until none are left. Arrow keys Move. Space is Undo.


One thousand Free Cells

By Frank Force
( @KilledByAPixel, website )

FreecCell in 1k with randomly generated card art. What else is there to say?


Mini Riding Light

By xem
( @maximeeuziere, website )

This demo shows the solar system to scale, from the point of view of a ray of light that escapes the sun. Click the planet names on the left to warp near them. Works best on Webkit. Say hi to 🌍 in 8 m…


x gravity

By Ioannis Cherouvim
( @cherouvim, website )

Particles with gravity and collision detection.


Fishy

By Donitz
( website )

Birds of a feather swim together.


Chaos Game

By Lác Neobým Helkár

Click


World Map

By Iwo Kadziela
( @ikadziela, website )

World Map in under 1k. Built with JavaScript, delivered in ASCII. Map Projection: Kavrayskiy VII using Natural Earth and D3. GeoJSON (784kb) to ASCII (14kb) and crushed to JS1k


Andrioli Galaxy tour

By Denys Potapov
( @DenysPotapov, website )

Navigate with mouse with left button down to find bigger stars


scrambled X

By daniele pascal morelli
( @dr_perkele, website )

arrows: move. ctrl+arrows: resize. enter: swirl.


Close the popups

By Evan Hahn
( @EvanHahn, website )

X out of all the popups to win!


1k Snake game

By Alfons Nilsson
( @TC5550_2, website )

Steer the snake with the arrow keys


Chasles theorem

By Igor

Chasles theorem demo


Queen's Gambit

By Frank Force
( @KilledByAPixel, website )

Arrow keys move. Mouse aims. There are 9 levels. God save the ♛!


HoMM1K

By Staś Małolepszy
( @stas, website )

Capture the dragon roaming your kingdom! Click to move your knight. Click the minimap to pan the view.


Factory code

By Max

Welcome in factoryCode. Write your factroy and buy world.


1k Pool game

By Alfons Nilsson
( @TC5550_2, website )

Aim with the mouse and press and release to fire. Try to get all the blue balls into the black holes.


Spaceship Randomizer

By Donitz
( website )

Generate and endless array of random spaceships. Click to generate a new ship.


Xplorer 2019

By Henrique Vianna
( @HenriqueVianna, website )

A & Z to move, Space to fire. Mind your energy! Fly low to recharge. How far can you get?


Infinite Yin Yangs

By Frank Force
( @KilledByAPixel, website )

Meditate on a fractal cascade of infinite yin yangs.


Strigiformes

By Jani Ylikangas
( @jylikangas, website )

Great grey owl, snowy owl, ural owl, long-eared owl and boreal owl. Inspired by Oleksandra Barysheva's art.


MiniMandelbox

By Bálint Csala & Maxime Euzière
( website )

Explorable Mandelbox! Click to start, move the mouse to guide the camera, refresh to see a different "scale" (random between 2 and 3). The scale is shown in the title!


Stealth bomber

By Eugene Lapin
( @kolduras, website )

You are flying a bomber plane and you can destroy everything you see on the ground.


Cruising the 80s

By Jani Ylikangas
( @jylikangas, website )

Synthwave music video. Turn it up, carefully!!! :)


Xenon

By James Wright
( @jamesseanwright, website )

WARNING: has sound! Rotate your ship with the X key to collect Xs before your health runs out.


i feel fine

By Alexander Timoshenko
( @t_vaeringjarson )

rotating tunnel


webgl2 initial support

By Alexander Timoshenko
( @t_vaeringjarson )

stunning graphics, gpu sound right at your fingertips! likely you have to reload the page


Tiny Ski

By Frank Force
( @KilledByAPixel, website )

Ski for your life! Use arrow keys to move. Press enter to restart after dying.


Verlet physics racing simulation

By Alfons Nilsson
( @TC5550_2, website )

I tried to make hill climb racing in 1024b


3D Grapher Calculator

By Lác Neobým Helkár

3D expression visualiser! use X, Y as coordinates, F as frame, x and y as mouse coordinates. Move with mouse


Pixel Art Editor

By Rubén López
( @el_ryu, website )

Use palette and toolbar with the mouse or keys 1,2,3 for tools and 0 for the palette.


X Dive

By Alexander Curtis
( @statenlogic, website )

Bring as many eggs as you can to the surface, and don't run out of air! Use arrow keys to move.


ShadowBoX

By Jani Ylikangas
( @jylikangas, website )

The shadow box comes alive 10 past midnight. Watch out for the spooky owl!


Psychedelic Crosses 2

By Lác Neobým Helkár

X psychedelic fractal but more interesting recursion update. Mouse x = rotation, mouse y = color.


eXploring neural networks

By Lác Neobým Helkár

Little neural networks eXploring the canvas - no interaction


Across The Multiverse

By Ryan Bell
( @iRyanBell, website )

WebGL-based Fractal


MiniTwo3D

By xem
( @maximeeuziere, website )

Choose a color, use the mouse to draw a 3D scene, layer by layer. Click "GO" to go to the next layer. Click "X" to reset. Right-click to erase a pixel/voxel.


Fractal Explorer

By primo

MouseWheel to zoom, Drag to move, Esc to reset. Change the exponent to 4... or -4!


Random recursive drawing

By Lác Neobým Helkár

Random recursive drawing, use cursor as seed


X Roguelike

By Nik Coughlin
( @nrknthuk, website )

Mow down your enemies, find the eXit! Arrow keys to move, bump to use/attack/get


Lost In A Cave

By Roman Lut
( website )

Lost In A Cave. Who is chasing me?!


flux

By Keith Clark
( @keithclarkcouk, website )

A multi-part demo made up of 7 scenes and a soundtrack — click restart if you can't hear anything.


EscApe

By xem
( @maximeeuziere, website )

Type any text, and it will be transformed in 21 different forms (HTML, JS, URL, hex + base64 for many encodings, and UTF-8 vs Windows-1252 Mojibake)


PAC-MAN

By feiss
( @feiss, website )

Use cursors to move Pac-Man, eat cookies and avoid ghosts!


XmX The Board Game

By Manel Villar
( @galchwyn )

A board game where you move the pieces until you capture the oponent. For 2 players.


Xcode - a CoreWars engine

By Peter van der Zee
( @kuvos, website )

Xcode is a Redcode implementation for JS1k to play CoreWars, where two programs ("warriors") battle to the death. Click the core to restart the fight.


Genorama

By Jack Oatley
( @f_oatley, website )

Continuously renders a procedurally generated terrain. The terrain is originally from a game created I helped create for #EnterTheMUD jam.


Mini Unicode Toys

By xem
( @maximeeuziere, website )

This demo performs 25 text transforms in real time. Type anything! The output can be used on any webpage, program or social network. (⚠ Requires Chrome 72+)


Retro Neural Network

By Richard van der Dys
( website )

AI learns to draw the letter X with a multi-layer neural network and some 80's style flair.


1line text raycaster

By michalbe
( @michalbe, website )

One-line text ray-caster, where all you can see is just a line of text. Control with cursors.


r1ckfeverdream

By Per-Olov
( @possan, website )

A Rick Astley fever dream


Blue Marble

By Pedro Amaro
( @n101010k )

Rotating globe showing the Earth, with the radiance from the sun based on the current time and date.


dm1k

By Andrew Esterhuizen

A 1k drum machine and step sequencer with sounds generated using the web audio API


3D Verlet simulation

By Alfons Nilsson
( @TC5550_2, website )

Simple verlet physics engine in 3d


Russian Block Game

By Matthew McKenna

Left, right and down arrow keys to move. Z and X to rotate clockwise and anti-clockwise


Spawn

By Steven Campbell
( @stuckieGAMEZ, website )

You are red. Eat all the others. Click to create new cell within your body. Hold to expand it. You spawn on the left. Do not get eaten yourself. The bigger the window, the better.


ConvChain1k

By K.Chplr
( @kchplr, website )

The input pattern on the left is editable. Click on the result on the right to reset it. This is a simplified 1KB version of the ConvChain vanilla js port. The object of this algorithm is to generate…


Peach1Kastle

By xem
( @maximeeuziere, website )

This demo shows a minimalist reproduction of Super Mario 64's Peach Castle rendered with CSS3D and emoji.


voxel-cat

By Gabor Bata
( website )

X-ray CT scan of a voxel cat.


X

By Michael Himing
( @zlprp, website )

A spinning cube with some patterns and text


Special snowflake

By Piotr Stosur

Find your special snowflake by typing its name.


Period1K 2019

By xem
( @maximeeuziere, website )

This demo represents a detailed periodic table of chemical elements. For the first time, each element has X (10) different pieces information!


Fourier Transform

By Sergey Chernykh
( @sergonaut, website )

Draw your doodle in one stroke and the script will convert it in a set of sinusoids represented on your screen as moving circles.


Guitar synth

By Frederic Charette
( @fed135 )

A guitar synth. Use the keyboard to play the frets.


MiniSynth

By xem
( @maximeeuziere, website )

A 3-octave piano & guitar synthesizer with adjustable note length


FlameJS

By Wim van Iersel
( @banaan666 )

Remake of an Assembly/C demo I created XX years ago. Move you mouse around to draw.


sub👏2👏pewdiepie👏

By Richard Sudaryono
( @gamehelp16, website )

👏SUBSCRIBE👏TO👏PEWDIEPIE👏NOW --> https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw?sub_confirmation=1


Space Fighter Revisited

By Frederic Charette
( @fed135 )

In this new episode, our little ship must now face waves of ennemies. If one gets too close, it's game over. Use the keyboard arrows to rotate and spacebar to shoot!


press x to win!

By bga_
( @bga_ )


Archipelago

By Jack Oatley
( @f_oatley, website )

Renders and animates an island scene.


Moon

By K.Chplr
( @kchplr, website )

Procedurally generate a black and white 2D planet/moon in GLSL. A new one is generated every 10 seconds.


Rainbow Jumping beans

By Spencer Brimley
( website )

Click to spawn beans and watch the show!


Solar System

By Nick Watton
( website )

Model of the sun and 4 inner planets with moons, as they X the sky. Sizes, distances & speeds are approximately correct.


X

By Felipe Alfonso
( @bitnenfer, website )

I wanted to make something with an X. This is a very simple ray tracer using sdf. I've added soft shadows and specular reflections.


SMB1-1k

By xem
( @maximeeuziere, website )

A playable demake of the world 1-1 of Super Mario Bros on NES. Play with arrow keys. You die by touching the enemy or falling in a pit. Wou win by touching the flag. Video: https://twitter.com/MaximeE…


Orbit X

By Nick Watton
( website )

Orbital system, making emergent patterns. Watch for the X.


Fruit Crush Saga

By Josep del Rio
( @joseprio, website )

Use your mouse to select and swap adjacent fruits, and make groups of 3 or more in line to gain points. With persistent high score.


Boxing 1K

By Jason Plackey
( website )

A tribute to the Atari 2600/Activision classic: Boxing. Arrow keys to move, Z and X to swing.


Yars 1K

By Jason Plackey
( website )

A tribute to another Activision classic: Yars' Revenge. Arrow keys move, space shoots and launches the cannon.


Sharked

By Jason Plackey
( website )

Fish the rough waters with a couple of cold ones as you avoid the sharks. Hook a shark or run out of beer, and you're done. Up and down arrows to cast and reel in your line. Requires Unicode 9.0 (2016…


Draw it back.

By Patrice CHASSAING
( website )

Draw your background image. Right-Click on the single element (black borders square upon the clean button) to save it as an image ...


PBR Spheres

By Felipe Alfonso
( @bitnenfer, website )

This is an implementation of basic PBR materials. The X coordinate defines the roughness of material and the Y defines how metallic it is. The implementation is based of Epic Games presentation of 201…


Planet Defense

By K.Chplr
( @kchplr, website )

Simple cartoonish game. Shoot all the meteorites with your turret before they reach the planet. Arrow keys to move the turret left and right, X to shoot, R to restart when the game is over.


Xplode

By Masayoshi Sugimoto

Simulation of soap bubbles. Click to interact.


Emojysics!

By xem
( @maximeeuziere, website )

A 2D physics engine featuring emoji! Click to add an emoji, double-click to add a fixed circle. Video: https://twitter.com/MaximeEuziere/status/1092330191869931521


Moto1kross

By Chris Glover
( @mad_maw )

Driving game, catch your arch-rival!


Planet flyby

By Csala Bálint
( @BalintCsala )

A simple infinite runner. Use your mouse or touch the screen to change the position of the ship. Avoid the asteroids


Nyan Cat 2.0

By Josep del Rio
( @joseprio, website )

Remake of a demo I submitted back in 2014, with added stars: https://js1k.com/2014-dragons/demo/1904 Original: https://youtu.be/QH2-TGUlwu4