https://github.com/keep-starknet-strange/art-peace
Competitive art canvas on Starknet
https://github.com/keep-starknet-strange/art-peace
cairo full-stack onchain-game starknet
Last synced: about 2 months ago
JSON representation
Competitive art canvas on Starknet
- Host: GitHub
- URL: https://github.com/keep-starknet-strange/art-peace
- Owner: keep-starknet-strange
- License: mit
- Created: 2024-03-19T21:04:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T05:49:14.000Z (2 months ago)
- Last Synced: 2025-03-30T07:11:18.432Z (about 2 months ago)
- Topics: cairo, full-stack, onchain-game, starknet
- Language: JavaScript
- Homepage: https://art-peace.net
- Size: 118 MB
- Stars: 32
- Watchers: 18
- Forks: 52
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
![]()
***Collaborative art canvas on Starknet***
[](https://github.com/keep-starknet-strange/art-peace/actions/workflows/check.yml)
[](https://github.com/keep-starknet-strange/art-peace/actions/workflows/build.yml)[](https://github.com/keep-starknet-strange)
> Art Peace Round 2 is live!
> Check live stats on this cool [Dune Dashboard](https://dune.com/hessish/artpeace)
> And go place some pixels and draw cool shit you mfer! ==> [art-peace.net](https://www.art-peace.net)## Overview
`art/peace` is a collaborative art game where users can place pixels on a large shared canvas and receive rewards for collaborating to build art. The game will run over X days, and end with a final snapshot of the board. The goal is to give users the feeling of collectively building on a highly responsive art canvas, which they can explore, interact with, and compete on.
Some of the features include :
- **Placing Pixels** : This will be the main user interaction, where every X minutes a user will be allowed to place a pixel onto the canvas.
- **Quests** : Tasks to get extra pixels to place on-top of the one every X minutes.
- **Voting** : In addition to the base colors, there will be a vote to add new colors to the palette every day.
- **Templates** : Artwork templates used to help communities collaborate on an art piece. Bounties can be added to a template to incentivize creation.
- **NFTs** : Mint NFTs from the canvas.## Running
### Docker Run ( Recommended )
```bash
docker compose up
```To stop the run use `Ctrl-C`.
For a complete reset of the state and rebuild of the containers use :
```bash
# WARNING! This will clear the state (volumes) of all the DBs and the Devnet
docker compose down --volumes
docker compose build
```### Local Run
```bash
# Must install all the dependencies first
# Use npm install inside the `frontend` directory
# Change the user on `configs/database.config.json` for postgres
make integration-test-local
```To stop the run use `Ctrl-C`.
### Component Run
Each component can also be run individually, check the [Components](#Components) section below for more details.
## Build
### Docker Build ( Recommended )
```bash
docker compose build
```### Local Build
```bash
make build
```### Component Build
Use the `make build-X` command for each corresponding component `X`. See the [Components](#Components) section below for more details.
## Components
- **Onchain:** [Starknet contract(s)](./onchain/) for trustless onchain interactions.
- **Backend:** [Monolithic Go backend](./backend/) for managing requests, interactions, and DBs.
- **Frontend:** [Reactjs application](./frontend/) for users to interact with.
- **Indexer:** [Apibara indexer](./indexer/) for monitoring Starknet events and forwarding to the DBs.
- **Postgres:** DB for storing general data used for analytics, frontend, and backend.
- **Redis:** In memory DB used to store the compressed `Canvas` data for fast retrieval
- **tests:** Integration tests for local, docker, ...
## Dependencies
Its recommended to use `docker compose` when building and running, so the only dependencies would be [docker](https://docs.docker.com/desktop/) and [docker compose](https://docs.docker.com/compose/install/linux/)
However, it might be worth running only certain components for development/testing sometimes. Each component has various dependencies, check [dependencies.txt](./dependencies.txt) for more details.
## References
- [Diagrams](./docs/diagrams/)
- [r/place technical document](https://www.redditinc.com/blog/how-we-built-rplace)
- [Telegram](https://t.me/art_peace_starknet)
- [OnlyDust](https://app.onlydust.com/p/artpeace)## Contributors β¨
Thanks goes to these wonderful people. Follow the [contributors guide](https://github.com/keep-starknet-strange/art-peace/blob/main/CONTRIBUTING.md) if you'd like to take part.
Brandon R
π»
Adeyemi Gbenga
π»
Tristan
π»
Abdulhakeem Abdulazeez Ayodeji
π»
Trunks @ Carbonable
π»
ptisserand
π»
Mubarak Muhammad Aminu
π»
0xK2
π»
Fishon Amos
π»
Xaxxoo
π»
Mano.dev
π»
Abdulsamad sadiq
π»
Agada Gabriel
π»
Abdulqahar Usman
π»
Awe Olumide David
π»
Catherine Jonathan
π»
Emmaunuel Ejembi
π»
CollinsC1O
π»
Alfred Emmanuel
π»
princeibs
π»
Oshioke Salaki
π»
Caleb
π»
Immanuelolivia
π»
Stephanie Nwankwo
π»
Joy Adah
π»
Na'omi Emmanuel Gift
π»
Yusuf Habib
π»
drspacemn
π»
Emmanuel A Akalo
π»
Kenee Patel
π»
BillXJ
π»
Jemiiah
π»
Umar I Salihu
π»
lfg2
π»
Zintarh
π»
Naomi
π»
Supreme Labs
π»
AβΏdel β/21M
π»
jike
π»
Rumia
π»
Okoli Evans
π»
Iwueseiter
π»
Emmanuel Soetan
π»
Emmanuel AgΓΌero
π»
Babs
π»
ADR!AN
π»
![]()
Add your contributions
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!