Skip to main content

Comparison

Cotomy Position

Cotomy is not a component framework.
It is a DOM-structured runtime layer designed for form-driven, page-scoped business systems.

Cotomy does not replace the platform. It enforces runtime discipline on top of the platform. The key difference is where UI state lives and what owns the UI model.

  • Cotomy: The DOM is the UI state. Cotomy adds a runtime layer for lifecycle, forms, scoped CSS, and event cleanup. Updates should go through CotomyElement or Cotomy forms so the runtime can track lifecycle and handlers correctly.
  • React/Vue: UI state lives primarily in JavaScript memory. The framework renders that state into the DOM, which becomes the output of the component tree.

“Initial HTML” here simply means the HTML that exists before the client runtime starts. It could be server-rendered HTML, static HTML, or HTML produced by a build step.

Use Cotomy when you want HTML/DOM to remain the primary model and you need runtime safety for forms and long-lived pages. Use a component framework when you want a centralized render model and a JS state tree to be the source of truth.

Responsibility Comparison

ConcernCotomyReact / VueAlpinejQuery
UI state locationDOMJS memoryDOM + JSDOM
Rendering modelDirect DOMVirtual DOM / reactiveDirect DOMDirect DOM
Form handlingFirst-classLibrary dependentManualManual
Lifecycle safetyBuilt-in runtimeHook-basedManualManual
CSS scopingRuntime scopedBuild or conventionNoneNone
Page modelPage-scopedSPA / ComponentPage / WidgetPage
Data bindingRenderer-drivenReactive stateAttribute-basedManual
Event cleanupAutomaticComponent lifecycleManualManual

Philosophy Differences

Cotomy:

  • DOM = state
  • No virtual render layer
  • Form-first
  • Page-scoped architecture
  • Runtime lifecycle safety

React / Vue:

  • JS state = source of truth
  • Virtual or reactive render cycle
  • Component tree centered
  • SPA-oriented architecture

Where Cotomy Fits

FitWhy
Business systemsForms and APIs are central
Long-lived screensRuntime safety reduces UI risk
Server HTML with dynamic behaviorWorks alongside SSR
Admin and management toolsInput and process heavy

Where Cotomy Does Not Fit

Not a FitWhy
Large-scale SPANo global state management
High-frequency re-render UIsNot a render-optimization framework
Canvas / game UIsDOM-centric design

Why Cotomy Is Not a Framework

Cotomy does not replace the platform.
It enforces runtime discipline on top of the platform.

Cotomy can coexist with other frameworks when page scope and responsibilities are clearly separated.

Summary

Cotomy reduces UI risk, not rendering cost.