Compose
A modular smart contract composition library based on ERC-2535
Performances
RD Popularity Index
RD Growth Index
Comparison
Follow Lists
People
About Compose
Compose is a Solidity contract framework and library for the ERC-2535 and ERC-8153 Diamond standards, where diamonds refers to the contract pattern rather than the gemstone. It assembles contract systems from facets, modules and shared storage, a CLI generates project skeletons, it works with Foundry and Hardhat, and facets can be added or replaced without changing the contract address. The pain point is that multi-facet contracts become hard to read and maintain, inheritance creates tight coupling, and upgrades and storage layouts are error-prone.
On 27 March 2026 the main repository merged changes adding npm package and CLI release workflows, and ERC-6909 tests were added on 25 March. The site and repository still describe the project as early stage, open only to contributors and not production ready; the last commit to the main repository was on 27 March with nothing since.
In the past six months (2026-03-01 to 2026-09-01), Compose has made notable progress. The project merged PR #373 (August 2026), which added comprehensive behavior-tree-driven tests for the Diamond module, increasing line coverage from 78% to 87% and fixing a regression in facetFunctionSelectors. A whitepaper titled "A Composition Layer for On-Chain Applications" was also published, introducing Smart Contract Oriented Programming (SCOP). Official future focus includes expanding the on-chain standard library of facets, promoting SCOP as a design paradigm, and building a community-driven ecosystem for reusable diamond-based modules. The roadmap emphasizes modularity, security, and cross-chain deployment of verified facets.
Nick Mudge — Founder; author of ERC-2535 Diamonds; focuses on upgradeable modular smart contract architecture and maintains the Compose library at Perfect Abstractions.