# @destyler/utils

> a collection of utility functions and types for JavaScript applications.

Latest version **0.3.5** (published 2026-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @destyler/utils
pnpm add @destyler/utils
yarn add @destyler/utils
bun add @destyler/utils
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.5 |
| Published | 2026-11-10 |
| First published | 2025-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.22.3 |
| Dependencies | 0 |
| Unpacked size | 27.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 13 |
| Author | Elone Hoo <elonehoo@gmail.com> |
| Maintainers | elonehoo |

## Links

- npm: https://www.npmjs.com/package/@destyler/utils
- Repository: https://github.com/destyler/destyler
- npm.io page: https://npm.io/package/@destyler/utils

## Recent versions

- 0.3.5 (latest) — 2026-11-10
- 0.2.6-beta.1 (beta) — 2025-12-22
- 0.3.4 — 2026-11-05
- 0.3.3 — 2026-11-05
- 0.3.2 — 2026-10-30
- 0.3.1 — 2026-10-27
- 0.3.0 — 2026-10-27
- 0.2.13 — 2026-10-15
- 0.2.12 — 2026-10-15
- 0.2.11 — 2026-10-02
- 0.2.10 — 2026-10-01
- 0.2.9 — 2026-10-01
- 0.2.7 — 2026-09-20
- 0.2.6 — 2025-12-22
- 0.2.5 — 2025-12-22
- … 18 more at https://npm.io/package/@destyler/utils/versions

## README

<h1 align=center>Destyler</h1>

<p align=center>unstyled component for web.</p>

<p align="center">
<a href="https://www.npmjs.com/package/@destyler/vue" target="__blank"><img src="https://img.shields.io/npm/v/@destyler/vue?color=a1b858&label=" alt="NPM version"></a>
<a href="https://www.npmjs.com/package/@destyler/vue" target="__blank"><img alt="NPM Downloads" src="https://count.destyler.org/api/npm"></a>
<a href="https://destyler.org/" target="__blank"><img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20demos&color=1e8a7a" alt="Docs & Demos"></a>
<br>
<a href="https://github.com/destyler/destyler/stargazers" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/destyler/destyler?style=social"></a>
</p>

## Choose your starting point

- Use [Destyler UI](https://github.com/destyler/ui) for compound components in React, Vue, Solid, or Svelte. Add your own styles.
- Use this repository for framework-agnostic component state machines, framework adapters, and custom rendering. Start with the [core getting-started guide](https://destyler.org/guide/getting-started).
- For controlled state and upgrades, read the [machine-layer contract](./CONTROLLED-API.md) and [migration guide](./document/src/content/guide/controllable-state.mdx). UI wrappers document their own normalization and defaults in the [UI state guide](https://github.com/destyler/ui/blob/main/docs/src/content/docs/overview/controllable-state.mdx).

The packages provide interaction and accessibility building blocks. Application-level accessibility still requires testing of the composed UI, content, and styles.

## Upgrade compatibility

The next release containing the Node support migration requires Node.js **>=22.22.3**
for public core packages. See the [migration guide](./document/src/content/guide/node-support.mdx)
before upgrading Node 20 applications. Existing npm artifacts are unchanged.

**Tabs in 0.2.12 introduced nullable value-change callbacks, including in patch
upgrades.** Read the [breaking compatibility note and migration guidance](./RELEASE-NOTES.md#0212-breaking-tabs-nullable-value-change-callbacks)
before upgrading a string-only handler.

## Features

- On demand Import - Provide resolver to automatically import only used components.
- Typescript Supported - Support TypeScript & type checked & type inference.
- Unstyled - easily customizable and great for building design system and web apps.

## Credits

> All credits go to these open-source works and resources

- Radix UI - https://github.com/radix-ui/primitives
- Radix Vue - https://github.com/radix-vue/radix-vue
- Naïve UI - https://github.com/tusen-ai/naive-ui
- Kobalte - https://github.com/kobaltedev/kobalte
- Oku UI - https://github.com/oku-ui/primitives
- Headless UI - https://github.com/tailwindlabs/headlessui
- Melt UI - https://github.com/melt-ui/melt-ui
- vueuse - https://github.com/vueuse/vueuse
- Anu - https://github.com/jd-solanki/anu
- Floating UI - https://github.com/floating-ui/floating-ui
- primevue - https://github.com/primefaces/primevue
- Shadcn UI - https://github.com/shadcn-ui/ui
- nuxt-ui - https://github.com/nuxt/ui
- nuxt-ui-pro - https://github.com/nuxt-ui-pro
- zag - https://github.com/chakra-ui/zag
- XState - https://xstate.js.org/
- Pure UI Control - https://asolove.medium.com/pure-ui-control-ac8d1be97a8d

## License

[MIT](./LICENSE)

Copyright (c) 2023-present, Elone Hoo

---
_Source: https://npm.io/package/@destyler/utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
