open-index/open-npm huggingface dataset:
npm package: @halomvp/mcp-server
Description: MCP Server for HALO — 8 payment tools for any AI agent
Latest version: 0.1.2

# @halo/mcp-server

`@halo/mcp-server` exposes HALO as an MCP server so any MCP-compatible agent
can create agents, check balances, send payments, and manage testnet wallets.

## Quick start

```bash
HALO_API_KEY=halo_sk_test_xxx npx @halo/mcp-server
```

## What it does

The server exposes 8 tools for any MCP-compatible agent:

- `check_balance`: Check the current HALO wallet balance
- `send_payment`: Create a USDC payment intent
- `get_payment_status`: Look up the latest status for an intent
- `pay_402_resource`: Pay an x402-protected HTTP resource
- `list_agents`: List HALO agents available to the API key
- `create_agent`: Create a new HALO agent and return its credentials
- `fund_wallet`: Fund a testnet wallet with gas and USDC
- `toggle_kill_switch`: Pause or resume payments on a chain

## Configuration

### Claude Desktop

```json
{
  "mcpServers": {
    "halo": {
      "command": "npx",
      "args": ["-y", "@halo/mcp-server"],
      "env": {
        "HALO_API_KEY": "halo_sk_test_xxx"
      }
    }
  }
}
```

### Cursor

```json
{
  "mcpServers": {
    "halo": {
      "command": "npx",
      "args": ["-y", "@halo/mcp-server"],
      "env": {
        "HALO_API_KEY": "halo_sk_test_xxx"
      }
    }
  }
}
```

### ChatGPT

Use a `stdio` MCP server entry with:

- command: `npx`
- args: `["-y", "@halo/mcp-server"]`
- env: `HALO_API_KEY=halo_sk_test_xxx`

## Environment variables

- `HALO_API_KEY`: Required HALO agent API key
- `HALO_API_URL`: Optional HALO backend override. Defaults to production

## Tool reference

### `check_balance`

Optional input: `chain`

Returns the wallet balance in micro-USDC plus address and chain.

### `send_payment`

Input: `amountMicroUsdc`, `recipientAddress`, optional `chain`

Creates a HALO native payment intent.

### `get_payment_status`

Input: `intentId`

Returns the latest status, amount, recipient, chain, and any transaction hash.

### `pay_402_resource`

Input: `resourceUrl`

Pays an x402-protected resource through HALO and returns the result.

### `list_agents`

No input.

Returns all agents available to the current key.

### `create_agent`

Input: `name`, optional `chain`

Creates a new HALO agent and returns its API key and wallet address.

### `fund_wallet`

Input: `walletId`

Funds a testnet wallet with gas and USDC.

### `toggle_kill_switch`

Input: `chain`, `enabled`

Pauses or resumes payments on a specific chain.
npm package: @halomvp/pay
Description: Payment SDK for AI agents
Latest version: 0.1.1

# @halo/pay

`@halo/pay` is the HALO payment SDK for AI agents. It wraps HALO's agent-auth APIs,
uses native `fetch`, and includes a transparent x402 payment helper.

## Quick start

```ts
import { HaloClient } from "@halo/pay";
const halo = new HaloClient({ apiKey: process.env.HALO_API_KEY! });
await halo.pay({ amountMicroUsdc: "10000", recipientAddress: "0x1234567890123456789012345678901234567890", chain: "base-sepolia" });
```

## Installation

```bash
npm install @halo/pay
```

## Authentication

Create an agent in the HALO dashboard, then copy its API key. `@halo/pay`
expects an agent key in the `halo_sk_test_*` format.

```ts
import { HaloClient } from "@halo/pay";

const halo = new HaloClient({
  apiKey: process.env.HALO_API_KEY!,
});
```

## API reference

### `getBalance(chain?)`

Returns the current agent wallet balance as micro-USDC.

```ts
const balance = await halo.getBalance("base-sepolia");
```

### `pay({ amountMicroUsdc, recipientAddress, chain? })`

Creates a HALO intent and starts a native USDC payment.

```ts
const payment = await halo.pay({
  amountMicroUsdc: "2500000",
  recipientAddress: "0x1234567890123456789012345678901234567890",
  chain: "base-sepolia",
});
```

### `getIntent(intentId)`

