# @alicloud/console-os-kernal

> Console OS Kernal

Latest version **1.4.40** (published 2026-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @alicloud/console-os-kernal
pnpm add @alicloud/console-os-kernal
yarn add @alicloud/console-os-kernal
bun add @alicloud/console-os-kernal
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.4.40 |
| Published | 2026-06-24 |
| First published | 2019-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 12 |
| Unpacked size | 135.1 KB |
| Known vulnerabilities | 0 (+30 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | jacksontian, fengmk2, pagecao, aliyunsdkteam, console-fe |

## Links

- npm: https://www.npmjs.com/package/@alicloud/console-os-kernal
- npm.io page: https://npm.io/package/@alicloud/console-os-kernal

## Dependencies (12)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [tslib](https://npm.io/package/tslib.md) ^2.4.0
- [postcss](https://npm.io/package/postcss.md) ^7.0.17
- [lru-cache](https://npm.io/package/lru-cache.md) ^4.1.5
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.1
- [os-single-spa](https://npm.io/package/os-single-spa.md) ^5.0.5
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.24.1
- [@types/lru-cache](https://npm.io/package/@types/lru-cache.md) ^5.1.0
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^2.0.0
- [@alicloud/console-os-events](https://npm.io/package/@alicloud/console-os-events.md) ^1.4.5
- [@alicloud/console-os-loader](https://npm.io/package/@alicloud/console-os-loader.md) ^1.4.45
- [@alicloud/console-os-browser-vm](https://npm.io/package/@alicloud/console-os-browser-vm.md) ^1.4.41

## Recent versions

- 1.4.40 (latest) — 2026-06-24
- 1.4.40-beta.2 (beta) — 2026-05-28
- 1.4.38-alpha.0 (alpha) — 2025-05-26
- 1.4.30-alpha.0 (canary) — 2023-03-15
- 1.0.1-next.1 (next) — 2021-02-25
- 1.4.40-beta.1 — 2026-05-28
- 1.4.39 — 2026-03-26
- 1.4.39-beta.2 — 2026-03-19
- 1.4.39-beta.1 — 2025-10-23
- 1.4.38 — 2025-07-28
- 1.4.37 — 2024-06-28
- 1.4.36 — 2024-06-28
- 1.4.35 — 2024-06-28
- 1.4.35-alpha.0 — 2024-05-23
- 1.4.34 — 2023-12-13
- … 131 more at https://npm.io/package/@alicloud/console-os-kernal/versions

## README

# Console OS Kernal

Kernal for Console OS

## TODO

- [x] load app by single bundle
- [x] load app by manifest
- [x] security sandbox
- [ ] cache by service work

## How to use

First 
```bash
npm i @alicloud/console-os-kernal --save
# or
yarn add @alicloud/console-os-kernal --save
# or
tnpm i @alicloud/console-os-kernal --save
```

Then you create you sub application using createMicroApp

```javascript
import { createMicroApp, load, mount, unmount } from '@alicloud/console-os-kernal';

const microApp = await createMicroApp({
  id: 'micro-app-id-1',
  manifest: 'https://xxx.micro-app-id-1.manifest.json';
});

await load(microApp);

await mount(microApp, {
  dom: document.querySelector('#app'),
  props
});

await update(microApp, {/* you props */});

await unmount(microApp);
```

Last, in the entry code of you main app, call start to start os

```javascript
// in the start of main app

import { start } from '@alicloud/console-os-kernal';

start();
```

## React

If you are using react as your UI framework, you can use sub app as a jsx element by using ```@alicloud/console-os-react-app```

```javascript
import ConsoleApp from '@alicloud/console-os-react-app'

const MANIFEST_URL = 'http://g.alicdn.com/aliyun-next/slb.manifest.json'

export default () => (
  <ConsoleApp
    manifest={MANIFEST_URL}
  />
)
```


## Build bundle

In OS, an app bundle is built by breezr, you can use @alicloud/console-toolkit-plugin-os to build your bundle

```javascript
/* breezr.config.js */

module.exports = {
  /*
   * other breezr config
   */
  plugins: [
    '@alicloud/console-toolkit-plugin-os'
  ]
}

```

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