AIDeveloper44 logoaideveloper44home of every ai dev release
← all tools
Diffusion Studio·Sep 6, 2026·open source

apecs

Apecs is a high-performance, archetype-based Entity Component System (ECS) library designed for TypeScript applications.
FrontendFrameworksOpen SourceFree
Visit WebsiteGitHub

What is apecs?

Apecs is a high-performance, archetype-based Entity Component System (ECS) library designed for TypeScript applications. It optimizes state management by storing data in contiguous typed arrays, enabling efficient iteration and memory usage for performance-critical simulations.

Apecs is a lightweight, high-performance Entity Component System (ECS) built specifically for TypeScript. By utilizing an archetype-based architecture, it stores application state in flat, contiguous tables rather than complex object graphs, allowing for linear scans and zero-allocation iteration. This design makes it exceptionally fast for game engines and complex simulations, outperforming many existing JS/TS ECS libraries in benchmark tests.

Who apecs is for

Teams and individual developers working in Frontend and Frameworks.

Frontend engineers

Build and maintain UI and component libraries

AI engineers

Build LLM apps and agents on a maintained foundation

Full-stack developers

Ship complete features without a dedicated UI team

Designers who code

Turn designs into working interfaces

Startup teams

Go from prototype to production on one stack

Key features

01Archetype-based storage for high-performance iteration
02Zero-allocation query system
03Built-in React and Solid.js bindings
04Advanced change detection and sorted iteration
05Lightweight footprint (18 kB min+gzip) with zero dependencies

apecs use cases

Horizontal · cross-industry

Component systemsAccessible, themeable component libraries
Agent frameworksTyped tools, memory and structured outputs
RenderingSSR, SSG and streaming UI for performance

Vertical · domain-specific

E-commerceProduct listing and checkout flows tuned for Core Web Vitals
SaaSAdd copilots and AI features to an existing product
MediaStatic or edge-rendered content sites at scale