Jump to content

Js1k

From Wikipedia, the free encyclopedia

JS1K was an annual JavaScript programming competition that challenged developers to create small, creative web applications using no more than 1 kilobyte (1024 bytes) of JavaScript code.[1] Running from 2010 to 2019, the contest became a showcase for ingenuity in minimalist programming and a celebration of technical creativity within the constraints of browser-based development.[2]

Format

[edit]

Each edition of JS1K imposed a strict limit of 1024 bytes of JavaScript code with a “no externals” rule: all entries had to be entirely self-contained using only standard web APIs (mainly vanilla JavaScript and HTML5 features) without any external resources or libraries.[3] A basic HTML environment, including a `<canvas>` element, was provided for rendering, and the use of heavier technologies such as WebGL was initially disallowed to maintain cross-browser compatibility.[1]

Entries had to run directly in major web browsers like Google Chrome, Mozilla Firefox, and Opera.[1]

Themes

[edit]

Each year featured an optional theme—such as “Love” (2012), “Dragons” (2014), or “Magic” (2017)—that guided participants’ creativity.[4] For example, the 2013 theme, “Spring,” inspired floral animations and physics-based interactive demos.[1] While themes encouraged artistic cohesion, off-theme submissions were accepted as long as they adhered to the 1K limit.

Notable Entries and Impact

[edit]

Despite the extreme size constraint, participants regularly produced advanced visual and interactive projects—some achieving 3D rendering, particle systems, or full mini-games within the 1K limit.[1] Notable entries included:

  • a spinning 3D globe displaying the user’s position,
  • a smooth playable space shooter called 1K Meteors,
  • mini-implementations of Pac-Man and Conway’s Game of Life,
  • and a 2014 recreation of Minecraft-like voxel terrain in just 1024 bytes of code.[5]

The 2014 winning entry, DragonDrop, featured an interactive 3D crystal dragon that users could manipulate in real time.[6]

Over time, JS1K became regarded as a “legendary” JavaScript contest, inspiring a wave of creative coding and popularizing code golf-style competitions within the web community. Its influence extended to the demoscene and creative coding communities, demonstrating that expressive and technically impressive work could be produced within extreme constraints.

Legacy

[edit]

After nearly a decade of annual contests, JS1K concluded in 2019. In 2020, a successor event called JS1024 was launched to continue the minimalist JavaScript tradition, extending the size limit to 1024 bytes per category while maintaining the same spirit of creativity and constraint.

See also

[edit]

References

[edit]
  1. ^ a b c d e Lucy Black (March 2013). "JS1K 2013: Amazing 1K JavaScript Programs". I Programmer. Retrieved 10 October 2025.
  2. ^ Lucy Black (August 2020). "js1024 – How Much Awesomeness Can You Pack In Just 1K?". I Programmer. Retrieved 10 October 2025.
  3. ^ "About JS1K". JS1K.com. Retrieved 10 October 2025.
  4. ^ "JS1K Themes Archive". JS1K.com. Retrieved 10 October 2025.
  5. ^ "Reproduced the world of Minecraft with only 1024 bytes of JavaScript". Gigazine (in Japanese). March 2014. Retrieved 10 October 2025.
  6. ^ "The 2014 JS1K winner "DragonDrop" shows a draggable 3D crystal dragon in 1K of JavaScript". Gigazine (in Japanese). March 2014. Retrieved 10 October 2025.
[edit]