Skip to content
karote00Public

About

Composable framework for canvas-based, visual, and domain-driven products.

Topics

Resources

Security policy

Stars

64 stars

Watchers

1 watching

Forks

Latest commit

 

History

354 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asyra

Build product features, not infrastructure

Asyra is a composable Framework for products whose information must stay editable, reversible, inspectable, persistable, and extensible. Use it to build canvas-based editors, whiteboards, BIM workspaces, industrial tools, simulations, and other domain products without coupling domain rules to one renderer or UI framework. It provides the ownership and transaction infrastructure for editable 2D and 3D tools; the App supplies each domain model and concrete 3D engine.

Your App owns its product schemas, rules, workflows, services, and UI. Asyra coordinates the shared infrastructure around them: intent routing, registration, transactions, rollback, Undo/Redo, validation, persistence boundaries, and downstream projections.

Install the Skill in your product folder:

npx openskills@1.5.0 install karote00/asyra/plugins/asyra-skill/skills/asyra-skill --universal --yes
npx openskills@1.5.0 sync --yes

Review the generated AGENTS.md instructions before using the Skill.

Try the demo

Asyra Design is the maintained, complete design-tool product in this repository. It demonstrates App-owned Features, editable information, the official 2D Preset, rendering, Undo/Redo, persistence, and explicit optional AI and collaboration composition on the current browser/Core runtime.

Asyra Design showing the complete 7,076-element editable cat drawing

The maintained 7,076-element sample rendered in Asyra Design without any subsequent selection or geometry edit: one App-owned Group and 7,075 editable Vectors, with 156,373 vector points visible through the ordinary Agent, Runtime, canonical-state, and Render paths.

7,076 elements, two live clients

Two live Asyra Design clients converging on the 7,076-element cat drawing

Download the 13-second high-quality MP4. Actor A creates the drawing through the Agent; Actor B receives it through CRDT and renders the same editable canonical result. The animation above is generated from that recording. See the maintained sample and reproduction steps.

The product UI and design-domain behavior belong to the App; they are not silently installed by Framework Core. Follow the Asyra Design case study from startup and canonical state through rendering, transactions, persistence, collaboration, and registered AI actions.

One product behavior, one explicit owner

A conventional product often reconnects the same behavior across several independent paths. An Asyra Feature keeps the App's decision in one explicit owner and routes accepted work through established correctness boundaries.

Where does intent enter?

  • Conventional product: UI, shortcuts, automation, and AI may each grow a separate handler.
  • With Asyra: human, UI, automation, device, and AI intent enter an App-owned Feature or its API.

Who owns the write?

  • Conventional product: UI state, service code, and saved data can each appear authoritative.
  • With Asyra: the Feature calls an App or Framework API; the canonical package owner performs the write.

How is failure handled?

  • Conventional product: validation, rollback, and cleanup are rebuilt around each caller.
  • With Asyra: the same transaction, validation, and rollback boundaries apply to every caller.

What reaches the rest of the product?

  • Conventional product: rendering, history, persistence, and synchronization need custom bridges.
  • With Asyra: canonical changes feed History, projections, serialization, and App services through their declared boundaries.

This is a behavior-ownership promise, not a claim that every product change fits in one file. Large Features can have multiple focused modules while still retaining one governed path.

A real App-owned Feature

Asyra Design's Undo/Redo Feature is deliberately small. This maintained App source excerpt keeps its App-owned relative imports visible: the App defines the shortcut event, Feature name, and common history API, while defineFeature is imported through the public @asyra/core facade.

import { defineFeature } from '@asyra/core'
import { historyApis } from '../../common-apis'
import { FeatureNames, InputSystemEvents } from '../../constants'
import type { SystemContextSnapshotWithDetail } from '@asyra/utils'

export const undoRedoFeature = defineFeature(
  FeatureNames.UNDO_REDO,
  InputSystemEvents.INPUT_SHORTCUT_UNDOREDO,
  {
    priority: 100,
    executionMode: 'immediate',
    exclusive: true,

    execution: async (snapshot: SystemContextSnapshotWithDetail) => {
      const direction = snapshot.detail?.historyDirection

      if (direction !== 'undo' && direction !== 'redo') {
        return null
      }

      if (direction === 'redo') {
        await historyApis.redo()

        return { redid: true }
      } else {
        await historyApis.undo()

        return { undid: true }
      }
    }
  }
)
  • This excerpt proves: registration, priority, exclusivity, and execution remain explicit at one App-owned intent boundary.
  • The App owns meaning: its shortcut event chooses Undo or Redo and calls the App's common history API.
  • The complete runtime contract: the common API reaches Factory-owned transaction, replay, Undo/Redo, rollback, and lifecycle behavior described in the maintained guide below. Those guarantees are not inferred from the code excerpt alone.

For the complete lifecycle, failure, cancellation, rollback, and cleanup contract, follow Build a transaction-safe Feature.

