@vibe-withgov/shared

v1.2.11

Published

Shared constants, types, error codes, billing catalogue, and model definitions for API and UI

Downloads

1,455

Readme

@vibe/shared

Shared constants, types, error codes, and AI model definitions used by both api/ and ui/.

Modules

  • @vibe/shared/constants — Roles, enums, plan tiers, billing intervals
  • @vibe/shared/error-codes — Machine-readable API error codes
  • @vibe/shared/types — Shared DTO/response type interfaces
  • @vibe/shared/models — AI model registry, tier gating

Usage

import { PlanTier, WorkspaceRole } from '@vibe/shared/constants';
import { ErrorCode } from '@vibe/shared/error-codes';
import type { Project, UserProfile } from '@vibe/shared/types';
import { MODELS, getAvailableModels } from '@vibe/shared/models';