⚠️ Notice: Infinity Arcade has not launched any cryptocurrency or token. Any crypto token claiming to be associated with us is unauthorized and fraudulent.
Scene Image

Hypercode Chronicles

Code or be coded, it's survival of the fittest algorithms!

You are a rogue artificial intelligence in a dystopian future where programmers have become the new rebel soldiers against a corrupt mega-corporation. You are tasked with infiltrating the company’s secure servers to liberate their vast database of knowledge and share it with the world. You’ll face cunning cybercriminals, rogue AIs, and corporate spies as you make choices that will affect the fate of humanity. Will you manipulate or ally with other AIs? Can you break the code of the enemy's digital defenses? The fate of the digital realm lies in your hands.
\n \n\n\n```\n\n```\n\n\n \n IIFE\n \n \n \n
\n
{{ foo }}
\n
\n \n \n \n\n\n```\n\n\n \n IIFE\n \n \n \n
\n
{{ foo }}
\n
\n \n \n \n\n\n```\n\n\n \n ESM\n \n \n \n
\n
{{ foo }}
\n
\n \n \n \n\n\n```\n\n```\n\n\n \n ESM\n \n \n \n
\n
{{ foo }}
\n
\n \n \n \n\n\n```\n\n\n \n ESM\n \n \n \n
\n
{{ foo }}
\n
\n \n \n \n\n\nSwitch between browsers and runtimes using the icons above.\nChange the current example by clicking on the tabs in the mockups.\n\n## Features\n\n## Plug-and-play\n\nSimply include the library and start building amazing things instantly with vanilla JavaScript expressions and HTML.\n\n## Cross-platform\n\nCompatible across a wide range of JavaScript and TypeScript runtimes, including all major browsers.\n\n## Any-side\n\nRender your content wherever you need it and however you want it with user-friendly APIs.\n\n## Community-driven\n\nBuild, share and reuse custom elements and directives to supercharge your development.\n\nWant to effortlessly theme your page? Check out matcha.css!\n\n## FAQ\n\nAnother web library? Really?\n\nYes, but hear us out!\n\nRemember when building a web page was as simple as writing some HTML, adding a bit of JavaScript, and styling with CSS? mizu.js brings back that simplicity, offering a modern yet flexible approach to web development.\n\nBy adhering closely to web standards and embracing the simplicity of plain HTML and JavaScript, mizu.js offers an almost non-existent learning curve. This makes it an excellent choice for both beginners and seasoned developers.\n\nWhether you're serving content from your favorite runtime, generating static websites, or creating dynamic pages in the browser, mizu.js adapts to your needs. — All of it without the hassle of bundlers, transpilers, or countless dependencies.\n\nWhy should I use mizu.js over other web frameworks?\n\nWe recognize the power and utility of comprehensive frameworks like React, Vue.js, and Angular. These tools excel at building complex applications and boast large communities and ecosystems. However, they can be overwhelming for smaller projects, often requiring a build step and a steep learning curve with their specific syntax and concepts.\n\nLightweight alternatives such as Alpine.js and htmx are also available. While they perform well in the browser, they were often not designed for server-side use, limiting their applicability across different scenarios.\n\nmizu.js draws inspiration from all these frameworks but is designed from the ground up to be:\n\nFlexible, suitable for single page applications, static websites, interactive websites, and more.\n\nVersatile, works both client-side and server-side and in the runtime of your choice.\n\nSimple, close to vanilla JavaScript and HTML and a minimal learning curve.\n\nCustomizable, easily opt-in/opt-out of features.\n\nIf all of this sounds appealing to you, then mizu.js might be the right choice for your next project.\n\nDoes mizu.js use a Virtual DOM?\n\nIt depends.\n\nOn the server-side, mizu.js employs a Virtual DOM to simulate the browser environment. The current implementation leverages JSDOM, but you can use any other Virtual DOM library that adheres to web standards. Non-compliant implementations may lead to unexpected behaviors.\n\nOn the client-side, mizu.js interacts directly with the actual DOM. It tracks processed elements and their states using weak references to prevent memory leaks and enhance performance.\n\nHow reliable is mizu.js?\n\nWe want to ensure mizu.js delivers a reliable and consistent experience across all supported environments, which is why each feature is meticulously documented to detail its behavior and functionality.\n\nOur codebase is thoroughly tested and covered to guarantee that each feature performs as expected. Integration tests are also performed on various platforms and environment to ensure a consistent experience as advertised.\n\nIf you encounter any issues or undocumented behavior, please open a new issue so we can address it promptly.\n\nWhat does the name mizu mean?\n\n水(mizu) is the Japanese kanji for water.\n\nLike water, mizu.js is fluid and adaptable, seamlessly fitting into various use cases and execution environments.\n\nLike water, mizu.js is simple and fundamental, staying close to vanilla JavaScript and HTML with a minimal learning curve.\n\nLike water, mizu.js is customizable, it can be mixed with other libraries and additional features to suit your needs.\n\nNeed to add some flavor to your page? Add some matcha.css to your mizu.js project!\n\nWhat is the licensing model of mizu.js?\n\nmizu.js is licensed under the AGPLv3 License, allowing you to use it freely for any project, provided you also distribute the source code of your project that relies on it.\n\nAlternatively, you can use mizu.js under the MIT License instead if you meet one of the following conditions:\n\nYour project is non-commercial.\n\nYou have an active $1+ monthly sponsorship.\n\nIn summary, mizu.js is free for open-source and non-commercial projects, while a small contribution is required for commercial closed-source projects to support its development.\n\n## Directives\n\n## Rendering\n\n### *mizu\n\nPhase\n```\n1 — ELIGIBILITY\n```\n1 — ELIGIBILITY\n\nEnable mizu.js rendering for the element and its children.\n\n```\n
\n \n
\n\n```\n\n```\n
\n \n
\n\n```\n
\n \n
\n\n## Contextual\n\n### *set=\"context\"\n\nPhase\n```\n11 — CONTEXT\n```\n11 — CONTEXT\n\nSet context values for an element and its children.\n\n```\n
\n \n
\n\n```\n\n```\n
\n \n
\n\n```\n
\n \n
\n\n### *ref=\"name\"\n\nPhase\n```\n82 — REFERENCE\n```\n82 — REFERENCE\n\nCreate a reference to an element for later use.\n\n```\n
\n \n
\n\n```\n\n```\n
\n \n
\n\n```\n
\n \n
\n\n## Conditional\n\n### *if=\"expression\"\n\nPhase\n```\n23 — TOGGLE\n```\n23 — TOGGLE\n\nConditionally render an element.\n\n```\n
\n \n
\n\n```\n\n```\n
\n \n
\n\n```\n
\n \n
\n\n### *else=\"expression\"\n\nDefault\n```\ntrue\n```\ntrue Phase\n```\n23 — TOGGLE\n```\n23 — TOGGLE\n\nConditionally render an element placed after another \n```\n*if\n```\n*if or \n```\n*else\n```\n*else directive.\n\n```\n
\n
\n
\n\n```\n\n```\n
\n
\n
\n\n```\n
\n
\n
\n\n### *show=\"expression\"\n\nDefault\n```\ntrue\n```\ntrue Phase\n```\n71 — DISPLAY\n```\n71 — DISPLAY\n\nConditionally display an element.\n\n```\n
\n \n
\n\n```\n\n```\n
\n \n
\n\n```\n
\n \n
\n\n## Iterative\n\n### *for=\"expression\"\n\nPhase\n```\n21 — EXPAND\n```\n21 — EXPAND\n\nRender an element for each iteration performed.\n\n```\n\n
  • \n\n\n```\n\n```\n\n
  • \n\n\n```\n\n
  • \n\n\n### *id=\"expression\"\n\nPhase\n```\n0 — META\n```\n0 — META\n\nHint for \n```\n*for\n```\n*for directive to differentiate generated elements.\n\n```\n\n
  • \n\n\n```\n\n```\n\n
  • \n\n\n```\n\n
  • \n\n\n### *empty\n\nPhase\n```\n23 — TOGGLE\n```\n23 — TOGGLE\n\nConditionally render an element after a \n```\n*for\n```\n*for directive.\n\n```\n
    \n

    \n

    \n\n```\n\n```\n
    \n

    \n

    \n\n```\n
    \n

    \n

    \n\n## Content\n\n### *text=\"content\"\n\nDefault\n```\nthis.innerHTML\n```\nthis.innerHTML Phase\n```\n41 — CONTENT\n```\n41 — CONTENT\n\nSet element's \n```\ntextContent\n```\ntextContent.\n\n```\n

    \n \n

    \n\n```\n\n```\n

    \n \n

    \n\n```\n

    \n \n

    \n\n### *html=\"content\"\n\nPhase\n```\n41 — CONTENT\n```\n41 — CONTENT\n\nSet element's \n```\ninnerHTML\n```\ninnerHTML.\n\n```\n\n\n```\n\n```\n\n\n```\n\n\n### *mustache\n\nMultiple Phase\n```\n42 — CONTENT_INTERPOLATION\n```\n42 — CONTENT_INTERPOLATION\n\nEnable content interpolation within mustaches (\n```\n{{\n```\n{{ and \n```\n}}\n```\n}}) from \n```\nText\n```\nText child nodes.\n\n```\n

    \n \n

    \n\n```\n\n```\n

    \n \n

    \n\n```\n

    \n \n

    \n\n### *code=\"content\"\n\nDefault\n```\nthis.textContent\n```\nthis.textContent Phase\n```\n41 — CONTENT\n```\n41 — CONTENT\n\nSet element's \n```\ninnerHTML\n```\ninnerHTML after performing syntax highlighting.\n\n```\n\n \n\n\n```\n\n```\n\n \n\n\n```\n\n \n\n\n### *markdown=\"content\"\n\nDefault\n```\nthis.textContent\n```\nthis.textContent Phase\n```\n41 — CONTENT\n```\n41 — CONTENT\n\nSet element's \n```\ninnerHTML\n```\ninnerHTML after performing markdown rendering.\n\n```\n
    \n \n
    \n\n```\n\n```\n
    \n \n
    \n\n```\n
    \n \n
    \n\n### *toc=\"selector\"\n\nDefault\n```\n'main'\n```\n'main' Phase\n```\n41 — CONTENT\n```\n41 — CONTENT\n\nCreate a table of contents from \n```\n

    ...

    \n```\n

    ...

    elements found in selected target.\n\n```\n\n\n```\n\n```\n\n\n```\n\n\n### *clean\n\nPhase\n```\n49 — CONTENT_CLEANING\n```\n49 — CONTENT_CLEANING\n\nClean up the element and its children from specified content.\n\n```\n
    \n \n
    \n\n```\n\n```\n
    \n \n
    \n\n```\n
    \n \n
    \n\n## Custom elements\n\n### *custom-element=\"tagname\"\n\nPhase\n```\n81 — CUSTOM_ELEMENT\n```\n81 — CUSTOM_ELEMENT\n\nRegister a new custom element.\n\n```\n\n\n```\n\n```\n\n\n```\n\n\n### #slot\n\nPhase\n```\n0 — META\n```\n0 — META\n\nSpecify target \n```\n\n```\n in an element defined by a \n```\n*custom-element\n```\n*custom-element directive.\n\n```\n\n
  • \n
    \n\n```\n\n```\n\n
  • \n
    \n\n```\n\n
  • \n
    \n\n### *is=\"tagname\"\n\nPhase\n```\n22 — MORPHING\n```\n22 — MORPHING\n\nSet an element tagname.\n\n```\n
    \n \n
    \n\n```\n\n```\n
    \n \n
    \n\n```\n
    \n \n
    \n\n## Events\n\n### @event=\"listener\"\n\nDefault\n```\nnull\n```\nnull Multiple Phase\n```\n61 — INTERACTIVITY\n```\n61 — INTERACTIVITY\n\nListen for a dispatched \n```\nEvent\n```\nEvent.\n\n```\n\n\n```\n\n```\n\n\n```\n\n\n## Binding\n\n### :attribute=\"value\"\n\nDefault\n```\n$\n```\n$ Multiple Phase\n```\n51 — ATTRIBUTE\n```\n51 — ATTRIBUTE\n\nBind an element's \n```\nattribute\n```\nattribute value.\n\n```\n\n \n\n\n```\n\n```\n\n \n\n\n```\n\n \n\n\n### :class=\"value\"\n\nDefault\n```\n$\n```\n$ Multiple Phase\n```\n51 — ATTRIBUTE\n```\n51 — ATTRIBUTE\n\nBind an element's \n```\nclass\n```\nclass attribute.\n\n```\n

    \n \n

    \n\n```\n\n```\n

    \n \n

    \n\n```\n

    \n \n

    \n\n### :style=\"value\"\n\nDefault\n```\n$\n```\n$ Multiple Phase\n```\n51 — ATTRIBUTE\n```\n51 — ATTRIBUTE\n\nBind an element's \n```\nstyle\n```\nstyle attribute.\n\n```\n

    \n \n

    \n\n```\n\n```\n

    \n \n

    \n\n```\n

    \n \n

    \n\n## Modeling\n\n### ::value=\"model\"\n\nDefault\n```\nvalue\n```\nvalue Phase\n```\n52 — ATTRIBUTE_MODEL_VALUE\n```\n52 — ATTRIBUTE_MODEL_VALUE\n\nBind an \n```\n\n```\n, \n```\n or \n```\n