Prevent accidental data leaks in Next.js Server Actions. rsc-shield is a lightweight utility that sanitizes your server-side data before it reaches the client, ensuring secrets like passwords or internal IDs never cross the boundary.
No reviews yetBe the first to leave a review for rsc-shield
Maker
๐
Hey Product Hunt community! ๐
I'm Saiyad, Software Engineer. While working with React Server Components, I realized how easy it is to accidentally leak sensitive backend data to the client-side. A simple return user can expose password hashes or internal metadata.
To solve this, I built rsc-shieldโa zero-dependency, <3KB security layer that acts as a firewall for your Server Actions.
๐ก๏ธ Key Features:
- Strict Schema Validation (Zod compatible).
- Recursive Sanitization of non-serializable data.
- Built-in support for React's Taint API.
I'd love to hear your feedback and answer any questions. Let's make the RSC ecosystem safer together! ๐