
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
active-component
Advanced tools
A simple, fast and composable library for creating reactive web interfaces
This is a simple, composable and extensible library for creating reactive web interfaces. It exports primitives which can be used to describe DOM operations with element attributes. It is based on the class-action and action-object libraries.
An active component is a ClassAction sub-type that recursively processes elements to interprete attribute directives. Other class actions (known as component actions) are nested within the active component to perform the interpretative functions. This affords enormous flexibility in what meanings can be attached to directives. Component actions for most common functions, like linking element properties to javascript variables, have been implemented. Further actions may be created by 3rd-party providers or users themselves.
npm i active-component
<h1>#a</h1>
<main>#b</main>
import { ActiveComponent } from "active-component";
import { ActionObject } from "active-object";
const root = new ActionObject({ a: 'Heading', b: 'This is the content' });
const activeComponent = new ActiveComponent();
activeComponent.act({element: document.body, root})
This library exports class actions for many common reactive actions, like data binding and array rendering. Learn about them here.
Help improve Active-component by contributing to this project. You can contribute in many ways. See the contributing guidelines. You can also show your support by sponsoring us.
Thank you for contributing.
...
FAQs
A simple, fast and composable library for creating reactive web interfaces
We found that active-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.