Hype StackHypeStack

Development Overview

This section covers how to work with the Hype Stack codebase day-to-day: the folder structure, dev workflow, and key concepts.

Repo layout after create

my-app
  • apps/
  • backend/

    Hono API, Prisma, Kysely, Valkey, S3 client

  • prisma/

    schema and migrations

  • src/features/

    domain modules (grows with packs)

  • src/routes/

    thin HTTP routers

  • frontend/

    React 19, TanStack Router, Tailwind, HyperFetch, Electron

  • src/routes/

    file-based pages

  • src/features/

    UI modules

  • src/api/

    typed HyperFetch SDK

  • packages/

    shared types, utils, configs

  • docker-compose.yml

    Postgres, Valkey, object storage

  • stack.json

    apps, installed packs, deploy records

  • nx.json

    task graph and caching

  • pnpm-workspace.yaml

    workspace package list

After a SaaS starter pack

Installing WorkOS or Better Auth adds (among other files):

my-app
  • apps/
  • admin/

    operator dashboard on its own Vite app

  • backend/src/
  • features/auth/

    login, sessions, password flows

  • features/organizations/

    orgs, invitations, settings

  • middleware/auth/

    withAuthUser, admin guards

  • middleware/permissions/

    hasAccess + CASL

  • frontend/src/routes/
  • (private)/

    auth-gated app shell

  • onboarding/

    create or join an org

  • login/

    sign-in screens

Feature packs (billing, teams, notifications, projects) add more modules under the same trees. See Authentication and Organizations.

Dev loop

Start everything with one command:

bash
pnpm dev

This runs both the backend and frontend dev servers through Nx, with hot reload on both sides. The backend runs on port 3000, the frontend on port 4200. After a starter pack, the admin app starts too.

Where things live

WhatWhere
API routesapps/backend/src/routes/
Feature modulesapps/backend/src/features/
Database schemaapps/backend/prisma/
Frontend pagesapps/frontend/src/routes/
UI featuresapps/frontend/src/features/
Shared componentsapps/frontend/src/components/
API client (SDK)apps/frontend/src/api/
Theme tokensapps/frontend/assets/styles.css
Env variables.env files in each app

In this section

The Expo app has its own page: Mobile.

Sponsor open source

Every purchase and sponsorship funds my 8+ years of work on open source given freely to the community. It keeps the lights on, funds new packs, and keeps the ecosystem alive. Even a small tier means a lot. Thank you!

Sponsor on GitHub