New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More โ†’
Socket
Sign inDemoInstall
Socket

axii

Package Overview
Dependencies
Maintainers
0
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axii

A high-performance frontend framework powered by intelligent reactive data structures.

  • 2.7.0
  • npm
  • Socket score

Version published
Weekly downloads
746
increased by469.47%
Maintainers
0
Weekly downloads
ย 
Created
Source

Axii

A high-performance frontend framework powered by intelligent reactive data structures.

๐Ÿš€ Key Features

Efficient Reactive Data Structures

  • Smart Incremental Updates: When reactive data changes, Axii performs intelligent incremental computations instead of full recalculations, significantly improving performance for array operations
  • No Virtual DOM: Direct and precise DOM updates based on reactive data changes, eliminating the need for diffing processes
  • Rich Data Types: Built-in support for reactive collections including RxList, RxMap, RxSet, and specialized RxTime for time-based reactivity

Performance-First Design

  • Automatic Optimization: High performance by default without requiring extra developer effort
  • Efficient Selection Management: Built-in tools for single and multiple selections that maintain high performance by avoiding unnecessary recalculations
  • Smart DOM Updates: Direct attribute updates through atomic reactive data bindings

Advanced Features

  • Flexible Component Configuration: Easy exposure of child components and DOM nodes using the as syntax
  • Portal Support: Render components under different root nodes, perfect for modals and popups
  • Context System: Built-in context support for efficient data passing between components
  • Side Effects Management:
    • Support for useEffect and useLayoutEffect
    • Elegant cleanup handling through ManualCleanup class inheritance
    • Automatic cleanup on component destruction

DOM Integration

  • Reactive DOM State Wrappers: Built-in reactive wrappers for common DOM states:
    • Element size
    • Position tracking
    • Drag position
    • Scroll position
  • Custom State Wrappers: Create custom DOM state reactive wrappers using createStateFromRef

๐Ÿ”ง Installation

npx create-axii-app myapp

๐Ÿ“š Quick Start

/* @jsx createElement */
import { createRoot, createElement, atom } from 'axii'

function App({}, { createElement }) {
  const name = atom('world')
  const onInput = (e) => name(e.target.value)

  return (
    <div>
      <input value={name} onInput={onInput} />
      <div>Hello, {name}!</div>
    </div>
  )
}

const root = document.getElementById('root')!
const appRoot = createRoot(root)
appRoot.render(<App />)

๐Ÿ“– Documentation

For detailed documentation and examples, visit our documentation site.

๐Ÿงช Testing

For detailed examples of using reactive data structures, check out our test cases:

๐Ÿ’ก Why Axii?

Axii stands out by providing exceptional performance through its intelligent reactive system. While other frameworks often require manual optimization, Axii is designed to be efficient by default, allowing developers to focus on building features rather than optimizing performance.

๐Ÿ“„ License

MIT License

FAQs

Package last updated on 28 Jan 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc