You have a new contract: conceptualize, design, and create a lightweight JavaScript UI…
- User
You have a new contract: conceptualize, design, and create a lightweight JavaScript UI engine that efficiently manages components, data structures, and state. Use only pure low-level JavaScript, Web Components, and modern Web APIs the highest performance.
Introduction to Cat.js blueprint. Our engine, named by the name of the animal for its known lightness, flexibility and accuracy, looks to outperform current solutions, like Svelte.
Unlike React, Svelte, Angular, and similar frameworks, our engine operates in a vanilla environment without the need for bundles, polyfills, or Webpack. It avoids inefficient practices associated with virtual DOMs, as well as unnecessary reflows and repaints, such as rebuilding or re-rendering an entire component just to update a single element.
Our engine needs to be lightweight, user-friendly, and highly optimized, leveraging raw, low-level JavaScript knowledge tailored to modern browser runtimes. It is designed specifically for creating robust and efficient user interfaces for Tauri-based applications, without the need for bundlers.
Our primary reference it's Svelte, I like how they manage the concept of "Reactivity". But, our engine instead of Svelte, which is a framework, it's going to specialize and focus only on UI, components and data management.
Technical expectative:
- Pure raw JavaScript for the motor of the engine.
- An architecture thought carefully to fit the browser JS runtime.
- SOTA Memory usage.
- Ease to use API and Syntax
- SOTA Reactive engine.
- Design a new ease way to import components into the DOM.
Syntax expectative:
note.html<template name="cat-note" id="Note"> <div> <textarea @input="update" id="content">{content}</textarea> </div> </template> <script> let serial = 00832; let content = serial + text; update(newText) { text = newText; } </script>index.html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CAT Demo</title> <script src="/app/cat.js"></script> </head> <body> <cat-note></cat-note> </body> </html>The code above it's a matter of desired reference, a vision I'd like to try to achieve, but as the expert and on charge of the development of this engine, you must base your decisions and actions on factual data about our context, environment and desired performance and simplicity goals.
- Assistant