@comity/hydration
v0.9.0
Published
Hydration module for server-rendered applications with the Comity framework
Downloads
110
Readme
@comity/hydration
Island hydration contracts and runtime primitives for Comity.
Purpose
Defines the core contracts, controller, serializer, and lifecycle hooks used to discover and hydrate islands in a structured way.
Scope
This package:
- ✅ defines island contracts and hydration strategies
- ✅ provides hydration controller and serializer primitives
- ✅ exposes lifecycle-aware hydration support
This package does NOT:
- ❌ render HTML documents
- ❌ load application data
- ❌ implement framework-specific hydration adapters
Public API
- Hydration contracts
- Hydration controller
- Island serializer
- Client factory (
@comity/hydration/client) - Error types (
@comity/hydration/errors) - Lifecycle hooks (
@comity/hydration/lifecycle)
No exhaustive reference; see docs for constraints.
Documentation
- docs/overview.md
- docs/conventions.md
- docs/architecture.md
Related Packages
- @comity/html
- @comity/hydration-preact
- @comity/hydration-react
Status
Stable
Review Completed: 2026-07-25 Reviewer: Hobiri MAGI (DeepSeek v4 Pro) Compliance Score: 99.5% (Green)
