TrySound/rifm
Small react hook and component for building formatted and masked inputs observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 99
- Release rhythm 67
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2981
- days_rel: 7
- days_push: 7
- n_releases_24m: 1
Adoption not part of the score
1309 stars · 37 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Rifm is a tiny, dependency-free React hook and render-prop component for building formatted and masked text inputs while preserving cursor position. It works with native inputs and custom input components, supporting number, phone, date, and other value formatting.
Use cases
- format currency or number inputs with thousand separators in react
- mask phone number input as user types
- add date input mask without losing cursor position
- format credit card number input in react
- enforce casing rules in a text input
- build masked inputs for custom design system components
When to choose
- you need cursor-aware input formatting in React with a tiny footprint
- you want a dependency-free mask solution that works with any input component
- you prefer a simple hook or render-prop API over heavyweight form libraries
When to avoid
- you need type=number or type=date inputs, which Rifm does not support
- you need full form state management and validation, not just input formatting
- you are not using React 16.8 or newer
Facets
library · maturity stable
ui-components form-handling frontend-framework frontend web-development developer-tools browser cross-platform react-hook input-masking input-formatting cursor-position render-prop typescript dependency-free nodejs
3 sources
- readme: https://github.com/TrySound/rifm · fetched 2026-08-28 · 4d525f308a0a
- homepage: https://trysound.github.io/rifm/ · fetched 2026-08-29 · 911b35ffdb34
- registry_npm: https://registry.npmjs.org/rifm · fetched 2026-08-29 · c0dd6fa5476f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TrySound/rifm | main | 88 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem