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
Elevate your TypeScript workflow with Zagora: a sleek, bulletproof toolkit for forging type-safe, error-proof functions and libraries that never throw. Powered by StandardSchema-compliant validators like Zod, Valibot, and Arktype, it delivers rock-solid input/output validation and richly typed errors. No routers, no network baggage — just pure, exportable functions ready to supercharge your code. The ultimate streamlined alternative to oRPC and tRPC, stripping away the network layer for unmatched type-safety, simplicity and robustness.
6
6
@@ -15,7 +15,7 @@ Elevate your TypeScript workflow with Zagora: a sleek, bulletproof toolkit for f
15
15
- 🔒 **Type-Safe:** Full type inference across inputs, outputs, errors, context, optionals, and defaults.
16
16
- ✋ **Ergonomic:** Pure functions with auto-filled defaults, optional args, and detailed diagnostics.
17
17
- 🏠 **Familiar:** Echoes remote-RPC patterns from oRPC and tRPC, but focused on libraries, not apps.
18
-
- ⚖️ **Unopinionated:** Zero assumptions - no routers, middlewares, or network dependencies.
18
+
- ⚖️ **Unopinionated:** Zero assumptions - no routers, middlewares, or network concepts.
19
19
- 🎁 **No Unwrapping:** Direct access to results, unlike `neverthrow` - no extra steps required.
20
20
- 🤖 **Agents Ready:** Rules for LLMs with subtle nuances and where to be careful. [Read/get here](./AGENTS.md)
21
21
@@ -694,7 +694,7 @@ Creates a new Zagora instance.
694
694
-`.context<T>(initial)` - Type the context with generic, and optionally set initial context
695
695
-`.cache(adapter)` - Set cache adapter that should have `has`, `get`, `set`, methods
696
696
-`.handler(fn)` - Set handler/procedure function
697
-
-`.callable(runtimeContext?)` - Create callable procedure, context is deep merged with the initial context.
697
+
-`.callable(opts?: { context?, cache? })` - Create callable procedure, context is deep merged with the initial context.
0 commit comments