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, an on-chain raffle program and six 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 8,127 Token Metadata Magic Eden
Piggy Girl Gang — pretty, fierce and dressed for it 4,801 Token Metadata Magic Eden
Piggy Gang — meaner art, one migration at a time 745 Metaplex Core Magic Eden
Pig Mud — straight out of the mud 2,039 Token Metadata No listing yet
$PIGGY — the gang's coin — SPL, 9 decimals Solscan

Supply leaves out burned NFTs, as read from the indexer on 8 November 2026. piggygang.net always shows today's.

Piggy Gang is Piggy SOL Gang in new clothes. Migrating takes two Piggy SOL Gang: both burn, and the one you picked comes back as a Metaplex Core asset with the same number and redrawn art. It is one transaction, so if the mint fails, neither piggy burns.


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.
  • In the browser, one package talks to Solana. @wallet-standard/app, and nothing else: no web3.js, no wallet-adapter, no Buffer polyfill. The wallet signs and broadcasts, the app just watches the signature, and no holder's 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.
  • Free is load-bearing. A paid ticket would make a raffle a lottery, so nobody ever pays to enter. Each Piggy you enter earns an entry, up to ten, and a Full Gang — one each from Piggy SOL Gang, Piggy Girl Gang and Piggy Gang — adds three more. Entrants pay only network gas, and the rent their entries front comes back when the raffle settles.
  • The program will hold the prize. Once it ships, prizes will sit in on-chain escrow from the moment a raffle opens, and not even the admin multisig will be able to redirect one. A VRF draw will pick the winner, and anyone will be able to recompute it from the published randomness.
  • Tests run real mainnet programs. The raffle program's suite runs in-process on LiteSVM against Token Metadata and mpl-core bytecode dumped from mainnet — no validator, about a tenth of a second. Every deploy ships a reproducible build whose hash anyone can check on chain.
  • Hosts die; the art doesn't. The collections' image hosts have gone dark twice. Every file still on a third-party host is backed up — about 21 GB, with a sha256 for each — and every on-chain URI is moving to our own domain, assets.piggygang.net, so the next storage move is a rewrite, not another on-chain update.

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 ✅ Live · api.indexer.piggygang.net
raffles-program Rust The Anchor program behind Raffles — prize escrow, free entries, the draw and rent refunds 🔨 Building
explorer TypeScript Search the collections by trait, look up a wallet, read an NFT's history ✅ Live · 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
migrate TypeScript Swap your piggy to the new art — two Piggy SOL Gang in, one Piggy Gang out 🔨 Building
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

  • Raffles v1 — the program, a draw crank and the app, through devnet acceptance to mainnet.
  • Collection upgrades — every collection's metadata on assets.piggygang.net, Pig Mud's image back, certified Piggy SOL Gang and Piggy Girl Gang collections, and full Piggy Gang history in Explorer.
  • Migration — migrate.piggygang.net opens to every holder.

The stack

The backend is Rust 1.90 — actix-web, sqlx and Postgres 17.6, deployed on Railway. On chain, Raffles is an Anchor 1.2 program on Rust 1.95, tested in-process on LiteSVM. 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 · Piggy Girl Gang · Piggy Gang · Pig Mud · $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 9 of 9 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…