المكتب: رقم 17، مجمع رونجوي للتكنولوجيا الصناعية بمجمع رونجوي للتكنولوجيا طريق كيوان الثالث، شوندي، فوشان، قوانغدونغ، جمهورية الصين الشعبية
- Fe - — Neko Script
import NekoBus from 'neko-core'; // Emit an event NekoBus.emit('fish:caught', weight: 5, type: 'Tuna' );
my-cat-app/ ├── src/ │ ├── main.nks # Entry point │ ├── components/ │ │ └── CatCard.nks │ └── assets/ │ └── yarn.png ├── neko.config.json └── index.html Open src/components/CatCard.nks : Neko Script - FE -
Inspired by the agility of a cat (Neko) and the structure of modern front-end frameworks, Neko Script - FE - allows developers to write declarative UI components with a syntax that prioritizes readability and "paw-sitive" logic flow. Whether you are building a dynamic dashboard or an interactive anime-themed web app, Neko Script - FE - promises to cut boilerplate code by 40% while increasing developer happiness. Before you write your first "Meow" in the console, you must understand the three foundational pillars of Neko Script - FE -. 1. The nya Declaration (Variable Binding) Unlike let or const , Neko Script uses nya to declare reactive state variables. import NekoBus from 'neko-core'; // Emit an event NekoBus
Compile with neko build . The output is standard HTML, CSS, and JS, deployable to any static host. The "Neko Bus" (Global State Management) For complex apps, Neko Script - FE - provides a built-in event bus called the Neko Bus. It works like a centralized meow relay. The output is standard HTML, CSS, and JS,
nya count = 0; nya userName = "Kuro"; When a nya variable changes, the DOM automatically updates—similar to signals in Solid.js but with feline flair. Components are defined using the purr keyword. A purr block returns a virtual DOM tree.
@js // This runs in vanilla JS context const localStorageKey = 'cat_preferences';
purr CatCard(initialName) nya name = initialName; nya lapCount = 0; function giveLap() lapCount++; console.log( Purring for $lapCount seconds );