# @chialab/plasma

> Generate Custom Elements wrappers for Angular, React, Svelte and Vue.

Latest version **0.4.2** (published 2025-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chialab/plasma
pnpm add @chialab/plasma
yarn add @chialab/plasma
bun add @chialab/plasma
```

Provides the command `plasma`.

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.2 |
| Published | 2025-01-07 |
| First published | 2023-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 465.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Chialab |
| Maintainers | chialab-admin, chialab-developers |
| Keywords | dna, web-components, angular, react, svelte, vue |

## Links

- npm: https://www.npmjs.com/package/@chialab/plasma
- Repository: https://github.com/chialab/plasma
- Homepage: https://github.com/chialab/plasma#readme
- Issues: https://github.com/chialab/plasma/issues
- npm.io page: https://npm.io/package/@chialab/plasma

## Dependencies (1)

- [custom-elements-manifest](https://npm.io/package/custom-elements-manifest.md) ^2.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.4.2 (latest) — 2025-01-07
- 0.4.1 — 2024-09-20
- 0.4.0 — 2024-09-20
- 0.3.4 — 2024-07-30
- 0.3.3 — 2024-07-16
- 0.3.2 — 2024-07-16
- 0.3.1 — 2024-07-04
- 0.3.0 — 2024-07-04
- 0.2.2 — 2024-02-15
- 0.2.1 — 2024-02-15
- 0.2.0 — 2023-12-15
- 0.1.1 — 2023-12-12
- 0.1.0 — 2023-11-30

## README

# Plasma

Generate Custom Elements wrappers for Angular, React, Svelte and Vue.

> [!NOTE]  
> `plasma` is the imperative form for the Italian verb _plasmare_, _to shape_ in English.

Plasma transformations are based on [Custom Element Manifest](https://github.com/webcomponents/custom-elements-manifest) (CEM) specifications. The CEM is a JSON files that describes a Custom Element, its properties, events and slots. Plasma uses the CEM to generate wrappers for the supported frameworks.

You can generate the CEM for most of the Web Components library using this [Analyzer](https://github.com/open-wc/custom-elements-manifest/tree/master/packages/analyzer).

## Install

```
npm i -D @chialab/plasma
```

## Usage

Plasma will try to autodetect the custom elements manifest (`custom-elements.json`) and will read the entrypoint from the `package.json` if not specified. The output directory will be `./dist/[framework]` by default.

```
npm run plasma
```

## Documentation

- [Get started](https://chialab.github.io/plasma/guide)
- [Options](https://chialab.github.io/plasma/guide/options)

---

## License

**Plasma** is released under the [MIT](https://github.com/chialab/plasma/blob/main/LICENSE) license.

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