open-index/open-npm huggingface dataset:
npm package: @humwing/swagger-code-gen
Description: swagger api to code
Author: hmw
Latest version: 1.0.3

# 安装

```
yarn add @humwing/swagger-code-gen
```

# 使用

```js
const api = require('@humwing/swagger-code-gen')
const path = require('path')
api.code2ts({
  template: {},
  filepath: path.resolve('./api'),
  swaggerApiUrl: 'http://example.com/common/v2/api-docs?group=api'
})
api.code2js({
  filepath: path.resolve('./api.js'),
  swaggerApiUrl: 'http://example.com/common/v2/api-docs?group=api'
})
```
npm package: @humza-dilpazeer/my-react-calculator
Description: A simple calculator component built with React and styled using Tailwind CSS
Author: Hamza Dilpazeer
Latest version: 1.0.0

# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
npm package: @hun-dun/markdown-to-html-mcp
Description: ## 项目简介
Latest version: 1.0.1

# @hun-dun/markdown-to-html-mcp

## 项目简介

本项目基于 [modelcontextprotocol/typescript-sdk](https://github.com/modelcontextprotocol/typescript-sdk) 实现 Markdown 转 HTML 的 MCP 服务端，支持 npx/全局命令一键启动、远程 HTTP/Streamable HTTP 调用，并可被 Cursor 等 MCP 客户端直接调用。

## 特性
- 支持 ESM/CJS 双产物，适配多种 Node.js 环境
- 一键 npx/全局命令启动（stdio）
- 支持 HTTP/Streamable HTTP 服务
- 结构现代，类型安全，源码位于 `src/`，产物位于 `dist/`（ESM）和 `dist-cjs/`（CJS）
- bin/主入口均指向 CJS 产物，兼容性强
- 可被 Cursor、curl、代码等多种方式远程调用

## 快速开始

### 安装依赖
```bash
npm install
```

### 构建产物
```bash
npm run build
```

### 本地启动（stdio）
```bash
npx ts-node src/cli.ts
# 或
npm run start
```

### 启动 HTTP 服务
```bash
npx ts-node src/cli.ts --http
# 或
node dist-cjs/cli.js --http
```

### 作为全局命令/被 Cursor 调用
```bash
npx @hun-dun/markdown-to-html-mcp
# 或
markdown-to-html-mcp
```

### 远程 HTTP/Streamable HTTP 调用
```bash
curl -X POST http://localhost:3000/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{"tool":"markdownToHtml","input":{"markdown":"# Hello"}}'
```

### ESM/CJS 产物说明
- ESM 产物位于 `dist/`，入口 `dist/index.js`
- CJS 产物位于 `dist-cjs/`，入口 `dist-cjs/index.js`
- bin/主入口均指向 CJS 产物，兼容 npx/全局命令

## MCP 工具注册与调用
- `registerMarkdownToHtmlTool(server)` 注册 markdownToHtml 工具，参数为 markdown，返回 HTML。
- CLI 支持 stdio 和 HTTP 两种模式。

## 在 Cursor 中调用

本工具可直接集成到 Cursor，支持本地（stdio）和远程（http）两种方式：

### 方式一：本地调用（stdio，推荐本地开发/临时调用）

在 `.cursor/config.json` 中添加如下配置：

```json
{
  "mcp": [
    {
      "name": "@hun-dun/markdown-to-html-mcp (本地 npx)",
      "type": "stdio",
      "command": "npx",
      "args": ["@hun-dun/markdown-to-html-mcp"]
    }
  ]
}
```
- Cursor 会自动用 npx 下载并调用你的包，适合本地/临时场景。
- 不需要你手动启动服务端。
- 结果会直接在 Cursor 工具面板中展示。

### 方式二：远程调用（http，推荐云端/团队共享）

1. 启动 HTTP 服务：
   ```bash
   npx @hun-dun/markdown-to-html-mcp --http
   # 或 PORT=8080 npx @hun-dun/markdown-to-html-mcp --http
   ```
2. 在 `.cursor/config.json` 中添加如下配置：

```json
{
  "mcp": [
    {
      "name": "@hun-dun/markdown-to-html-mcp (remote)",
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  ]
}
```
- 适合你用 `npx @hun-dun/markdown-to-html-mcp --http` 启动服务后，供多台机器/团队成员/云端调用。
- 结果会直接在 Cursor 工具面板中展示。

## 常见问题
- ts-node 运行 .ts 文件报 "Unknown file extension .ts"——需加 `--loader ts-node/esm`
- node 运行 dist/index.js 报 "exports is not defined in ES module scope"——需用 CommonJS 产物并移除 package.json 的 "type": "module"，或用 .cjs 后缀
- StreamableHTTPServerTransport 构造参数报错，需根据 SDK 版本传递正确 options

## 适用场景
- 本地开发、测试
- 远程 HTTP/Streamable HTTP 服务
- Cursor、MCP 客户端一键集成
- 代码/脚本/命令行调用

## License
MIT
npm package: @hun_meta/lambda-common
Description: Common utilities and services for Lambda functions
Author: Hun
Latest version: 0.0.1

# @your-username/lambda-common

Common utilities and services for Lambda functions.

## Installation

```bash
npm install @your-username/lambda-common
```

## Usage

```typescript
import { BaseService, CustomException, LoggerService } from '@your-username/lambda-common';

// Use LoggerService
const logger = LoggerService.getInstance();
logger.info('MyContext', 'Hello World');

// Extend BaseService
class MyService extends BaseService {
  constructor() {
    super('MyContext', '001', logger);
  }
}
```

## Development

```bash
# Build
npm run build

# Watch mode
npm run build:watch

# Test
npm run test

# Lint
npm run lint
```

## License

MIT
npm package: @hunab/react-url-sync
Description: A simple React hook to synchronize component state with URL query parameters.
Author: Gustavo Diaz
Latest version: 1.0.1

# @hunab/react-url-sync

[![npm version](https://img.shields.io/npm/v/@hunab/react-url-sync.svg?style=flat-square)](https://www.npmjs.com/package/@hunab/react-url-sync)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)

> A simple React hook to synchronize component state with URL query parameters.

<br>
<p align="center">
  <img src="./assets/demo.gif" alt="useUrlState hook demo showing URL changing" width="600" />
</p>

---

## ✨ Features
- 🔗 Synchronize state with URL query parameters.
- 🎣 Easy-to-use React hook API.
- ⚡ Zero dependencies (only React).
- 📦 Lightweight and tree-shakeable.

---

## 📦 Installation
```bash
npm install @hunab/react-url-sync
# or
yarn add @hunab/react-url-sync
# or
pnpm add @hunab/react-url-sync
```

---

## 🚀 Usage

Here's a simple example of how to sync a search input with the URL:

```jsx
import React from 'react';
import { useUrlState } from '@hunab/react-url-sync';

function SearchComponent() {
  // The 'searchTerm' state will be synced with the 'q' parameter in the URL
  const [searchTerm, setSearchTerm] = useUrlState('q', '');

  return (
    <input
      type="text"
      value={searchTerm}
      onChange={(e) => setSearchTerm(e.target.value)}
      placeholder="Search..."
    />
  );
}
```

---

## 🛠 API

### `useUrlState(key: string, defaultValue: T)`
- **key**: The name of the query parameter in the URL.
- **defaultValue**: Default state value when the parameter is missing.

**Returns**
```ts
[T, React.Dispatch<React.SetStateAction<T>>]
```

---

## 📖 Examples

### Multiple parameters
```jsx
const [page, setPage] = useUrlState('page', 1);
const [filter, setFilter] = useUrlState('filter', 'all');
```

---

## 🤝 Contributing

Contributions, issues and feature requests are welcome!  
Feel free to check the [issues page](https://github.com/gustavo4490/react-url-sync/issues).

---

## 📄 License

This project is licensed under the [MIT License](./LICENSE).