# rikschennink/conditioner

💆🏻 Frizz free, context-aware, JavaScript modules

Repository: https://github.com/rikschennink/conditioner
Canonical: https://ross.abutalabs.com/products/conditioner
Language: JavaScript
License: MIT
License Family: permissive
Topics: conditioner, javascript, es6, import, responsive, amd, module-loader, mediaqueries, webpack, browserify, requirejs
Last push: 2022-12-04T13:46:11+00:00

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

## Adoption (not part of the score)
Stars 1059, forks 40 (observed 2026-08-28T04:03:25.476223+00:00)

## What it is
Conditioner is a tiny (~1KB) JavaScript library for progressively enhancing DOM elements by conditionally mounting JavaScript modules based on contextual state like media queries and element visibility. It works with ES dynamic imports, AMD, webpack, and browserify, and automatically unmounts modules when context changes.

## Use cases
- lazy load a date picker only on wide viewports
- mount a carousel only when it becomes visible
- unmount components when the viewport is resized below a breakpoint
- bind behavior to elements declaratively via data attributes
- progressively enhance server-rendered pages with JavaScript
- load UI components based on media queries

## When to choose
- you want progressive enhancement with declarative data-attribute bindings
- you need context-aware lazy loading of UI components tied to media queries or visibility
- you want a tiny dependency-free module mounting library compatible with webpack or native ES imports

## When to avoid
- you need a full SPA framework with routing and state management
- your project uses React/Vue component trees rather than plain DOM enhancement
- you need active development or frequent updates, as the project is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: frontend-framework, middleware, plugin-system
- domain: web-development, frontend
- platform: browser
- tags: progressive-enhancement, responsive-design, module-loader, lazy-loading, media-queries, dom-binding, javascript

## Member repositories
- rikschennink/conditioner (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.476223+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-30T06:57:22.024247+00:00, confidence not recorded.
  - readme: https://github.com/rikschennink/conditioner (fetched 2026-08-28T04:03:25.476223+00:00, sha 9835e2a8d0bb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
