||5 days ago|
|.github/workflows||4 weeks ago|
|backend||3 weeks ago|
|clients/python||1 month ago|
|crawlers||1 week ago|
|datasets/nfts||6 months ago|
|db||1 month ago|
|docs||1 year ago|
|frontend||7 days ago|
|nodes||2 months ago|
|.gitignore||9 months ago|
|LICENSE||1 year ago|
|README.md||5 days ago|
|docker-compose.yml||1 year ago|
What is Moonstream?
Moonstream makes tools that help people build, manage, and maintain their blockchain economies.
In order to provide this functionality, we build a lot of technology to crawl blockchains and makes sense of crawled transactions and events. This repository contains that code.
Who uses Moonstream?
Game designers and economists, data scientists, smart contract developers, backend engineers, and teams managing loyalty programs for blockchain projects.
Some of our prominents customers:
Proprietary technologies are not inclusive technologies, and we believe in inclusion.
You are and will always be free to host your own instance of Moonstream.
This monorepo contains the following components:
frontend: A web frontend for Moonstream. Allows users to create dashboards and monitor the activity of accounts and smart contracts on multiple blockchains. Built in React.
backend': The Moonstream API allows users to programmatically consume data about transactions and events taking place on blockchains crawled by Moonstream. Built in Python using Fast API.
crawlers: This part of the code base contains workers which extract data from blockchains, transaction pools, and other sources. We have many crawlers and each crawler can utilize a different tech stack.
db: Moonstream stores blockchain data in Postgres. This directory contains the code we use to manage the schema in our Postgres database. For sources that send higher volumes of data, we use a separate Postgres database and interface with it using Bugout.
Installation and setup
Run server with Docker Compose
If you want to deploy Moonstream in isolation against live services, then docker compose is your choice!
- Run script
backend/configs/docker_generate_env.bashwhich prepare for you:
backend/configs/docker.moonstreamapi.envwith environment variables
- Run script
db/configs/docker_generate_env.bashwhich prepare for you:
db/configs/alembic.moonstreamdb.iniwith postgresql uri
- Run local setup
docker-compose up --build