The Grid Frontend is built with the following stack:
- Framework - Next.js 16
- Language - TypeScript
- Styling - Tailwind CSS
- Components - Shadcn-ui
- Schema Validations - Zod
- State Management - Zustand
- Search params state manager - Nuqs
- Auth - Auth.js
- Tables - Tanstack Tables
- Forms - React Hook Form
- Command+k interface - kbar
- Linting - ESLint
- Pre-commit Hooks - Husky
- Formatting - Prettier
Note
We are using Next 16 with React 19, follow these steps:
Clone the repo:
git clone https://github.com/AIPowerGrid/grid-frontend.git
pnpm install( we have legacy-peer-deps=true added in the .npmrc)- Create a
.env.localfile by copying the example environment file:cp env.example.txt .env.local - Add the required environment variables to the
.env.localfile. pnpm run dev
You should now be able to access the application at http://localhost:3000.
The console is a Next.js backend-for-frontend for Grid core. Browser components
call same-origin /api handlers; those server handlers attach the authenticated
Grid session key. Accounts, API keys, usage, workers, validator scorecards, and
payouts live in Grid core. The console does not require direct database access.
Production currently deploys on Vercel. The checked-in Cloudflare/OpenNext import is incomplete and is not a supported deploy path until its package, Worker configuration, build, and runtime smoke tests are committed together.
The released local operator app creates and keeps a dedicated validator signer and scoped key on the node. A personal wallet or Console-created key is not required to start a node.
The new Console pairing flow is under review, not a public enablement. It pairs
an existing node with an existing human account for private status visibility.
The human approves in the Console, compares a code, then confirms separately in
the local app. No node keys, payout rights, account merges, or economic authority
are transferred. Core migration 0030, the node client, and a supervised canary
must land before enabling Core's default-off VALIDATOR_PAIRING_ENABLED flag.
Run pnpm build, pnpm test:auth-smoke, and pnpm test:validator-pairing for
local verification. pnpm test:validator-pairing --ui starts a test-only mock
Core/sign-in fixture for browser QA; it uses no real accounts or production keys.
See validator DOX for contracts and rollout
gates. Preview.12 does not yet contain local-app pairing controls.