Package build metrics
Alpha
DSAR is currently in alpha. APIs, package surfaces, configuration, and documentation may change as the project evolves.
Compile times and bundle sizes for each package using tsdown v0.20.3 (rolldown v1.0.0-rc.3). Compile time = tsdown "Build complete" duration; bundle size = total file size in dist/ excluding source maps.
| Package | Compile | Bundle |
|---|---|---|
| @dsar/backend | 2.25 s | 246.4 KB |
| @dsar/cli | 2.73 s | 38.7 KB |
| @dsar/core | 1.51 s | 11.6 KB |
| @dsar/guards | 1.21 s | 3.6 KB |
| @dsar/inbound-resend | 1.53 s | 21.6 KB |
| @dsar/internals-error-codes | — | — (src) |
| @dsar/node-sdk | 1.21 s | 44.3 KB |
| @dsar/outbound-resend | 1.37 s | 14.7 KB |
| @dsar/persistence | 1.35 s | 55.4 KB |
| @dsar/persistence-pg | 1.22 s | 2.4 KB |
| @dsar/persistence-sqlite | 1.34 s | 3.0 KB |
| @dsar/policy-engine | 2.30 s | 26.1 KB |
| @dsar/policy-packs | 2.34 s | 57.4 KB |
| @dsar/schema | 1.39 s | 37.0 KB |
| @dsar/storage-filesystem | 1.44 s | 19.8 KB |
| @dsar/storage-s3 | 1.64 s | 26.9 KB |
| @dsar/storage-vercel-blob | 1.41 s | 19.3 KB |
| dsar | 1.78 s | 1.0 KB |
Totals: 16 bundled packages, 628.2 KB combined bundle (excl. source maps, excl. dsar proxy re-exports; @dsar/internals-error-codes omitted because it is source-only).
Generated on 2026-02-26. Individual package builds (sequential, no turbo concurrency) for consistent timing. Bundler: tsdown v0.20.3 / rolldown v1.0.0-rc.3. Bundle sizes use actual file sizes (÷ 1024 for KB) excluding .map files.
Delta from previous measurement (2026-02-25)
Compared against the tsdown column from the prior snapshot.
| Package | Bundle (prev) | Bundle (now) | Δ |
|---|---|---|---|
| @dsar/backend | 226.5 KB | 246.4 KB | +8.8% |
| @dsar/persistence | 54.1 KB | 55.4 KB | +2.4% |
| @dsar/node-sdk | 44.1 KB | 44.3 KB | +0.5% |
| All other packages | — | — | ±0.0% |
Only packages with measurable bundle-size changes are listed. The dsar proxy package is new (re-exports all subpackages).