GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gear-foundation/VaraGov: OpenGov governance application for Vara Network

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
components
components
 
 
docs
docs
 
 
lib
lib
 
 
prisma
prisma
 
 
public
public
 
 
scripts
scripts
 
 
tests
tests
 
 
worker
worker
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
Dockerfile
Dockerfile
 
 
HANDOFF.md
HANDOFF.md
 
 
README.md
README.md
 
 
SPEC.md
SPEC.md
 
 
docker-compose.yml
docker-compose.yml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
next.config.ts
next.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
prisma.config.ts
prisma.config.ts
 
 
renovate.json
renovate.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

VaraGov

Self-hosted OpenGov governance UI for Vara Network — referenda list, live tallies and threshold curves, conviction voting, a guided referendum-creation wizard, and wallet-signed off-chain titles/descriptions/comments.

Taking over this project? Read HANDOFF.md first — status, verified/unverified surface, pitfalls, remaining work. Full specification: SPEC.md. Screenshots: docs/screenshots/.

Stack

Next.js (App Router, TS) · @polkadot/api · Tailwind 4 · Postgres + Prisma 7 · worker process indexing finalized blocks from the public Vara archive nodes.

Development

npm install
cp .env.example .env              # DATABASE_URL for local Postgres
docker compose up -d postgres     # local Postgres on :5432
npx prisma migrate dev            # apply migrations + generate client
npm run dev                       # web on :3000
npm run worker                    # event listener (separate terminal)
npm run backfill                  # one-time: import 78 historical referenda
npm run check                     # self-checks: curve math + SIMA API (needs dev server)
npm test                          # fast unit tests (no DB or RPC required)

Production (single VPS)

docker compose --profile prod up -d --build   # web + worker + postgres

Set a strong VARAGOV_DB_PASSWORD, then put Caddy/nginx with TLS in front of :3000. Postgres is bound to localhost only; the production profile applies migrations before starting the web and worker services.

Architecture notes

  • Live state (tallies, tracks, my votes) is read straight from chain RPC — the DB is never authoritative for ongoing referenda.
  • Final tallies exist ONLY in the terminal events (Confirmed/Rejected/…); the worker captures them and snapshots the per-voter breakdown from the parent block's state. Missed blocks are re-processed on restart via the archive node (cursor in WorkerCursor).
  • Off-chain content is SIMA-style: each title/description/comment is a standalone wallet-signed JSON message, verified server-side (proposer check for titles, existential-deposit + rate-limit gate for comments). No sessions or cookies.
  • Known limitation: wallets without signRaw (Ledger) can vote but not comment.

About

OpenGov governance application for Vara Network

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.