Skip to content

Endpoint Repos

Endpoint repos are data access layers specific to a single endpoint. For shared concepts like constraint handling and repo structure, see the Repos Overview.

When to Use

  • Data operations unique to one endpoint
  • Simple CRUD that isn't shared elsewhere
  • Queries specific to a single use-case

Creating

  1. Run the CLI:
bash
pnpm devux
  1. Select "Endpoints""Manage dependencies"

  2. Choose the target endpoint

  3. Select "Endpoint repos""Create"

  4. Enter repo details:

    • Repo name (kebab-case)
    • Operation type (read, write, delete)

Note

When creating an endpoint, you're asked "Generate default repo?" - this creates a repo with the same name as the endpoint.

Location

domains/{domain}/endpoints/{endpoint}/repos/{repo}/
├── {repo}.repo.ts
├── {repo}.repo.zod.schemas.ts
└── tests/
    └── {repo}.repo.test.ts