elbywan/wretch

A tiny wrapper built around fetch with an intuitive syntax. :candy:

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 41 minutes ago
Added to GitGenius on September 13th, 2026
Created on September 13th, 2017
Open Issues & Pull Requests: 12 (+0)
GitHub issues: Enabled
Number of forks: 109
Total Stargazers: 5,173 (+0)
Total Subscribers: 24 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.5 hours
Mean response time: 28.8 hours
90th percentile: 4.3 days
Tracked items: 33

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 12% of issues opened in the past year have been closed. Three people close 82% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 4 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (17)
  • bug (8)
  • documentation (3)
  • duplicate (3)
  • enhancement (3)
  • invalid (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Wretch is a lightweight HTTP client wrapper built around the Fetch API that simplifies network requests with an intuitive syntax.

The tool addresses the awkwardness of the native Fetch API, which requires separate callbacks to handle responses and parse response bodies. Wretch streamlines this by automatically handling deserialization, error management, and header manipulation through a chainable, fluent interface. The library maintains immutability by cloning instances on each call, allowing safe reuse of configured request objects.

Wretch suits developers who want a minimal HTTP client without the overhead of larger libraries. It works well in projects targeting modern browsers, Node.js, Deno, or Bun where a small footprint matters. The tool is particularly valuable when you need straightforward request-response handling without complex abstractions, though it also supports advanced patterns through its addon and middleware systems for those who need to extend functionality.

The project maintains active development with regular updates and migration guides provided for major versions. The codebase has comprehensive test coverage and demonstrates sustained maintenance over an extended period. The tool is widely adopted across different JavaScript environments and continues to receive feature additions and improvements.