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

glyx

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glyx

The declarative state management library.

latest
Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
9
Maintainers
0
Weekly downloads
 
Created
Source

glyx

The declarative state management library.

npm i glyx
const { $ } = store(() => {
  const count = atom(1)
  const expensive = derived(() => count.get() ** 10)
  const mult = select((factor: number) => count.get() * factor)

  const increment = () => count.set(count.get() + 1)

  return { count, expensive, mult, increment }
})

$.increment()
// .get() and .use()
$.count.get() // 2
$.expensive.get() // 1024
$.mult.get(10) // 20

const { count, expensive } = $.pick(['count', 'expensive']).get()

Keywords

state manager

FAQs

Package last updated on 19 Mar 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