0.0.1-rc.67 • Published 6 months ago

supagraph v0.0.1-rc.67

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Supagraph

Supagraph is an open-source toolkit for building efficient cross-chain indexes from onchain data.

Features

  • ✅ - Index multiple chains with a single service
  • ✅ - onBlock / onTransaction and log event handlers in typescript (with side-effects)
  • ✅ - Fast initial load and reloads using queryFilters and a local cache
  • ✅ - Handle async messages in the sync process to be awaited later (non-blocking async handling of sequential processes)
  • ✅ - Sync as a daemon or on a schedule
  • ✅ - Support for migrations, factory contracts and recovery scripts
  • ✅ - Support for cron based scheduling
  • ✅ - Easy to deploy anywhere with minimal configuration
  • ✅ - Efficient graphql -> mongo querying for cheap data storage and retrieval
  • ✅ - Immutable storage option to snapshot state at any block (immutable by default)
  • 🏗️ - Code / type generators and subgraph migration guides
  • 🏗️ - Postgres / other database adapters and resolvers
  • 🏗️ - Dashboard ui with sync monitoring and admin controls
  • 🏗️ - Chain reconciles and reorganisations handling

Installation

To install supagraph, go to an empty folder, initialise a pnpm project (i.e. pnpm init), and run:

$ pnpm add supagraph

Documentation

Supagraph has been broken into two core stand alone pieces, sync and graphql, you might want to run either or both in order to index and/or query your data.

  • Sync: Read the supagraph/src/sync docs here
  • GraphQL: Read the supagraph/src/graphql docs here

Tech Stack

We are depending on:

  • graphql-yoga and graphql to create a GraphQL endpoint
  • ethers to map Events to stored Entities
  • mongodb/node-persist as a persistence layer
  • typescript, eslint, and prettier to maintain coding standards
  • ttsc and typescript-transform-paths for comp

Breaking changes

We are working towards a v0.0.1, please expect non-semvar breaking changes until we reach a stable design. We will do our best to outline any changes which alter interfaces here:

  • v0.0.1-rc.64 - renamed Syncs eventAbi property to events for consistency with config/handler hookups

Contributing

If you would like to contribute to supagraph, please follow these steps:

  1. Fork this repository.
  2. Create a new branch for your changes.
  3. Make your changes and test them thoroughly.
  4. Create a pull request and describe your changes.

Support

Support can be found on our Discord channel #supagraph

0.0.1-rc.42

7 months ago

0.0.1-rc.41

7 months ago

0.0.1-rc.44

7 months ago

0.0.1-rc.43

7 months ago

0.0.1-rc.46

7 months ago

0.0.1-rc.45

7 months ago

0.0.1-rc.48

7 months ago

0.0.1-rc.47

7 months ago

0.0.1-rc.49

7 months ago

0.0.1-rc.60

6 months ago

0.0.1-rc.51

6 months ago

0.0.1-rc.50

6 months ago

0.0.1-rc.53

6 months ago

0.0.1-rc.52

6 months ago

0.0.1-rc.55

6 months ago

0.0.1-rc.54

6 months ago

0.0.1-rc.57

6 months ago

0.0.1-rc.56

6 months ago

0.0.1-rc.59

6 months ago

0.0.1-rc.58

6 months ago

0.0.1-rc.62

6 months ago

0.0.1-rc.61

6 months ago

0.0.1-rc.64

6 months ago

0.0.1-rc.63

6 months ago

0.0.1-rc.66

6 months ago

0.0.1-rc.65

6 months ago

0.0.1-rc.67

6 months ago

0.0.1-rc.40

7 months ago

0.0.1-rc.26

7 months ago

0.0.1-rc.28

7 months ago

0.0.1-rc.27

7 months ago

0.0.1-rc.29

7 months ago

0.0.1-rc.31

7 months ago

0.0.1-rc.30

7 months ago

0.0.1-rc.33

7 months ago

0.0.1-rc.32

7 months ago

0.0.1-rc.35

7 months ago

0.0.1-rc.34

7 months ago

0.0.1-rc.37

7 months ago

0.0.1-rc.36

7 months ago

0.0.1-rc.39

7 months ago

0.0.1-rc.38

7 months ago

0.0.1-rc.25

8 months ago

0.0.1-rc.24

8 months ago

0.0.1-rc.23

8 months ago

0.0.1-rc.22

8 months ago

0.0.1-rc.21

8 months ago

0.0.1-rc.20

8 months ago

0.0.1-rc.19

8 months ago

0.0.1-rc.18

8 months ago

0.0.1-rc.17

8 months ago

0.0.1-rc.16

8 months ago

0.0.1-rc.15

8 months ago

0.0.1-rc.14

8 months ago

0.0.1-rc.13

8 months ago

0.0.1-rc.12

8 months ago

0.0.1-rc.11

8 months ago

0.0.1-rc.10

8 months ago

0.0.1-rc.9

8 months ago

0.0.1-rc.8

8 months ago

0.0.1-rc.7

8 months ago

0.0.1-rc.6

8 months ago

0.0.1-rc.5

8 months ago

0.0.1-rc.4

8 months ago

0.0.1-rc.3

8 months ago

0.0.1-rc.2

8 months ago

0.0.1-rc.1

8 months ago

0.0.1-beta

10 months ago

0.0.0

10 months ago