You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build-time prop validation for CodeHike – feedback requested #526
I noticed CodeHike currently uses runtime prop validation with Zod (when not using React Server Components). This works well, but Zod's bundle size might be a concern for some environments.
I've been working on an alternative approach: recma-static-refiner, a build-time plugin that validates and transforms MDX props during compilation rather than at runtime. It uses Standard Schema (Zod, Valibot, or ArkType) at build time - zero validation code ships to the client.
The README includes a CodeHike-specific example showing how meta props can be validated and transformed. I'd love to get your thoughts on whether this pattern could complement CodeHike's architecture.
Activity