open-index/open-npm huggingface dataset:
npm package: @swain-test/micro-ui
Description: A _tiny_ framework for building micro frontend apps using React.
Latest version: 1.0.1

A _tiny_ framework for building micro frontend apps using React.

The source code has zero dependencies, and is less than 100 lines of code.

## Micro Frontends

To understand the micro-frontend architecture pattern in general, [read this article](https://martinfowler.com/articles/micro-frontends.html).

### Terms

We'll use these terms to talk about the various components of a micro-frotend system:

- _container app_ - this is a "shell" SPA that loads + renders many micro-frontends. Think of it as "a nav bar + a micro-frontend loader".

- _child app_ - a smaller SPA that is loaded by a container app

## The Rules

This framework requires that you stick to a few key rules:

1. Everything is React. We don't support multiple frameworks.

2. A "deployed" child app should consist of a _single_ JavaScript bundle, and a _single_ JSON manifest file (child apps should not ship raw CSS or HTML). Manifest files look like this:

```json
{
  "name": "my-child-app",
  "version": "1.0.0",
  "bundle": "https://my-child-app.com/index.js"
}
```

3. Child apps should _not_ include `react` or `react-dom` in their deployed bundles, and should instead rely on the container app to provide these dependencies via `window.React` and `window.ReactDOM`.

<!--
  TODO: consider using import maps to minimize the need for child apps to process out the imports of react + react-dom

  https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
-->
npm package: @swaiot/jssdk
Description: a jssdk for coocaa system
Author: Kuiper
Latest version: 1.1.29


### 酷开JS-SDK 面向大前端开发者提供基于酷开系统能力的开发工具包

<br>

**使用方式**

```javascript
import jsb from '@swaiot/jssdk'

const account = jsb.requireModule('account')
account.getAccountInfo({
    success (res) {
        console.log(res.data)
    }
})
```

> 支持TypeScript调用

**文档链接**：[请戳这里](https://beta-webapp.skysrt.com/swaiot/docs/zh/)
npm package: @swairshah/pi-talk
Description: Text-to-speech extension for Pi coding agent using Loqui
Author: Swair Shah
Latest version: 1.2.2

# pi-talk

Text-to-speech extension for [Pi coding agent](https://github.com/mariozechner/pi-coding-agent). Gives Pi a voice using `<voice>` tags.

![pi-talk demo](https://raw.githubusercontent.com/swairshah/Loqui/main/assets/demo.gif)

## Features

- **Local TTS** - No cloud APIs, runs entirely on your Mac
- **Multiple voices** - 7 different voice options
- **Central playback** - Pi sends speech jobs to Loqui's local broker queue
- **Configurable** - Toggle verbosity, mute, change voices

## Requirements

**Loqui.app** must be installed and running (provides the TTS server + local broker queue).

```bash
brew install swairshah/tap/loqui
```

Then launch Loqui from Applications - it runs in the menubar.

## Installation

```bash
pi install npm:@swairshah/pi-talk
```

## Usage

Once installed, Pi will automatically speak `<voice>` tagged content in its responses.

### Commands

| Command | Description |
|---------|-------------|
| `/tts` | Toggle TTS on/off |
| `/tts-mute` | Mute audio (keeps voice tags in responses) |
| `/tts-voice <name>` | Change voice (alba, marius, javert, fantine, cosette, eponine, azelma) |
| `/tts-style` | Toggle between succinct and verbose voice prompts |
| `/tts-say <text>` | Speak arbitrary text |
| `/tts-stop` | Stop current speech |
| `/tts-status` | Show current status |

### Global Shortcut

Press **Cmd+.** to stop speech at any time (requires Loqui.app running).

## How it works

1. The extension injects a system prompt that teaches Pi to use `<voice>` tags
2. When Pi responds, the extension extracts `<voice>` content
3. The extension sends speech jobs to Loqui's local broker (`127.0.0.1:18081`), including `sourceApp`, `sessionId`, and `pid`
4. Loqui schedules per-session queues and plays audio centrally (no cloud, no API keys)

## Publishing (maintainers)

From repo root:

```bash
./scripts/publish-pi-talk.sh --dry-run
./scripts/publish-pi-talk.sh --bump patch
```

Or from this directory:

```bash
npm run pack:preview
npm run publish:npm
```

## Credits

- TTS model: [Pocket TTS](https://github.com/kyutai-labs/moshi) by Kyutai Labs
- Rust implementation: [pocket-tts](https://github.com/babybirdprd/pocket-tts) by babybirdprd

## License

MIT
npm package: @swalest/decimal-processing
Description: complete and advanced processing of decimal numbers
Author: Swalest
Latest version: 1.0.0

# NestJS processing decimal number  

## 🛡️ Overview  
This library offers à wide range of methods for complete and advanced processing of decimal numbers.  

## 📦 Installation  
Install the library using **npm** or **yarn**:  

```sh
npm install @swalest/decimal-processing
# or
yarn add @swalest/decimal-processing

```
🚀 Usage
1️⃣ Import AuthModule into your application

```sh

```

📝 License

This project is licensed under the MIT License. See the LICENSE file for details.
🤝 Contributing

We welcome contributions! Feel free to submit pull requests or open issues.
npm package: @swallowj/logjs
Description: log for nodejs
Author: SwallowJ
Latest version: 2.0.10

## 个人 logger 日志模块

1. env typescript-4.1

## Usgae

```ts
import Logger from "./index";

process.on("exit", () => {
    Logger.CloseAll();
});

const logger = Logger.New({ name: "translate" });

logger.Info("Test");
```

### Type of logger

```ts
interface logger {
    Debug(...message: any[]): void;
    Info(...message: any[]): void;
    Warn(...message: any[]): void;
    Error(...message: any[]): void;
    Fatal(...message: any[]): void;
    Success(...message: any[]): void;
    SuccessLine(...message: string[]): void;
    CommonLine(...message: string[]): void;
    private __writeLine;
    lineOver(): void;
    Alert(...message: any[]): void;
    Faild(...message: any[]): void;
    private getStack;
    close(): void;
    setLevel(level: log_level): this;
    static clear(): void;
    static New(options?: LOGGER.optionsType): Logger;
    static SetDefaultPath(defaultFilePath: string): typeof Logger;
    static CloseAll(): void;
    static setGlobalLevel(level: log_level): typeof Logger;
}
```

### Type of options

```ts
interface optionsType {
    /**
     * logger name
     * default = "main"
     */
    name?: string;

    /**
     * if log the stack
     * unrealized
     */
    stack?: boolean;

    /**
     * log file path
     * is undefind? no log file
     */
    filePath?: string;
}
```

## 日志级别设置

```ts
//独立设置
Logger.New({ level: 0 });

//全局设置
Logger.setGlobalLevel(0);

//环境变量
export LOGGER_LEVEL = 0;

//默认值 default=1
```
npm package: @swallowj/react-utils
Description: ## redux model 使用
Author: SwallowJ
Latest version: 1.1.0

# React 工具库

## redux model 使用

-   扫描指定目录

```js
import { loadModel } from "@swallowj/react-utils";

loadModel(params:modelConfigType);

interface modelConfigType {
	namespace?: string;
	/**
	 * 页面目录,
	 * default=src/pages
	 */
	pages?: string;

	/**
	 * 自定义model目录、文件
	 * default = [src/models]
	 */
	customes?: string[];

	/**
	 * 监听文件、目录变更
	 * default=false
	 */
	watch?: boolean;

	/**输出目录 */
	output: string;
}
```

## 路由

-   解析路由配置文件

```js
import { loadRouter } from "@swallowj/react-utils";

loadRouter(params:routerConfigType);

interface routerConfigType {
	routerPath: string;

	/**
	 * 监听文件、目录变更
	 * default=false
	 */
	watch?: boolean;

	namespace?: string;

	/**输出目录 */
	output: string;

	/**loading页面组件 */
	loadComponent?: string;

	/**
	 * 代码分割
	 * default=true
	 */
	split?: boolean;
}
```

## 入口启用

-   生成页面入口文件

```js
import { entrance } from "@swallowj/react-utils";

entrance(params: entranceType);


interface entranceType {
	namespace?: string;

	/**输出目录 */
	output: string;

	appPage?: string;
	notFoundPage?: string;
}
```