open-index/open-npm huggingface dataset:
npm package: @stackx/router
Description: Router for stackx
Latest version: 0.43.0

# @stackx/router

Router for stackx

Facts

express 的 req

- url (包含 query, 可修改)
- path (不包含 query, 可以被赋值，但不会生效，应该是 getter/setter 控制的行为)
- originalUrl (可修改)

```js
router = Router()
router.get('/a', fn)
app.use('/base', router)
```

fn 命中时 url: '/a', path: '/a', originalUrl: '/base/a'

vercel serverless 的 req

- url (包含 query)


目标

模拟 express 的行为

实现

使用 url 属性作状态存储
根据当前匹配情况添加 params
TODO 添加 path 计算属性
npm package: @stackzero-labs/mcp
Description: MCP (Model Context Protocol) server for stackzero-labs/ui
Author: @stackzero-labs
Latest version: 0.4.0

<!-- PROJECT LOGO -->
<br />
<div align="center">
  <a href="https://github.com/stackzero-labs/ui">
    <img src="public/logo.svg" alt="Logo" width="80" height="80">
  </a>

  <h3 align="center">@stackzero-labs/mcp</h3>

  <p align="center">
    Official MCP (Model Context Protocol) server for stackzero-labs/ui.
    <br />
    <a href="https://ui.stackzero.co"><strong>Official Docs »</strong></a>
    <br />
    <br />
    <a href="https://ui.stackzero.co/get-started">Get started</a>
    &middot;
    <a href="https://github.com/stackzero-labs/mcp/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
    &middot;
    <a href="https://github.com/stackzero-labs/mcp/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a>
  </p>
</div>

## Overview

This package allows you to run a model context server for stackzero-labs/ui components, enabling you to use the MCP protocol with your applications.

## 1-click install in Cursor

[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=%40stackzero-labs%2Fmcp&config=eyJjb21tYW5kIjoibnB4IC15IEBzdGFja3plcm8tbGFicy9tY3BAbGF0ZXN0In0%3D)

## Installation

```bash
npm install @stackzero-labs/mcp
```

## Usage

### As a standalone server

```bash
npx @stackzero-labs/mcp
```

### In Claude Desktop

Add to your Claude Desktop configuration:

```json
{
  "mcpServers": {
    "@stackzero-labs/mcp": {
      "command": "npx",
      "args": ["-y", "@stackzero-labs/mcp@latest"]
    }
  }
}
```

### In Cursor (manual setup)

Go to Cursor settings, select `MCP`. Add to your Cursor configuration:

```json
{
  "mcpServers": {
    "@stackzero-labs/mcp": {
      "command": "npx",
      "args": ["-y", "@stackzero-labs/mcp@latest"]
    }
  }
}
```

### Development

```bash
# Install dependencies
pnpm install

# Build the project
pnpm build

# Run in development mode
pnpm dev

# Inspect the MCP server
pnpm inspect
```

## License

See [LICENSE](LICENSE) for details.
npm package: @stacon/roll
Description: A functions than can emulate the roll of dice with custom dimensions
Author: Constantinos Stathis
Latest version: 1.0.0

# Roll
A simple program that emulates dice rolls with custom number of dimensions and times rolled. Like rolling 5d20 but with a function.

# Usage
```
import Roll, { d, sum } from '@stacon/roll'

// Create a die
const D20 = d(20);

// Sigle die roll
console.log(Roll(D20)) // should log a number between 1 - 20 like a d20 roll would.

// Multiple dice roll of the same dimensions
const resultsArr = Roll.times(5)(D20) // returns an array of numbers between 1 - 20
console.log(resultsArr) // should log e.g [ 19, 20, 1, 5, 11 ]
console.log(sum(resultsArr)) // should return the sum of results are e.g. 56
```