Developers, artists, creators, marketers, community leads, KOLs and investors find each other, form a team, agree on the work in a wallet-signed pact, and split what they earn exactly as agreed.
Bring your skill. Find your team. Build together.
The landing page lives in the pactora repo. Its "Join a team" form posts to this app's waitlist and opens sign-up with the email filled in.
- X: @JoinPactora
- Telegram: t.me/pactorateam
Needs Node 22.5+ (tested on 24).
npm install
npm run seed # demo people + projects (SQLite, server/data)
npm run dev # API http://127.0.0.1:8848 · web http://127.0.0.1:5188server/.env for local dev:
PUBLIC_URL=http://127.0.0.1:5188
DEV_TOOLS=1
SOLANA_CLUSTER=devnet
With DEV_TOOLS=1, email codes appear in a toast (no SMTP needed). The wallet dialog offers test wallets (alice / bob / carol) in dev. Use different browser profiles to act as several team members.
- Postgres: set
DATABASE_URL. The schema migrates on start. - Copy
.env.example→server/.envand fill it in (SMTP, Google OAuth, Telegram bot, Solana RPC, admins). npm run build && npm start. The API serves the built web app. Put it behind HTTPS.- Back up the database and
UPLOAD_DIR. - Make yourself admin:
npm run admin -- grant <handle|email|wallet>. - On the landing page set
window.PACTORA_APP_URL(or it defaults tohttps://app.<landing domain>).
npm test # API on SQLite
TEST_DB=pg npm test -w server # same suite on Postgres (PG_TEST_URL, default postgres://pactora:pactora@127.0.0.1:55432/pactora)
VITE_DEV_WALLET=1 npm run build -w web && npm run test:ui # Chrome drives the real UI end to end (CHROME_PATH=/path/to/chrome)
LANDING_URL=http://127.0.0.1:8765 npm run test:ui # also checks the landing-page hand-off
node e2e/shots.mjs # design screenshots of the running dev appThe API suite covers:
- wallet, email-code and Google sign-in (with a fake Google that issues real signed tokens), account linking and unlink guards;
- uploads (content sniffing, size limits, ownership);
- the full project → pact → milestone → earnings loop, with exact payout maths;
- notifications by email and Telegram;
- on-chain payout verification against a fake RPC (wrong amount, failed or replayed transactions);
- moderation (reports, suspension, hidden projects) and the waitlist CORS / origin guard.
The UI test starts its own server and a fake Solana RPC that checks transaction signatures. It drives three users through every flow:
- a Wallet Standard wallet, a legacy
window.phantom.solanaprovider and a dev wallet; - email-code sign-up;
- the landing-page hand-off;
- a cover upload;
- a pact signed with all three wallets;
- a USDC payout built in the browser, signed by the wallet and verified by the server;
- moderation and the mobile layouts.
| Step | What happens | Enforced by the server |
|---|---|---|
| Account | Sign up with email code, Google or a Solana wallet; link the others in Settings | Codes: 6 digits, 10 min, 5 attempts, rate-limited. Google: PKCE + nonce + verified ID token. Wallet: single-use signed nonce. Each email/wallet/Google account belongs to one user; you always keep one sign-in method |
| Profile | Handle, roles, skills, links, avatar, work samples (images, PDFs) | Uploads are typed by their bytes, size-limited, served with nosniff + sandbox CSP |
| Project → apply → talk | Open roles with rough pay; private thread with the owner | One pending application per person |
| Pact | Deliverables, review, pay (fixed / vesting tokens / earnings share / mix), ownership, leaving, reserve, 2% fee opt-in | Frozen + sha256-hashed when sent. Every member signs with their wallet. Active only when all signed. Any change clears all signatures |
| Milestones | "Done when" criteria, assignee, due date | Only the assignee submits; someone else in the pact reviews |
| Earnings | Revenue − expenses − reserve − (2% if opted in) = pool, split by pact shares | Every share holder approves. SOL/USDC payouts are sent from the owner's wallet and verified on-chain (right recipient, at least the owed amount, confirmed, no reuse) before they count |
| Messages | Direct messages from any profile, plus each application conversation and team discussion, all live | First message is a request: one message until accepted, links hidden until then; replying accepts. Block (both ways), report any message, 20 new requests/day. Scam patterns (seed phrase, "send SOL", "verify wallet", addresses) get a warning. Read receipts only once accepted |
| Notifications | In-app bell + inbox; email and Telegram per user settings | Instant over a live stream when you're online; email/Telegram only when you're away, once per chat until you catch up |
| Moderation | Report users, projects, messages; admins suspend, hide, remove | Every admin action is audit-logged |
Pactora never holds funds. The $PACT token, the Pactora treasury and each project's earnings are separate, and nothing is gated on holding $PACT.
server/ Fastify + TypeScript
src/db.ts SQLite (node:sqlite) or Postgres (pg), one async API, portable schema
src/auth.ts email codes, Google OIDC, wallet sign-in, linking, sessions
src/uploads.ts file uploads src/notify.ts / mailer.ts / telegram.ts notifications
src/solana.ts on-chain payout verification + RPC proxy allow-list
src/realtime.ts live updates (Server-Sent Events) src/chat.ts read receipts, scam warnings, link masking
src/routes/ users, projects, pacts, work (milestones, ledger, payouts), admin, misc (waitlist, telegram, notifications)
web/ Vite + React + framer-motion
src/wallet.ts Wallet Standard + legacy providers + mobile deep links + dev wallets
src/pay.ts builds/sends SOL or USDC payouts (lazy-loaded)
src/realtime.tsx one live connection per browser (Web Locks leader + BroadcastChannel to other tabs)
src/pages/ Home, Explore, People, SignIn, Onboarding, ProjectPage (+ PactTab, WorkTabs), Profile, Settings, NewProject, Inbox, Admin
e2e/ ui-flow.mjs (browser test), shots.mjs (screenshots)
-
One server process for live updates. To run several API instances, fan events out through Redis pub/sub or Postgres LISTEN/NOTIFY in
realtime.tspublish(). Serve over HTTP/2 in production. -
No escrow contract. Payouts go wallet to wallet and are verified. On-chain escrow would need an audited Solana program.
-
Real-wallet testing. Real Phantom, Solflare and Backpack extensions are not driven in CI. Wallet behaviour is tested with mocks of both wallet APIs; do a manual pass with real wallets on devnet before launch.
-
Uploads use local disk. Use a mounted volume, or swap in S3/R2, when you run more than one server.
Bug reports and pull requests are welcome. Read CONTRIBUTING.md first. Report security problems privately as described in SECURITY.md, not in public issues.
Inter, Newsreader, DM Mono and Pinyon Script are used under the SIL Open Font License, installed from npm through Fontsource. The role photos, crew-city art, role coins and brand marks in web/public are Pactora's own. Phantom, Solflare and Backpack logos are trademarks of their owners and are shown only to label their wallets.
$PACT is a community memecoin on Solana. Holding it gives no ownership of Pactora, no share of any project's earnings and no trust badge, and you don't need it to use the app. Nothing here is financial advice.
MIT. See LICENSE.