effect-patterns-making-http-requests

Implement typed HTTP calls with retries, caching, and logging in Effect-TS projects.

785|26|Updated Jun 22, 2025
One-click install
npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-making-http-requests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-making-http-requests
Source: https://github.com/PaulJPhilp/EffectPatterns/tree/main/config/.claude-plugin/plugins/effect-patterns/skills/effect-patterns-making-http-requests
Command: npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-making-http-requests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes and simplifies building HTTP interactions in Effect-TS by providing typed responses, retry strategies, logging, caching, and timeouts.

Core Features & Use Cases

  • Typed HTTP responses with HttpClient and strong typings
  • Retry policies using Schedule for exponential backoff and jitter
  • Detailed logging and timing for observability
  • Caching patterns to reduce redundant network calls
  • Service-oriented HTTP client abstractions for testability and composition

Quick Start

Use this skill to perform a simple HTTP GET to a public API and parse the JSON response, demonstrating a typed response and basic error handling.

Frequently Asked Questions about effect-patterns-making-http-requests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add retry and timeout patterns to HTTP requests in Effect-TS?

Effect-TS HTTP requests can use Schedule for exponential backoff and jitter retries, plus timeout patterns to handle unreliable network calls. This Skill provides structured implementations for these scenarios.

What's the best way to get typed HTTP responses with the Effect-TS HttpClient?

Typed HTTP responses in Effect-TS use HttpClient with strong typings to ensure compile-time safety. This Skill demonstrates parsing JSON responses with typed decoding and basic error handling for robust API consumption.

Can I use these HTTP request patterns in both Node and browser environments?

These Effect-TS HTTP request patterns apply across Node and browser environments for service clients, API consumption, and data-fetching tasks. They provide reusable abstractions suitable for both platforms.

How does Effect-TS handle HTTP caching and logging for API requests?

Effect-TS handles HTTP caching through patterns that reduce redundant network calls, and provides detailed logging and timing for observability. This Skill covers both to improve HTTP request reliability and performance.

Why should I use service-oriented abstractions for HTTP clients in Effect-TS?

Service-oriented HTTP client abstractions in Effect-TS improve testability and composition by decoupling request logic from implementation. This Skill provides reusable patterns to integrate into existing Effect-TS projects.