effect-patterns-making-http-requests

Model and compose type-safe HTTP requests in Effect-TS.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/scotttrinh/nook --skill effect-patterns-making-http-requests-scotttrinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-making-http-requests
Source: https://github.com/scotttrinh/nook/tree/main/.agents/skills/effect-patterns-making-http-requests
Command: npx skills add https://github.com/scotttrinh/nook --skill effect-patterns-making-http-requests-scotttrinh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a set of Effect-TS patterns for making HTTP requests, focusing on type-safety, predictable error handling, and composable workflows.

Core Features & Use Cases

  • Typed HTTP requests: Build requests with runtime JSON validation and typed results.
  • Composable patterns: Compose retries, timeouts, logging, and request pipelines in a functional style.
  • Use Case: Use this skill to fetch data from APIs, apply schema validation, and build resilient data flows.

Quick Start

Install and configure the Effect libraries, then run a small program demonstrating a simple GET request, JSON decoding, 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 make type-safe HTTP requests with Effect-TS?

HTTP requests in Effect-TS are made type-safe by leveraging the @effect/platform HttpClient to build requests with runtime JSON validation and typed results. This approach ensures predictable error handling and composable data fetching workflows.

How do I retry HTTP requests with backoff in Effect-TS?

Retrying HTTP requests with backoff in Effect-TS is achieved by composing retry patterns into functional request pipelines. This skill provides patterns to build resilient data flows that handle transient web API failures deterministically.

How does error handling work for HTTP requests in Effect-TS?

Error handling for HTTP requests in Effect-TS works by providing structured, typed errors instead of thrown exceptions. This separation of concerns allows you to model failures deterministically and test HTTP interactions predictably.

Can I chain multiple HTTP requests together in Effect-TS?

Yes, you can chain multiple HTTP requests in Effect-TS using composable functional patterns. This allows you to sequence API interactions, apply schema validation at each step, and build complex data pipelines with clear separation of concerns.

Do I need the Node runtime to use the Effect-TS HttpClient?

Yes, the Node runtime is required to execute HTTP requests using the @effect/platform HttpClient in this skill. It provides the underlying environment needed to run the deterministic and testable HTTP patterns effectively.

How do I add logging to HTTP request pipelines in Effect-TS?

Logging is added to HTTP request pipelines in Effect-TS by composing logging patterns alongside requests, retries, and timeouts. This integration provides clear visibility into web API interactions within your functional workflows.