Nx Monorepo for a Multi-Chain Token Launchpad, Next.js Frontends + NestJS Backend
A multi-chain token launchpad
Overview
The flagship monorepo for a multi-chain token launchpad, organized as an Nx workspace that houses the public-facing web applications, a NestJS API backend, and the shared libraries that connect the platform to its on-chain wallet and contract layer. It unifies frontend, backend, and Web3 integration code under a single, consistently tooled repository.
The Challenge
A launchpad needs a fast, SEO-friendly marketing and participation surface, an authenticated backend for user and sale data, and a reliable bridge to on-chain wallets and smart contracts, all moving in lockstep across releases. Keeping those concerns in separate repos invites drift; the goal here was one workspace with shared types, shared UI, and shared blockchain bindings.
What We Built
An Nx-managed monorepo with three applications, a NestJS backend (nest-hyper-be) and two Next.js frontends (next-web, next-app), backed by four shared libraries: hyper-pact-api (Kadena/Pact contract bindings), hyper-wallet and hyper-wallet-crypto (wallet and signing logic), and hyper-ui-components (a Storybook-documented component library). The frontends are built as PWAs (next-pwa, next-seo) with content sourced from DatoCMS, animated with Framer Motion, and instrumented with Sentry. The NestJS API uses JWT/Passport auth, TypeORM over PostgreSQL, and Swagger-generated OpenAPI clients. State is handled with Zustand, React Query, and SWR; styling via Theme UI and Emotion.
Technologies & Approach
Nx provides the build graph, code generators, and consistent linting/testing across React, Next.js, and Nest projects. Quality gates are enforced with Husky, Commitlint, ESLint, Jest, and Cypress. Deployment tooling includes Cloud SQL proxy scripts, OpenAPI client generation, sitemap generation, and Sentry release wiring. The pact-lang-api dependency and dedicated wallet libraries tie the web layer directly to the Kadena smart-contract stack.
Outcome / Impact
Delivered a cohesive, production-grade codebase where marketing site, app, API, and on-chain integration share types, UI, and tooling, reducing duplication and making cross-cutting launchpad features shippable from a single workspace.
Capabilities Demonstrated
- Architecting a multi-app Nx monorepo (Next.js + NestJS + shared libs)
- Building SEO-optimized PWA storefronts with a headless CMS
- NestJS API design with JWT auth, TypeORM/PostgreSQL, and OpenAPI
- Encapsulating Web3 wallet and Pact contract logic in reusable libraries
- End-to-end quality tooling: Storybook, Cypress, Jest, Sentry, commit hooks