# mikeal/bent

Functional JS HTTP client (Node.js & Fetch) w/ async await

Repository: https://github.com/mikeal/bent
Canonical: https://ross.abutalabs.com/products/bent
Language: JavaScript
License Family: other
Last push: 2022-12-20T00:43:26+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3221, "days_push": 1353, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2189, forks 83 (observed 2026-08-28T04:06:23.947037+00:00)

## What it is
Bent is a tiny functional HTTP client library for Node.js and browsers built on async/await, returning configured async request functions. It supports response formats (, string, buffer), status code constraints, headers, and base URLs with no external dependencies in the browser build.

## Use cases
- make http requests with async await in node
- fetch  from an api in the browser
- tiny http client with no dependencies
- validate response status codes automatically
- decode responses as  string or buffer
- reuse a base url for multiple api calls

## When to choose
- you want a minimal, functional http client for node or browser
- you prefer async/await over promise chains or callbacks
- bundle size matters and fetch is available
- you want automatic status code and format validation

## When to avoid
- you need interceptors, retries, or advanced middleware
- you need broad legacy browser support without fetch
- you want a large maintained ecosystem like axios
- the project appears to be in maintenance with no license file in the repo

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client
- domain: web-development, apis, developer-tools
- platform: browser, cross-platform
- tags: fetch, async-await, functional, http, nodejs, javascript

## Member repositories
- mikeal/bent (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.947037+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:47:44.649213+00:00, confidence not recorded.
  - readme: https://github.com/mikeal/bent (fetched 2026-08-28T04:06:23.947037+00:00, sha 1426ad1a0895)
  - registry_npm: https://registry.npmjs.org/bent (fetched 2026-08-29T10:28:14.713747+00:00, sha 7ffe2fe87f36)
- Data as of 2026-08-30T08:39:29.467469+00:00.
