Skip to content

AxelMth/repoflow-example-shared

Repository files navigation

@repoflow-example/shared

Shared Zod schemas and TypeScript types for repoflow-example-web and repoflow-example-api.

See repoflow-metarepo-example for the full picture of how these repos fit together.

Usage

This package is installed via GitHub URL (no npm publish needed):

"@repoflow-example/shared": "github:axelmth/repoflow-example-shared#main"

API

import { HelloResponseSchema, type HelloResponse } from '@repoflow-example/shared'

HelloResponseSchema

Zod schema validating the GET /api/hello response:

{
  message: string      // e.g. "Hello from Fastify at 2026-04-18T16:00:00.000Z"
  timestamp: string    // ISO 8601 datetime
}

Development

pnpm install
pnpm build
pnpm test

Part of the repoflow-examples collection:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors