Skip to content
@piggygang

piggygang

Piggy SOL Gang cover art Piggy Girl Gang cover art Pig Mud cover art

🐷 Piggy Gang

Apps and art for the whole gang — start anywhere.

piggygang.net Discord X

Rust Solana Postgres 17 Next.js

Four NFT collections on Solana, a Rust indexer that knows everything about them, and five web apps on top — all built in the open.


The gang

Collection Supply Standard Where
Piggy SOL Gang — ten thousand piggies, straight off the chain 10,000 Token Metadata Magic Eden
Piggy Girl Gang — pretty, fierce and dressed for it 5,000 Token Metadata Magic Eden
Piggy Gang — same ten thousand piggies, meaner art 10,000 Metaplex Core Magic Eden
Pig Mud — something's coming 2,073 Token Metadata Coming soon
$PIGGY — the gang's coin SPL, 9 decimals Solscan

Piggy Gang is Piggy SOL Gang wearing new clothes: swapping burns the Token Metadata mint and creates a Metaplex Core asset with the same number. Same piggy, redrawn.


How it's built

  • One spec runs the whole stack. The indexer's OpenAPI file is frozen and hand-written; the explorer vendors a byte-identical copy, generates its typed client from it, and CI fails if the two drift apart. Changing the contract is always two commits — indexer first.
  • The frontend shipped before the backend. With nothing configured, the explorer serves committed fixtures through the very same generated client the real API will use. One server-side variable switches it over.
  • The database makes two owners unrepresentable. Ownership is stored as intervals with a GiST EXCLUDE constraint, so no NFT can have two open owners at once — not by convention, by the schema.
  • Search is quick. Filtering 10,000 NFTs by traits benches at a p50 of 40 ms on Postgres 17 — 5 ms for text search — against an acceptance bar of 100 ms.
  • One package talks to Solana. @wallet-standard/app, and nothing else: no web3.js, no wallet-adapter, no Buffer polyfill. The browser builds the transaction, the wallet signs it, the app just watches the signature. No key ever reaches a server.
  • Adding a collection is config, not code. One entry in collections.toml plus a mint list. Not a single on-chain address appears in Rust, SQL or tests.
  • Raffles are free, and provably fair. Entering never costs anything but gas. A Switchboard VRF picks the winner, and anyone can recompute the result from the published proof.
  • We kept the art. The collections' original image host went dark. The metadata was re-hosted, the renders were committed, and what survives in these repos may be the only complete copy left.

Repos

Repo Lang What it does Status
indexer Rust Indexes every Piggy NFT — traits, owners and full history — and serves them over a REST API 🔨 Building
explorer TypeScript Search the collections by trait, look up a wallet, read an NFT's history 🧪 Preview · explorer.piggygang.net
dressme TypeScript Dress your piggy up in any traits you like and download the picture Live · dressme.piggygang.net
raffles TypeScript Free raffles for holders — nobody ever pays to enter 🧪 Preview · raffles.piggygang.net
alpha-art TypeScript alpha.art coming back as an open Solana marketplace 🧪 Preview · alpha.art
website TypeScript The hub — every app and collection in one place Live · piggygang.net

Next up: Migration — swap your piggy to the new art.


The stack

The backend is Rust 1.90 — actix-web, sqlx and Postgres 17.6, deployed on Railway. Every frontend is the same shape on purpose: Next.js 16 App Router, React 19, Tailwind v4, Node 24 and pnpm 11, on Vercel. Clone one and you already know the next.

Rust, Actix, Solana, Postgres, TypeScript, Next.js, React, Tailwind

piggygang.net · Discord · X · GitHub

Piggy SOL Gang (10,000) · Piggy Girl Gang (5,000) · Piggy Gang (10,000 — same piggies, meaner art) · Pig Mud (2,073) · $PIGGY

Popular repositories Loading

  1. dressme dressme Public

    Dress-up web app where holders customize their Piggy collectible with layered traits and download the result.

    TypeScript

  2. indexer indexer Public

    NFT indexer and REST API for the Piggy Solana collections — DAS backfill, live streaming, faceted attributes, owners and full transaction history.

    Rust

  3. website website Public

    piggygang.net — the Piggy Gang hub: apps and art for the whole gang, start anywhere.

    TypeScript

  4. alpha-art alpha-art Public

    alpha.art — the Solana NFT marketplace, returning as an open-source exchange by Piggy Gang.

    TypeScript

  5. explorer explorer Public

    Public explorer for the Piggy collections — faceted attribute search, owner lookup and per-NFT transaction history.

    TypeScript

  6. raffles raffles Public

    Free raffles for holders of the three Piggy collections — nobody ever pays to enter.

    TypeScript

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…