# @workflow/serde

> Serialization symbols for custom class serialization in Workflow SDK

Latest version **4.1.2** (published 2026-06-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @workflow/serde
pnpm add @workflow/serde
yarn add @workflow/serde
bun add @workflow/serde
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.1.2 |
| Published | 2026-06-11 |
| First published | 2026-01-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2399 |

## Links

- npm: https://www.npmjs.com/package/@workflow/serde
- Repository: https://github.com/vercel/workflow
- Homepage: https://github.com/vercel/workflow#readme
- Issues: https://github.com/vercel/workflow/issues
- npm.io page: https://npm.io/package/@workflow/serde

## Recent versions

- 4.1.2 (latest) — 2026-06-11
- 5.0.0-beta.2 (beta) — 2026-05-28
- 4.1.1 — 2026-04-16
- 5.0.0-beta.1 — 2026-04-16
- 5.0.0-beta.0 — 2026-04-08
- 4.1.0 — 2026-04-07
- 4.1.0-beta.2 — 2026-02-02
- 4.0.1-beta.1 — 2026-01-21

## README

# @workflow/serde

Serialization symbols for custom class serialization in Workflow SDK.

## Usage

<!-- @skip-typecheck - self-referential import -->

```ts
import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';

class MyClass {
  constructor(public value: string) {}

  static [WORKFLOW_SERIALIZE](instance: MyClass) {
    return { value: instance.value };
  }

  static [WORKFLOW_DESERIALIZE](data: { value: string }) {
    return new MyClass(data.value);
  }
}
```

## License

Apache-2.0

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