Fetches the latest status for a payment intent.

```ts
const intent = await halo.getIntent(payment.intentId);
```

### `getAgent()`

Returns the authenticated agent profile and wallet metadata.

```ts
const agent = await halo.getAgent();
```

### `haloFetch(url, options, haloClient)`

Retries a `402 Payment Required` request by paying it through HALO and replaying
the original HTTP request with the payment proof headers attached.

```ts
import { HaloClient, haloFetch } from "@halo/pay";

const halo = new HaloClient({ apiKey: process.env.HALO_API_KEY! });
const response = await haloFetch("https://example.com/paid-resource", { method: "GET" }, halo);
```

## x402 transparent payment handler

`haloFetch()` detects x402 payment requirements from response headers or body,
pays the required amount through HALO, then retries the original request with
`X-PAYMENT` and `PAYMENT-SIGNATURE` headers already populated.

## Chain support

- Base
- Ethereum
- Solana

Pass the HALO chain id you want to use, such as `base-sepolia`,
`ethereum-sepolia`, or `solana-devnet`.

## Error handling

The SDK throws typed errors:

- `HaloError` for general request failures
- `HaloAuthError` for invalid credentials
- `HaloRateLimitError` when retries are exhausted
- `HaloInsufficientFundsError` when HALO reports insufficient funds

```ts
import { HaloError } from "@halo/pay";

try {
  await halo.pay({ amountMicroUsdc: "10000", recipientAddress: "0x123..." });
} catch (error) {
  if (error instanceof HaloError) {
    console.error(error.statusCode, error.message);
  }
}
```

## TypeScript support

`@halo/pay` ships with bundled type declarations in `dist/index.d.ts`, so it
works out of the box in TypeScript projects.
npm package: @haloplatform/simple-sign-system
Description: This allows the signing of a transaction and data via a simple npm module. Also allows recovery of signed data. Requires web3 1.x.
Author: shadowcodex
Latest version: 1.0.2