Choose your starting point

Generic Starter

Choose the small Item App when you want to learn one editable 2D path before choosing a product domain. Its default screen edits a title and status with Undo/Redo and explicit Save/Reload. The Starter source and onboarding guide are available in this repository. The opt-in priority exercise shows how a coding agent can extend App-owned source through the same Feature, API, transaction, projection, and persistence path. This is source-editing guidance, not an AI service or agent running inside the App.

Create a fresh project with the published create-asyra-app package using Node.js 24 and npm or Yarn:

npx create-asyra-app@0.1.0 my-app --package-manager=npm
cd my-app
npm run start

The CLI installs the generated project's dependencies. It also supports Yarn; see the CLI package guide for its options.

Complete design product

Choose this path when you want an immediately editable design-tool product and will replace or extend its App-owned Features, schemas, services, and UI.

npx create-asyra-design-app my-product --package-manager=npm
cd my-product
npm run start

The CLI supports Yarn, npm, or pnpm. It installs the project dependencies and prints the exact start command for the selected package manager. The generated project is ordinary source code with bounded extension guidance for humans and AI coding agents. See create-asyra-design-app.

Advanced composition

Choose this path when you need to assemble a different product deliberately or replace a Framework composition boundary. @asyra/core is the public browser composition facade; it does not impose a UI framework or product domain.

npm install @asyra/core

Asyra is published as 19 public @asyra/* ESM packages. Required package dependencies install automatically; Preset, Collaboration, AI, Design System, and concrete rendering providers remain optional composition choices. Continue with Build a Core App correctly, model product information, define an App-owned schema, and build a transaction-safe Feature.

How Asyra works

Human / UI / automation / AI / device intent
→ App-owned Feature
→ App or Framework API
→ transaction and validation boundary
→ canonical state owner
→ Render / UI / serialization / App services

Loading, Undo/Redo replay, and accepted remote changes are state-application paths. They run through migration, validation, conflict policy, and canonical apply owners rather than becoming parallel product-decision runtimes.

Ownership boundaries

  • Framework owns deterministic runtime contracts, transactions, rollback, canonical state owners, validation, registration, and replaceable provider or output boundaries. It does not know the App's domain.
  • Preset owns selectable official defaults and profile policy. Its current catalog is design-tool-oriented because it is the public baseline, not because design behavior belongs in Framework Core.
  • App owns schemas, domain behavior, physical or business rules, workflows, permissions, search and index policy, custom engines, services, and product UI.
  • Backend or external services own transport, authorization, durability, model-provider, and operational policy without becoming a second canonical product owner.

Where Asyra can go

Built and demonstrated today

The maintained Asyra Design product proves the current browser/Core composition, official 2D Preset, engine-neutral CUSTOM extension boundary, editable canonical information, App-owned Features, rendering, Undo/Redo, persistence contracts, and explicit optional collaboration and AI paths.

Other Apps show how different domains remain App-owned:

  • Asyra FieldScope models a greenhouse with cucumber and tomato crops in an App-owned Three.js scene. Its crop layout source and formal crop tests cover the planted scene. This is Asyra FieldScope behavior, not an official 3D Preset or a built-in agricultural model.
  • Asyra Sim is a local robot-workcell experiment workbench and a development checkpoint, not an R0 release or industrial safety approval. Its current App guide, analysis Feature tests, and project-session tests document the implementation and its limits. Geometry and analysis are App-owned, not built-in Framework physics.

Compose your domain

An App can bring the information, rules, engines, services, and workflows for a whiteboard, BIM product, industrial digital twin, simulation, research tool, or another domain. The reusable part is the ownership, transaction, validation, projection, and persistence infrastructure - not hidden industry knowledge.

Not turnkey modules

Asyra does not bundle BIM models, industrial rules, simulation engines, or other industries' domain behavior. Production 3D, HYBRID, auto-layout, unit-aware aggregation, public Headless Core, and a multi-runtime Core Kernel are not current capabilities.

Current support

Current public support covers Node.js 24.x for package verification, public ESM entrypoints with TypeScript declarations, the browser/Core composition, the official 2D Preset, and engine-neutral CUSTOM composition. Import safety in Node does not establish a supported Headless Core or server/worker lifecycle.

Documentation

Support and contribution policy

Asyra is publicly available for use, learning, inspection, and forking.

GitHub Discussions is the intended public channel for community conversation and general help. Discussions is not enabled for this repository yet, so there is currently no public community support destination. GitHub Issues are not a general public support channel. External pull requests are not accepted by default. Community participation creates no SLA or response deadline.

Read SUPPORT.md for the current policy. For suspected vulnerabilities, follow SECURITY.md and report privately.

License

MIT

About

Composable framework for canvas-based, visual, and domain-driven products.

Topics

Resources

Security policy

Stars

64 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages