kevinschaffter/stork(opens in a new tab)
Language: TypeScript
TypeScript libraries for type-safe storage solutions with Zod validation
- stars
- 9
- watchers
- 0
- forks
- 0
- open issues
- 0
- Last updated
- 08/18/2025
Language: TypeScript
TypeScript libraries for type-safe storage solutions with Zod validation
A collection of type-safe and validated storage wrappers using Zod schemas. Enjoy the benefits of runtime validation, automatic type inference, and better developer experience when working with storage APIs across different platforms.
Both packages share these core features:
This monorepo contains two complementary packages for type-safe storage solutions:
For React Native & Expo applications
A type-safe wrapper around @react-native-async-storage/async-storage with Zod validation. Perfect for mobile development with React Native and Expo.
For Web & Browser applications
A type-safe wrapper around the browser's localStorage API with Zod validation. Ideal for web applications requiring client-side persistence.
Each package includes comprehensive documentation with installation instructions, API reference, and examples:
We welcome contributions from the community! Whether you're fixing bugs, adding features, improving documentation, or sharing feedback, your help makes this project better.
git clone https://github.com/YOUR_USERNAME/stork.git
cd storkpnpm install
git checkout -b feature/your-feature-name
pnpm changeset
any types, use type guards over castingpnpm changeset for user-facing changesFor detailed contributing guidelines, see CONTRIBUTING.md.
This project is licensed under the MIT License - see the LICENSE file for details.