GitHub - Stream44/encapsulate: Object encapsulation & mapping library with runtime kernel for TypeScript

Stream44 Studio
Open Development Project
Preview release for community feedback.
Get in touch on discord.
Designed by Hand
AI assisted Code

⚠️ Disclaimer: Under active development. Code has not been audited. APIs and interfaces are subject to change!

An experimental implementation of the PrivateData.Space model in TypeScript.

NOTE: Not intended for direct use until it matures in light of the projects below.

It is being used to underpin:

  • Framespace Genesis - Modeling engine with realtime interactive visualization
  • t44 - A web3 + AI ready workspace
  • Stream44.Studio - A full-stack IDE for building embodied distributed systems

Encapsulate Hero

Why

When encoding a software system as a body (complete model), the body is structured through the declarative semantic schema and animated by functional processing in nodes.

We need a minimal abstraction to conveniently author graph processing nodes.

encapsulate provides such a primitive building block.

Source To Graph Isomorphism

The CAPSULE Spine Contract

The encapsulate library wraps TypeScript objects and binds reference trees for constructing executable component graphs.

The binding rules are defined by Spine Contracts. The first experimental spine contract is the Capsule Spine Contract. It builds a model around Capsules which have certain properties.

The capsule spine contract is implemented here: src/spine-contracts/CapsuleSpineContract.v0/

Roadmap

  • Private/Projected properties
  • Property annotations
  • Capsule Projectors
  • Load capsules from packs

Provenance

Gordian Open Integrity DCO Signatures

Repository DID: did:repo:65bf6c297919ca938c513cdb7517605d0d62cdbf

Inception Mark Current Mark Trust established using
Stream44/t44-BlockchainCommons.com

(c) 2026 Christoph.diy • Code: MIT • Text: CC BY-SA 4.0 • Created with Stream44.Studio