# @sudobility/screenwriter_types

> Shared TypeScript types and Zod schemas for the Fadewright frontend and backend

Latest version **0.1.3** (published 2026-09-23) · BUSL-1.1 license · 0 weekly downloads

## Install

```sh
npm install @sudobility/screenwriter_types
pnpm add @sudobility/screenwriter_types
yarn add @sudobility/screenwriter_types
bun add @sudobility/screenwriter_types
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2026-09-23 |
| First published | 2026-09-23 |
| Weekly downloads | 0 |
| License | BUSL-1.1 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 853.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sudobility |
| Maintainers | johnqh |

## Links

- npm: https://www.npmjs.com/package/@sudobility/screenwriter_types
- Repository: https://github.com/johnqh/screenwriter_types
- Homepage: https://github.com/johnqh/screenwriter_types#readme
- Issues: https://github.com/johnqh/screenwriter_types/issues
- npm.io page: https://npm.io/package/@sudobility/screenwriter_types

## Dependencies (4)

- [zod](https://npm.io/package/zod.md) ^4.6.5
- [lib0](https://npm.io/package/lib0.md) 0.2.117
- [@sudobility/types](https://npm.io/package/@sudobility/types.md) ^1.9.67
- [@sudobility/writing_core](https://npm.io/package/@sudobility/writing_core.md) ^0.1.2

## Recent versions

- 0.1.3 (latest) — 2026-09-23
- 0.1.2 — 2026-09-23
- 0.1.1 — 2026-09-23

## README

# @sudobility/screenwriter_types

Shared TypeScript types and Zod schemas for the Fadewright screenwriting app, used by both the frontend and the backend.

## Contents

- API envelope helpers, error codes, cursor pagination, and a route table
- Workspace, project, document, template, version and snapshot types
- Request schemas (projects, documents, snapshots, commands, `/me`)
- Sync WebSocket frame schemas and close codes
- Fixture factories under `@sudobility/screenwriter_types/test`

## Usage

```ts
import { successResponse, errorResponse, documentCreateSchema } from '@sudobility/screenwriter_types';

const body = documentCreateSchema.parse({ title: 'Draft', kind: 'script' });
return successResponse(body);
```

## Development

```bash
bun install
bunx tsc --noEmit
bunx vitest run
```

This package currently resolves `@sudobility/writing_core` from a sibling checkout by path and is not published.

## License

BUSL-1.1

---
_Source: https://npm.io/package/@sudobility/screenwriter_types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
