npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

supagraph

v0.0.1-rc.67

Published

Open-source toolkit for building efficient cross-chain indexes from onchain data

Downloads

206

Readme

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