# camwiegert/baffle

A tiny javascript library for obfuscating and revealing text in DOM elements. :astonished:

Repository: https://github.com/camwiegert/baffle
Canonical: https://ross.abutalabs.com/products/baffle
Homepage: https://camwiegert.github.io/baffle
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, text, effect, library
Archived: true
Last push: 2017-08-28T06:48:41+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3697, "days_push": 3292, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1757, forks 83 (observed 2026-08-28T04:05:32.286749+00:00)

## What it is
Baffle.js is a tiny (~1.8kb gzipped), dependency-free JavaScript library for obfuscating and revealing text in DOM elements. It lets you scramble text with configurable characters and animate the reveal over time via a simple chainable API.

## Use cases
- scramble text in a headline before revealing it
- add a decoding/decrypting text effect to a hero section
- obfuscate text on page load and reveal it after data loads
- create a typewriter-style glitch effect on DOM elements
- animate text transitions when swapping in new content

## When to choose
- you want a lightweight, dependency-free text scramble/reveal effect in the browser
- you need fine control over obfuscation characters, speed, and reveal duration
- you're targeting older browsers like IE9+

## When to avoid
- you need real security or data hiding - it's a visual effect, not encryption
- your elements contain child nodes, since it flattens textContent
- you need a full animation library with broader effect support
- you need actively maintained software - the last release was in 2017

## Facets
- artifact type: library
- maturity: maintenance
- function: animation, ui-components
- domain: frontend, web-development
- platform: browser
- tags: text-effects, obfuscation, dom, scramble-text, dependency-free, nodejs

## Member repositories
- camwiegert/baffle (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:32.286749+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-30T03:27:39.374866+00:00, confidence not recorded.
  - readme: https://github.com/camwiegert/baffle (fetched 2026-08-28T04:05:32.286749+00:00, sha cee4a85686e6)
  - homepage: https://camwiegert.github.io/baffle (fetched 2026-08-29T11:06:06.064812+00:00, sha 02811c43b2a4)
  - registry_npm: https://registry.npmjs.org/baffle (fetched 2026-08-29T11:06:06.067627+00:00, sha d30f76508c0c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
