MCPcopy Index your code
hub / github.com/embarklabs/subspace

github.com/embarklabs/subspace @2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.0.0 ↗ · + Follow
174 symbols 420 edges 98 files 0 documented · 0%

Browse by type

Functions 144 Types & classes 30
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Subspace

Overview

Subspace is a framework agnostic JS library that embraces reactive programming with RxJS, by observing asynchronous changes in Smart Contracts, and providing methods to track and subscribe to events, changes to the state of contracts and address balances, and react to these changes and events via observables.

Subspace also takes care of syncing under the hood, saving & loading the state in a local database.

Install

Subspace can be used in browser, node and native script environments. You can install it through npm or yarn:

npm install --save @embarklabs/subspace web3 rxjs # RxJS and Web3.js are needed peer-dependencies

Documentation

https://subspace.embarklabs.io

Contribution

Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!

If you'd like to contribute to Subspace, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base. If you wish to submit more complex changes though, please check up with the core devs first on #embark-status channel to ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple.

To build:

  • yarn
  • yarn bootstrap

License

MIT

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 84
Method 60
Class 26
Interface 4

Languages

TypeScript100%

Modules by API surface

packages/core/src/subspace.js21 symbols
packages/core/src/database/database.js12 symbols
packages/core/src/database/nullDatabase.js10 symbols
packages/core/src/logSyncer.js9 symbols
packages/react/src/observe.js7 symbols
packages/react/types/index.d.ts6 symbols
packages/core/src/eventScanner.js6 symbols
packages/core/src/operators.js5 symbols
packages/core/src/eventSyncer.js5 symbols
examples/redux-observable/src/actions.js5 symbols
examples/react-graphql-example1/src/App.js5 symbols
examples/react-example1/src/App.js5 symbols

For agents

$ claude mcp add subspace \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page