fetch

Type-safe fetch wrapper with Standard Schema validation and typed response inference.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "fetch" with this command: npx skills add zap-studio/skills/zap-studio-skills-fetch

fetch

Overview

Type-safe fetch wrapper with Standard Schema validation and typed response inference.

When to Use

  • Replacing fetch calls that rely on as type 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) (also post , 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

fetch

No summary provided by upstream source.

Repository SourceNeeds Review
General

validation

No summary provided by upstream source.

Repository SourceNeeds Review
General

permit

No summary provided by upstream source.

Repository SourceNeeds Review