Grant: Build with Nym
Project status: Pre-MVP
Proposed duration: 6 weeks
Team: Mohammad Modares (solo)
Requested reward: 60,000 NYM (approximately $1,640 USD at the October 2026 reference price; the USD equivalent will fluctuate)
Payout address: n1tq4z07e0txrvlw82wg4uy8rwlywwtd4mae24hc
1. Project Summary
nym-react is a proposed open-source React toolkit for building applications on Nym’s TypeScript mixnet clients. It will provide hooks (useMixTunnel, useMixFetch, useMixSocket), drop-in components for tunnel status and connection gating, and a Vite demo app that fetches public crypto prices through the mixnet and shows the privacy gain (clearnet IP vs mixnet exit IP) side by side.
Today, a React developer who wants to use Nym must wire the low-level mix-tunnel lifecycle, connection states, errors, retries and cleanup by hand in every app. nym-react will turn that into a few lines, so the next React app on Nym starts from working UI state instead of boilerplate. The toolkit will reuse Nym’s existing packages (@nymproject/mix-fetch, @nymproject/mix-websocket, @nymproject/mix-dns over @nymproject/mix-tunnel) and will not reimplement the mixnet client, a proxy, or a dashboard.
2. Problem Statement
Nym’s mixnet gives network-level privacy, and its TypeScript packages expose that to the browser — but they expose a tunnel lifecycle, not an application UI. A React developer must handle: tunnel setup (several seconds on first run), connection states, startup failures, timeouts, reconnects, cleanup on unmount, and the mix-fetch caveats (no cookies/credentials, no cache, no AbortController, HTTPS-only in practice). Each app re-solves this, and most demos either ignore the failure states or silently fall back to clearnet fetch — which defeats the point.
There is no React integration layer for Nym today. The docs’ examples are framework-free, and the community’s recent builds are CLIs, gateways and test harnesses — not reusable UI building blocks for the framework most web apps are written in.
3. Proposed Solution
nym-react will deliver:
A. Hooks
useMixTunnel()— bring the shared tunnel up/down, expose state (idle | connecting | connected | error), tunnel latency and exit info.useMixFetch()— mixnet fetch with loading/error/retry state, timeout, and an HTTPS-only guard.useMixSocket()— mix-websocket connection with message state and reconnect.useMixDns()— hostname resolution through the mixnet.
B. Components
<MixnetStatus />— live tunnel state, latency and exit indicator.<MixnetGate />— renders children only when the tunnel is up; otherwise shows connection UI. No silent clearnet fallback anywhere in the package.
C. Demo app (“Private Prices”)
- A Vite + React app that fetches BTC/ETH prices from a public API through mix-fetch, shows the IP the server sees via clearnet vs via the mixnet, and displays a visible “routed via mixnet / no clearnet fallback” indicator. Deployed as a public static site.
D. Docs and examples
- README with install + 5-minute quickstart, two runnable example apps (price checker, websocket ticker), API docs, and a “what this does not do” section (no anonymity proof, no credential/cookie support, latency expectations).
4. Technical Architecture
- TypeScript, React 18+, Vite for the demo and examples; Vitest for tests; published to npm under MIT.
- Built on
@nymproject/mix-fetch,@nymproject/mix-websocket,@nymproject/mix-dns(shared@nymproject/mix-tunnelsingleton — one tunnel, one WASM instance, no duplicate tunnels per hook). - Package versions pinned with a committed lockfile; versions and APIs verified during Milestone 1 before being committed to.
- The package will not collect user traffic, store network identifiers, or claim to prove anonymity. It will surface observable tunnel behaviour only.
5. Milestones and Acceptance Criteria
Milestone 1: Scope validation and API design — Weeks 1–2 — Proposed reward: 12,000 NYM
- Deliverables: review of Nym TS docs, package interfaces and existing ecosystem helpers; published gap/differentiation note; hook + component API design; public repo, starter example and development plan.
- Acceptance criteria: one published API design doc; at least 8 defined usage scenarios (connect, fetch, socket, DNS, timeout, error, reconnect, unmount); documented findings on what already exists; a revised scope if Nym contributors identify substantial duplication.
Milestone 2: Hooks, components and demo app — Weeks 3–4 — Proposed reward: 24,000 NYM
- Deliverables:
useMixTunnel,useMixFetch,useMixSocket,useMixDns,<MixnetStatus />,<MixnetGate />; “Private Prices” demo app working against the live mixnet; Vitest suite. - Acceptance criteria: all hooks usable from a fresh Vite + React app in under 10 lines of integration code; demo shows clearnet vs mixnet exit IP side by side; at least 12 automated tests passing; no code path falls back to clearnet fetch; public install + usage docs.
Milestone 3: Release, examples and final report — Weeks 5–6 — Proposed reward: 24,000 NYM
- Deliverables: versioned npm release; second example app (websocket ticker); full docs, known limitations and contribution guide; final report posted in this thread.
- Acceptance criteria: successful npm publish + install from a clean project; both example apps run against the live mixnet; two external developer reviews or pilot attempts targeted; public release and final report covering results, limitations and feedback. (External participation is a target, not a confirmed commitment.)
Total proposed: 60,000 NYM.
6. Value to Nym
nym-react aims to make Nym’s browser packages as easy to adopt as any other React data-fetching library. Success will be measured by: hooks/components shipped and tested; the demo and examples running against the live mixnet; npm installs and GitHub stars; external developer reviews/pilots; and documented integration issues found along the way. It will not claim to prove anonymity, guarantee application security, or replace security review.
7. Team
Mohammad Modares (solo) — @mohammad-modares on GitHub
- 2 years coding; JavaScript/TypeScript/Node.js, React + Vite; Android apps shipped on Google Play; Ethereum beginner.
- Public work (all Vite + React + TypeScript, shipped Nov 2026): Crypto Glance (GitHub - mohammad-modares/crypto-glance: Crypto Glance — glanceable crypto digest for Even Realities G2 smart glasses (Heads Up hackathon, Crypto & DeFi track) · GitHub) — live crypto prices, Fear & Greed, ETF flows; Dead Coin Graveyard (GitHub - mohammad-modares/dead-coin-graveyard: Dead Coin Graveyard — a memorial for dead and rugged cryptocurrencies. Kiroween 2026 (Resurrection). · GitHub) — live site + demo video; Decision Ledger (Forge app for Jira/Confluence); VeilVote (private voting, X Layer); Trusted Agent ID (Concordium x Encode).
- No prior Nym-specific implementation experience — stated honestly. Milestone 1 is deliberately designed to verify the API surface and differentiation before the full build.
8. Open-Source Commitment
Hooks, components, demo app, examples and documentation will be released under the MIT licence. The repository will document supported package versions, setup, configuration, known limitations and contribution guidelines, and will be usable without ongoing assistance from Nym’s team.
9. Reward and Budget Justification
Requested reward: 60,000 NYM, approximately $1,640 USD at the October 2026 reference price. The grant will be denominated in NYM, so its USD-equivalent value can change.
Indicative use of funds (planning estimates, not fixed USD payments):
- Hooks, components and state machine: $700
- Demo app + second example: $400
- Tests, docs and npm release: $300
- QA, review feedback and reporting: $240
- Total indicative budget: $1,640.
The figure is set below the 100,000 NYM ceiling and below NymConform’s 98,800 NYM (two people, six weeks), and above the 10,000 NYM single-milestone pattern for small follow-ups — reflecting a solo six-week build with a shipped library plus two working apps. The final reward and milestone arrangements will be agreed with the Nym Squad League before work begins.
10. Closing
nym-react aims to give React developers the shortest path from “I want privacy” to a working mixnet app, with honest failure states and no silent clearnet fallback. Feedback is welcome — especially on the hook API, the most useful first components, and anything that already covers this ground. Milestone 1 exists to check differentiation before committing to the full build.
Contact: GitHub @mohammad-modares · X @0xmadirax · Telegram @madirax