Skip to content

teamreflex/cosmo-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0488f9f · Feb 24, 2025
Nov 23, 2024
Feb 1, 2025
Feb 22, 2025
Feb 24, 2025
Apr 22, 2024
Feb 22, 2025
Dec 7, 2024
Dec 23, 2024
Jan 16, 2025
Apr 22, 2024
Jan 6, 2025
Feb 17, 2025
Jan 6, 2025
Feb 21, 2025
Apr 22, 2024
Nov 18, 2024
Feb 1, 2025
Nov 21, 2024
Feb 23, 2025
Feb 21, 2025
Feb 21, 2025
Nov 23, 2024
Feb 6, 2025
Feb 1, 2025
Feb 1, 2025
Dec 22, 2024
Feb 24, 2025

Repository files navigation

cosmo-web (Apollo)

This project aims to build a web based version of MODHAUS' Cosmo: the Gate mobile application, replicate its core features as close as possible, and add new features on top.

Apollo is not affiliated with, endorsed by or supported by MODHAUS or its artists.

Replicated Features
  • Signing into COSMO accounts via Ramper magic links
  • Viewing in-app news feed and exclusive COSMO content
  • Sending objekts over the Polygon blockchain
  • Scanning objekt QR codes
  • Claiming event rewards
  • Completing objekt grids
  • View and vote in Gravity events
  • View and like Rekord posts
  • View activity history, rankings, badges
New Features
  • "lock" objekts to prevent them from being traded (like the Superstar games)
  • View other user's collections via COSMO or Polygon blockchain
  • Pin objekts to the top of your profile
  • Extensive profile privacy options
  • View an index of every released objekt, number of copies and how it's obtained
  • Wishlist builder with sharable links
  • Calendar to see when monthly COMO drops are coming
  • View objekt transfers
  • Per member, season and class collection progress breakdowns
  • Collection completion leaderboards
  • Scan an objekt without claiming
  • Indicator for Polygon network disruptions

Requirements

  • Node.js 22.x
  • Alchemy API key
  • Neon instance
    • Or swap this out for another Postgres compatible database with minimal code changes
  • Postgres instance with HTTP proxy
    • The accompanying blockchain indexer has containerized Postgres 15.5 and an HTTP proxy running under Bun.
    • Migration files can also be found there
  • Alternatively, you can use Docker to run a local Postgres instance with two databases, a Neon serverless proxy and a Drizzle HTTP proxy.

Setup (Neon)

git clone git@github.com:teamreflex/cosmo-web.git
cd cosmo-web
pnpm install
cp .env.example .env.local
pnpm db:migrate
pnpm dev

Setup (Local Docker)

Download a copy of the indexer database from MEGA and place it into the root of the project. This contains:

  • All objekt collections as of 240422
  • Objekt transfers between 240422 and 240330~
  • Objekt ownership between 240422 and 240330~
git clone git@github.com:teamreflex/cosmo-web.git
cd cosmo-web
pnpm install
cp .env.example .env.local
docker compose up -d
psql -U postgres -h db.localtest.me -d indexer -f indexer-trimmed.sql
pnpm db:migrate
pnpm dev

Contributing

Contributions are appreciated, but unless it has been previously discussed or is small enough that it can't pose a risk, it likely won't be accepted and will be rewritten manually.

The project is considered source available rather than open source, meaning that codebase is available for scrutiny and for outside sources to verify nothing malicious is happening. Every month there is thousands of new sign-ins and even more active sessions refreshing. All it takes is one malicious line of code to slip through for thousands of accounts to be compromised.

If you've found a bug, please make an issue on GitHub or a thread in the Discord server.

As for feature requests, they will be considered on a case-by-case basis due to technical limitations or potential line-crossing.

Tooling

License

Licensed under the MIT license.

Contact