# wasi-kernel

> A POSIX-like runtime environment on top of Wasmer-JS

Latest version **0.1.6** (published 2021-10-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install wasi-kernel
pnpm add wasi-kernel
yarn add wasi-kernel
bun add wasi-kernel
```

Provides the command `wasi-kit`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2021-10-18 |
| First published | 2020-09-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 912.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | corwin.amber |

## Links

- npm: https://www.npmjs.com/package/wasi-kernel
- npm.io page: https://npm.io/package/wasi-kernel

## Dependencies (6)

- [memfs](https://npm.io/package/memfs.md) 3.0.4
- [assert](https://npm.io/package/assert.md) ^2.0.0
- [buffer](https://npm.io/package/buffer.md) ^4.9.2
- [@wasmer/wasi](https://npm.io/package/@wasmer/wasi.md) ^0.12.0
- [@wasmer/wasmfs](https://npm.io/package/@wasmer/wasmfs.md) ^0.12.0
- [@wasmer/wasm-transformer](https://npm.io/package/@wasmer/wasm-transformer.md) ^0.12.0

## Recent versions

- 0.1.6 (latest) — 2021-10-18
- 0.1.5 — 2021-09-17
- 0.1.4 — 2021-05-14
- 0.1.3 — 2021-03-19
- 0.1.2 — 2021-01-22
- 0.1.1 — 2021-01-14
- 0.1.1-rc2 — 2021-01-02
- 0.1.1-rc1 — 2020-09-23

## README

# wasi-kernel
Simple process management, streams, and shared file system for WASM modules
running in workers, based on WASI and Wasmer-JS.

The current version is compatible with [wasi-sdk](https://github.com/WebAssembly/wasi-sdk) 12.

## Build

To startup the project, you first need to do:
```sh
npm i
```

The build uses [Parcel](https://parceljs.org). It is not listed as a project dependency due to its size. Install it globally instead via:
```sh
npm i -g parcel
```

(The project was developed with Parcel 1.12.4, and may not be compatible with 2.x, if this version ever materializes.)

To build Node.js modules and the Web worker:
```sh
npm run build
```

You can quickly test your build by running `parcel shell.html`, then directing your browser to http://localhost:1234/.

## Use

When developing your own project that uses wasi-kernel, employ standard `import` statements and run Parcel on your main entry point (HTML or JavaScript).
When targeting the browser, bundlers are directed to the source entry point
(`src/kernel/index.ts`), which exposes the public APIs.

```js
import { WorkerProcess } from 'wasi-kernel';

p = new WorkerProcess('/uri/of/prog.wasm');
```

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