fetch
SKILL.md
fetch
Overview
Type-safe fetch wrapper with Standard Schema validation and typed response inference.
When to Use
- Replacing
fetchcalls that rely onastype assertions - Validating API responses at runtime with Standard Schema
- Standardizing request methods and error handling
When Not to Use
- You do not control or validate any API responses
Quick Reference
- Client:
api - Request:
api.get(url, schema)(alsopost,put,patch,delete) - Errors:
FetchError,ValidationError - Factory: create a configured client for shared base URL/auth
Inputs to Request
- Base URL and auth details
- Response schemas and expected types
- Error handling preferences
- Required HTTP methods
Resources
Weekly Installs
7
Repository
zap-studio/skillsFirst Seen
Feb 10, 2026
Security Audits
Installed on
amp7
github-copilot7
codex7
kimi-cli7
gemini-cli7
opencode7