# dankogai/js-base64

Base64 implementation for JavaScript

Repository: https://github.com/dankogai/js-base64
Canonical: https://ross.abutalabs.com/products/js-base64
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-17T00:47:20+00:00

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

## Adoption (not part of the score)
Stars 4360, forks 1290 (observed 2026-08-28T04:08:46.546744+00:00)

## What it is
A pure-JavaScript Base64 encoder/decoder library supporting UTF-8 strings, Uint8Array, and URI-safe encoding. It works in browsers, Node.js, and as an ES6 module with a long-maintained, widely-used codebase.

## Use cases
- encode strings to base64 in javascript
- decode base64 to utf-8 text
- convert Uint8Array to base64
- url-safe base64 encoding
- base64 encode unicode strings
- replace btoa with utf8-safe base64

## When to choose
- you need consistent base64 encoding across browser and Node.js
- you must handle UTF-8/unicode strings safely
- you need URI-safe base64 or Uint8Array conversion

## When to avoid
- modern runtimes with btoa/atob or Buffer suffice
- you need general binary data encoding beyond base64

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, web-development, files
- platform: browser, cross-platform, bun
- tags: base64, encoding, decoding, utf8, uri-safe, pure-javascript, nodejs, deno

## Member repositories
- dankogai/js-base64 (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.546744+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-29T18:21:27.461571+00:00, confidence not recorded.
  - readme: https://github.com/dankogai/js-base64 (fetched 2026-08-28T04:08:46.546744+00:00, sha 0120218efa77)
  - registry_npm: https://registry.npmjs.org/js-base64 (fetched 2026-08-29T09:10:12.372935+00:00, sha ecd8f48ee17f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
