π Introducing Decorix v0.3.1
Weβve spent years accepting something that never really made sense.
We define our business modelβ¦
Then rewrite it for validation.
Then rewrite it for forms.
Then rewrite it for JSON Schema.
Then rewrite it for Zod.
Then rewrite it again for every frontend framework.
The same business rules.
The same constraints.
The same metadata.
Over and over again.
Eventually, they drift apart.
β The frontend accepts data the API rejects.
β Validation rules become inconsistent.
β Documentation falls out of sync.
β A simple business change requires updates across half the codebase.
What if your business model became the single source of truth?
Thatβs the idea behind Decorix.
Decorix is a framework-neutral TypeScript platform that lets you describe your business model once and adapt it everywhere.
From a single metadata definition, Decorix can generate or power:
β‘ Runtime validation
β‘ JSON Schema
β‘ Zod schemas
β‘ Angular Signal Forms
β‘ Angular Reactive Forms
β‘ React Hook Form
β‘ TanStack Form
β‘ Vue VeeValidate
β‘ Vue FormKit
β‘ Svelte Felte
β‘ Svelte Superforms
β‘ Solid Felte
β‘ Solid Modular Forms
β‘ NestJS Validation Pipe
β‘ CLI code generation
Decorators or fluent Builder API.
Framework-independent core.
Custom constraints.
Cross-field validation.
Async validation.
Extensible adapters.
One business model.
Multiple ecosystems.
One source of truth.
Today Iβm happy to share Decorix v0.3.1 as open source.
Iβd love to hear your feedback, ideas, and feature requests!
β GitHub: https://github.com/hermiforge/decorix
π¦ npm: https://www.npmjs.com/search?q=%40hermiforge-decorix
Top comments (0)