[![npm scoped](https://img.shields.io/npm/v/@haloplatform/simple-sign-system.svg?style=for-the-badge)](https://www.npmjs.com/package/@haloplatform/simple-sign-system)

# simple-sign-system
This allows the signing of a transaction and data via a simple npm module. Also allows recovery of signed data. Requires web3 1.x.


REQUIREMENT = Web3js 1.x. Does not work with Web3 0.x.x!!!

## Usage

Install:

- npm `npm install @haloplatform/simple-sign-system`
- yarn `yarn add @haloplatform/simple-sign-system`


Import & Use:

```
const sss = require('@haloplatform/simple-sign-system);
const sss = new SimpleSignSystem();

sss.signTx(tx, privateKey, web3).then((tx) => {
    console.log(tx.serialized);
});

sss.signAndSend(tx, privateKey, web3, true).then((result) => {
    console.log(result.transactionHash);
});
```


## Some Docs


Available functions:

- `signTx`: signs a transaction to use via web3.sendSignedTransaction
- `signAndSend`: signs a transaction an uses passed web3 to send it. (web3 must already be setup with account info and provider);
- `send`: sends a signed transaction.
- `signData`: signs data the same as our feather client and extension.
- `recoverData`: recovers data signed by this system or our feather client / extension.


This is experimental code, use at your own risk.
npm package: @haloplatform/web3js-typings
Description: Typings File for Web3js
Author: Shannon Duncan
Latest version: 1.0.1

# web3js-typings
Typescript Typings File For Web3JS

This definitions file is currently in alpha, and hasn't been fully tested yet. use at your own risk.

## How to Use

run `npm install @haloplatform/web3js-typings`

then attach the file with a standard reference path:

`/// <reference path="../node_modules/@haloplatform/web3js-typings/index.d.ts" />`
npm package: @haloriyan/grid
Description: Simple responsive grid component for React Native
Latest version: 1.0.0

# @haloriyan/grid

Simple grid component that actually worked.

## Installation 

```
npm i @haloriyan/grid
```

# Usage

```
export default function App() {
	const users = [
		{name: "Riyan", username: "haloriyan"},
		{name: "Intan", username: "halointan"},
		{name: "Syarifah", username: "hisya"},
		{name: "Gista", username: "gistavil_"},
	]
	return (
		<View style={styles.container}>
			<View>
				<Grid col={2} gap={10}>
					{ users.map((user, u) => (
						<View key={u} style={styles.box}>
							<Text style={styles.name}>{user.name}</Text>
							<Text style={styles.username}>@{user.username}</Text>
						</View>
					))}
				</Grid>
			</View>
			<StatusBar style="auto" />
		</View>
	);
}

const styles = StyleSheet.create({
	container: {
		padding: 20,
		paddingTop: 80,
		backgroundColor: '#ecf0f1',
		flexGrow: 1
	},
	box: {
		backgroundColor: '#fff',
		borderRadius: 8,
		padding: 20,
		aspectRatio: 1,
		justifyContent: 'flex-end',
		gap: 5,
	},
	name: {
		fontSize: 16,
		color: '#444',
		fontWeight: '700',
	},
	username: {
		fontSize: 12,
		color: '#777'
	}
});
```
npm package: @halpz/fetch
Description: discordbot commands using js
Author: halpz
Latest version: 1.4.5

# Discord bot template using javascript

# Install:

```shell
npm i @halpz/fetch
```

# Support:

1. Moderator:
```shell
	- ban:					|	ban a member
	- bans:					|   	view baned list 
	- chnick:				|	change nick name a member
	- chrole:				|	change role a member
	- deafen:				|	set deafen a member
	- kick:					|	kick a member
	- mute:					|	set mute a member
	- move					| 	move member to another voice channel
	- timeout:				|	set timeout a member
	- undeafen:				|	remove deafen a member
	- unmute:				|	remove mute a member
	- untimeout:				|	remove timeout a member
```

2. Music:
```shell
	- join:					|	join your current voice channel
	- leave:				|   	leave current voice channel
	- nplay:				|	see what track is playing
	- pause:				|	Pause playing
	- play:					|	play an url, find and play from a query
	- queue:				|	see current queue
	- resume:				|	resume playing
	- setloop:				|	set repeated mode for your queue
	- shuffle:				|	shuffle current queue
	- skip:					|	skip current track to next track
	- stop:					|	stop playing and leave voice channel
```

3. Ultility:
```shell
	- ping:					|	get latency of your bot and API
	- status:				|	get bot's status
	- chat:					|	Ask Bing AI or Google Bard
```

# Usage:

1. Create `config.json`

```json
{
  "name": "", (You can use that for your help command)
  "prefix": "Your-prefix", (Only use if you want to use prefix command)

  "token": "Your-Bot-Token",
  "clientId": "Your-Bot-ClientId",

  "__Secure_1PSID": "Your-cookie-__Secure-1PSID",
  "__Secure_1PSIDTS": "Your-cookie-__Secure-1PSIDTS",

  "cookie_U": "Your-cookie-_U",

  "YOUTUBE_API_KEY": "Your-Youtube-API-key"
}
```

2. Run

```shell
  node test/index.js
```

# How to get token and clientID:

1. Token

> Go to https://discord.com/developers/applications/
>
> Chose your discord bot
>
> Chose `Bot`
>
> Chose `Reset Token` and follow the directions, then copy `token`
>
> Go to `config.py`
>
> Paste your Token to variable named `token`

2. CLientID

> Go to https://discord.com/developers/applications/
>
> Chose your discord bot
>
> Copy `application ID` value
>
> Go to `config.py`
>
> Paste your Token to variable named `clientID`

# How to get cookies for ai reponse:

1. Bing AI

> Go to https://bing.com/chat
>
> Run your cookies extension
>
> Copy value of cookies named `_U`
>
> Go to `config.json`
>
> Paste the cookies to `cookie_U`

2. Google Bard

> Go to https://bard.google.com/
>
> Run your `cookies extension`
>
> Copy values of cookies named `__Secure-1PSID` and `__Secure-1PSIDTS`
>
> Go to `config.json`
>
> Paste your cookies value to `__Secure_1PSID` and `__Secure_1PSIDTS`

# Get FFMPEG:

> Go to https://ffmpeg.org/download.html
>
> Download latest version for your OS system
>
> Make sure that ffmpeg can run in your terminal or cmd. If you use Windows, you should add to Your environment variables
npm package: @halsn/json-schema-editor-antd
Description: Json Schema 编辑器
Latest version: 0.1.7

# Json Schema 可视化编辑器（Antd）

## 快速开始

```
# 开发
npm run dev

# 构建
npm run build

# 发布前预览
npm run prepublishOnly && arco preview
```

## 示例

```shell
npm install @halsn/json-schema-editor-antd
```

```jsx
import { useState } from "react";
import JsonSchemaEditor from '@halsn/json-schema-editor-antd';
import '@halsn/json-schema-editor-antd/dist/css/index.css';

export default () => {

  const [jsonData, setJsonData] = useState({});

  return (
    <JsonSchemaEditor
      mock={true}
      data={jsonData}
      onChange={(data) => {
        setJsonData(data);
      }}
    />
  )
}
```
npm package: @halsp/alifc
Description: 将 Halsp 托管到阿里云函数计算
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

`@halsp/alifc` 是 `Halsp` 的阿里云云函数计算数托管环境

可以将 Halsp 托管到阿里云函数计算，有效提升云函数响应速度

## 安装

```
npm install @halsp/alifc
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/body
Description: Halsp 的 Http Body 解析插件
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

Halsp 的 Http Body 解析插件

## 安装

```
npm install @halsp/body
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/cli
Description: Halsp 的命令行脚手架工具
Author: hal-wang
Latest version: 0.5.13

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/cli/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/cli.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/cli" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/cli.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/cli/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/cli/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/cli/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/cli/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/cli"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请访问 <https://halsp.org>

## 介绍

`@halsp/cli` 是 `Halsp` 的命令行脚手架工具

用于帮助你创建、运行、编译 Halsp 应用

## 安装

```
npm install -g @halsp/cli
```

## 贡献

在提交 PR 前请先阅读 [Contributing to @halsp/cli](https://github.com/halsp/cli/blob/main/CONTRIBUTING.md)

<a href="https://github.com/halsp/cli/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/cli" />
</a>

## Status

![Alt](https://repobeats.axiom.co/api/embed/d54b564f74872207439e1bcc2c1295f60975d275.svg "Repobeats analytics image")

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2023-present, Hal Wang
npm package: @halsp/common
Description: 面向云的现代渐进式轻量 Node.js 框架
Author: hal-wang
Latest version: 1.0.1
Deprecated: Renamed to @halsp/core

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/common.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/common" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/common.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <http://mini.halsp.org> 🌈

> 该示例是由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)，可以在线编辑、运行、调试

## 介绍

<!--intro-->

Halsp 是一个面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架

可以运行于原生 NodeJS 服务，也可以运行于 serverless

### 渐进式

可以根据项目渐进式安装 Halsp 组件，包括路由、IOC、视图渲染、过滤器、请求管道等等

由于核心思想是中间件和依赖注入，因此 Halsp 的扩展性更强，你可以按需增加更多其他功能，也可以轻量运行小应用

### 多环境运行

Halsp 既可以运行在 serverless，也可以运行在原生 nodejs 服务、微服务等场景

Halsp 原生支持 serverless，作为云函数比其他 nodejs 框架速度更快

### 先进特性

Halsp 源码全部使用 TypeScript 开发，有完善的智能提示

mva 架构让项目各模块耦合度更低

可选的装饰器功能让接口设计更加简单

预编译路由，启动和响应速度更快，适合用于 serverless

开箱即用的 [CLI](https://github.com/halsp/cli) 让创建、调试、运行项目更加简单

<!--intro-end-->

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/cookie
Description: Halsp Cookie 插件，用于解析、设置 Cookie
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

Halsp Cookie 插件，用于解析、设置 Cookie

## 安装

```
npm install @halsp/cookie
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/core
Description: 面向云的现代渐进式轻量 Node.js 框架
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

<!--intro-->

Halsp 是一个面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架

可以运行于原生 NodeJS 服务，也可以运行于 serverless

### 渐进式

可以根据项目渐进式安装 Halsp 组件，包括路由、IOC、视图渲染、过滤器、请求管道等等

由于核心思想是中间件和依赖注入，因此 Halsp 的扩展性更强，你可以按需增加更多其他功能，也可以轻量运行小应用

### 多环境运行

Halsp 既可以运行在 serverless，也可以运行在原生 nodejs 服务、微服务等场景

Halsp 原生支持 serverless，作为云函数比其他 nodejs 框架速度更快

### 先进特性

Halsp 源码全部使用 TypeScript 开发，有完善的智能提示

mva 架构让项目各模块耦合度更低

可选的装饰器功能让接口设计更加简单

预编译路由，启动和响应速度更快，适合用于 serverless

开箱即用的 [CLI](https://github.com/halsp/cli) 让创建、调试、运行项目更加简单

<!--intro-end-->

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/cors
Description: Halsp 跨域插件
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

Halsp 跨域插件

## 安装

```
npm install @halsp/cors
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/env
Description: Halsp 的环境配置插件，可以根据运行环境加载不同的配置
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

Halsp 的环境配置插件，可以根据运行环境加载不同的配置

## 安装

```
npm install @halsp/env
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/filter
Description: Halsp 的请求过滤器插件
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

`@halsp/filter` 是 `Halsp` 的请求过滤器插件

请求过滤器可用于参数校验、身份验证、返回结果转换等

## 安装

```
npm install @halsp/filter
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/http
Description: 支持 Halsp HTTP 请求
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

支持 Halsp HTTP 请求

## 安装

```
npm install @halsp/http
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/inject
Description: Halsp 依赖注入中间件
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

`@halsp/inject` 是 `Halsp` 的依赖注入插件

依赖注入能极大的提升代码可读性与安全性

## 安装

```
npm install @halsp/inject
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/jwt
Description: 基于 jsonwebtoken 和 @halsp/inject 的 JWT 中间件
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

`@halsp/jwt` 是 `Halsp` 的 jwt 工具插件

基于 [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) 和 [@halsp/inject](https://github.com/halsp/core)

## 安装

```
npm install @halsp/jwt
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang
npm package: @halsp/knex
Description: Halsp Knex 插件
Author: hal-wang
Latest version: 2.4.5

<p align="center">
  <a href="https://halsp.org/" target="blank"><img src="https://halsp.org/images/logo.png" alt="Halsp Logo" width="200"/></a>
</p>

<p align="center">Halsp - 面向云的现代渐进式轻量 <a href="http://nodejs.org" target="_blank">Node.js</a> 框架</p>
<p align="center">
    <a href="https://github.com/halsp/core/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
    <a href=""><img src="https://img.shields.io/npm/v/@halsp/core.svg" alt="npm version"></a>
    <a href=""><img src="https://badgen.net/npm/dt/@halsp/core" alt="npm downloads"></a>
    <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@halsp/core.svg" alt="node compatibility"></a>
    <a href="#"><img src="https://github.com/halsp/core/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
    <a href="https://codecov.io/gh/halsp/core/branch/main"><img src="https://img.shields.io/codecov/c/github/halsp/core/main.svg" alt="Test Coverage"></a>
    <a href="https://github.com/halsp/core/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
    <a href="https://gitpod.io/#https://github.com/halsp/core"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
    <a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
</p>

## 开始使用

请跟随文档 [halsp.org](https://halsp.org) 📚

## 线上示例

请访问 <https://quickstart.halsp.org> 🌈

> 该网站可快速体验 Halsp，代码由 `@halsp/cli` 生成，运行于 [StackBlitz](https://stackblitz.com)

> 可以自由选择插件和运行环境，支持在线编辑、运行、调试

## 介绍

Halsp Knex 插件

## 安装

```
npm install @halsp/knex
```

## 贡献

在提交 PR 前请先阅读 [Contributing to Halsp](https://github.com/halsp/core/blob/main/CONTRIBUTING.md).

<a href="https://github.com/halsp/core/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=halsp/core" />
</a>

## 遇到问题

首先查找是否已有相关问题：

1. 查看文档 [halsp.org](https://halsp.org) 是否有相关内容
2. 查看 [Discussions](https://github.com/halsp/core/discussions) 是否有相关讨论
3. 查看 [Issues](https://github.com/halsp/core/issues) 是否有相关内容

如果以上没有找到答案：

- 一般性问题请在讨论区提问 [Discussions](https://github.com/halsp/core/discussions)
- 代码问题或不符预期的行为请提 [Issues](https://github.com/halsp/core/issues)

如果你能通过代码解决这个问题欢迎提交 [Pull requests](https://github.com/halsp/core/pulls)

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2022-present, Hal Wang