New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

thunderous

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thunderous

Thunderous is a library for writing web components in a functional style, reducing the boilerplate, while signals make it better for managing and sharing state.

latest
Source
npmnpm
Version
2.4.1
Version published
Maintainers
1
Created
Source

Thunderous

Thunderous is a library for writing web components in a functional style, reducing the boilerplate, while signals make it better for managing and sharing state.

Each component renders only once, then binds signals to DOM nodes for direct updates with thunderous efficiency.

Table of Contents

  • Installation
  • Usage
  • Documentation
  • Development
  • License

Installation

Install Thunderous via npm:

npm install thunderous

Usage

Thunderous makes it easy to define smaller components with less noise.

import { customElement, html, css, createSignal } from 'thunderous';

const myStyleSheet = css`
  :host {
    display: block;
    font-family: sans-serif;
  }
`;

const MyElement = customElement(({ refs, adoptStyleSheet }) => {
  const [count, setCount] = createSignal(0);
  const increment = () => setCount(count() + 1);
  adoptStyleSheet(myStyleSheet);
  return html`
    <button onclick="${increment}">Increment</button>
    <output>${count}</output>
  `;
});

MyElement.define('my-element');

Documentation

Please consult the documentation to learn how to build web components with Thunderous.

Contributing

Local Server

To see it in action, start the demo server with:

npm run demo

The demo's package.json points to the parent directory with the file: prefix. To preview the updated library code, you must run npm run build at the top level.

Please open a corresponding issue for any pull request you'd like to raise.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

thunderous

FAQs

Package last updated on 14 Jul 2025

Did you know?

Socket

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.

Install

Related posts