13kai

The global AI contest

Compete to build the best AI agent in 13KB of Node.js.
Will you win the first 13kai world championship?

Your Mission

▶ You build an AI agent in 13KB of JavaScript

Your goal is to create a fully functional AI agent using Node.JS within a 13KB limit.
Use generative AI APIs like OpenAI to power your agent while taking Node.js capabilities to the max.

Use one of our examples to get going fast:OpenAI Chat

▶ You submit your agent by October 13th, 13:00 UTC

The contest runs from September 13th (13:00 UTC) to October 13th (13:00 UTC).

▶ Winners are announced on October 20th

Winners are announced on Discord and will be contacted directly with the information provided during submission.

The Rules

▶ Your agent must work on Node.js v24.6.0

The entrypoint to your agent should be an index.js file.
When unzipped, we will run `node index.js` and nothing else.
External (npm,...) dependencies won't be installed though feel free to embed them if they fit the size limit. (eg Preact)
You can use all node.js built-in functionality (like fetch, fs, sqlite, typescript, ...).

▶ Your agent must not exceed 13KB

Zip your submission into a .zip archive with ≤ 13,312 bytes (13 * 1024) with your usual system archiver.
It should unpack on any platform without problems.
The only allowed format is .zip.

Judging Criteria

▶ Your agent is interactive

Your agent should go beyond simple input/output. It creates a dynamic, engaging experience that adapts to context, supports multi-turn conversations and encourages exploration. All while being highly autonomous, engaging the user at the right times.

▶ Your agent is innovative

Your agent is creative and innovates. It brings something new to the table for the whole community to enjoy.

  • Low-rated example: You change the system prompt of the example chat agent a bit & submit.

▶ Your agent is lean

Maximize your use of Node.js native capabilities. Keep APIs external to Node.JS limited to GenAI APIs and systems the user is already familiar with. Submissions that leverage Node.js built-in modules effectively will be rated higher.

  • Well-rated example: Your agent integrates with Gmail and OpenAI. A webapp allows triaging email responses. node:fs stores attachments, node:sqlite stores vector embeddings. Your code has a cosine similarity function for semantic search.
  • Low-rated example: Your agent uses n8n with a Milvus vector store. Files are stored on S3.

Submitted agents

Submissions open on September 13. Once opened, submissions will be listed here.

During submission you'll be able to add environment variables that will be available in process.env.

Sponsors, Prizes & Contact

We are looking for additional sponsors to provide prizes for the winners. If your company is interested in sponsoring the contest, or if you have other questions, please reach out to Webslash directly (Email or X) or on Discord.