getify/TNG-Hooks
Provides React-inspired 'hooks' like useState(..) for stand-alone functions observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2849
- days_rel: n/a
- days_push: 1467
- n_releases_24m: 0
Adoption not part of the score
1008 stars · 33 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
TNG-Hooks is a small JavaScript library that brings React-inspired hooks like useState, useReducer, and useEffect to plain, standalone functions, creating 'Articulated Functions' with persistent state and side effects. It works independently of React and supports custom hooks.
Use cases
- add react-style hooks to plain javascript functions
- manage state in standalone functions without react
- use useState outside of react
- build stateful utility functions with hooks
- share custom hooks logic across non-react code
- model stateful functions for ui rendering without a framework
When to choose
- you want React-like hooks ergonomics in framework-free JavaScript
- you need lightweight stateful functions without pulling in React
- you want to reuse hook patterns in non-UI code
When to avoid
- you are building a real React application, where built-in hooks are the better fit
- you need a full state management solution with stores or devtools
- you need a library with frequent updates and active maintenance
Facets
library · maturity maintenance
state-management developer-tools web-development frontend developer-tools browser react-hooks standalone-functions stateful-functions no-framework nodejs javascript
2 sources
- readme: https://github.com/getify/TNG-Hooks · fetched 2026-08-28 · c245c51b237e
- registry_npm: https://registry.npmjs.org/tng-hooks · fetched 2026-08-29 · f3032c3d8ad0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| getify/TNG-Hooks | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="getify/TNG-Hooks")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem