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

chainus

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chainus

[beta] A simple yet powerful framework that is lightweight, reactive, fast and user-friendly.

latest
Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
3
-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

Chainus


Chainus is an easy-to-use, vanilla JavaScript-friendly, reactive, lightweight, and functional SPA (Single Page Application) framework.
Lightweight min-size (0.1.4): 11,5kb

Features

  • Component-Based: Supports modular and reusable components.
  • Props and Slots: Allows data transmission and content placement between components.
  • Data Provider: Stands out with data retrieval and management capabilities.
  • State and Store Management: Facilitates application state and global data management.

Installation

CDN

You can include Chainus directly from the CDN:

  • Minified Module Version:

    import {html,Mount,onConnect,onRemove,Components,setLazy,setComponent,createStore,createElement,async,createId,state,untrack,Effect,batch} from "https://unpkg.com/chainus/src/chainus.min.mjs";
    
  • Portable Version

    <script src="https://unpkg.com/chainus/src/chainus.min.js">
    

NPM

Install Chainus using npm:

  • Run the following command to install Chainus:
    npm install chainus
  • Import Chainus into your project:
import {html,Mount,onConnect,onRemove,Components,setLazy,setComponent,createStore,createElement,async,createId,state,untrack,Effect,batch} from 'chainus';

Usage[NPM]

To create a simple component using Chainus:

import { html,Mount } from 'chainus';

function Main(){
    return html`
    <div>
        <h1>Hello World!</h1>
    </div>
    `
}
Mount("#app",Main)

Example Projects

For more examples and usage details, check out the CodePen collection.

In CodePen, there are template files available. You can create a new Chainus project by using the template files within the collection.

CodePen-Templates

Portable-Template : Template

Module-Template : Template

Keywords

reactive

FAQs

Package last updated on 24 Dec 2023

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