open-index/open-npm huggingface dataset:
npm package: @mariozechner/hotserve
Description: Minimal hot-reload development server
Latest version: 0.1.2

# @mariozechner/hotserve

Minimal hot-reload development server. Zero config, zero bullshit.

## Usage

```bash
npx @mariozechner/hotserve [options]
```

## Options

- `-p, --port <port>` - Port to run server on (default: 4000)
- `--path <mapping>` - Path mapping in format `local-dir:route` (can be specified multiple times)
- `-v, --verbose` - Verbose output
- `-h, --help` - Display help

## Examples

Serve current directory on port 4000:

```bash
npx @mariozechner/hotserve
```

Serve on custom port:

```bash
npx @mariozechner/hotserve --port 3000
```

Map multiple directories:

```bash
npx @mariozechner/hotserve --path dist:/static --path public:/ --port 8080
```

Serve example folder at root and dist at /static:

```bash
npx @mariozechner/hotserve --path example:/ --path dist:/static
```

## Features

- Auto-reload on file changes
- Injects reload script into HTML files automatically
- Disables caching for development
- Multiple path mappings
- Zero configuration needed

## Development

```bash
# Clone and install
git clone https://github.com/badlogic/hotserve
cd hotserve
npm install

# Run locally
npx tsx src/cli.ts --path example:/ --port 4000

# Build
npm run build
```

## Publishing

The `publish.sh` script handles versioning, tagging, and publishing:

```bash
# Patch release (1.0.0 -> 1.0.1)
./publish.sh

# Minor release (1.0.1 -> 1.1.0)
./publish.sh minor

# Major release (1.1.0 -> 2.0.0)
./publish.sh major
```

The script will:

1. Check for uncommitted changes
2. Run checks (format, lint, type-check)
3. Build the project
4. Bump version in package.json
5. Commit and tag the version
6. Push to GitHub with tags
7. Publish to npm

Manual publishing:

```bash
npm version patch  # or minor/major
git push && git push --tags
npm run build
npm publish --access public
```

## License

MIT
npm package: @mariozechner/pi-proxy
Description: CORS and authentication proxy for pi-ai
Latest version: 0.30.2

# @mariozechner/pi-proxy

CORS and authentication proxy for pi-ai. Enables browser clients to access OAuth-protected endpoints.

## Usage

### CORS Proxy

Zero-config CORS proxy for development:

```bash
# Run directly with tsx
npx tsx packages/proxy/src/cors-proxy.ts 3001

# Or use npm script
npm run dev -w @mariozechner/pi-proxy

# Or install globally and use CLI
npm install -g @mariozechner/pi-proxy
pi-proxy 3001
```

The proxy will forward requests to any URL:

```javascript
// Instead of:
fetch('https://api.anthropic.com/v1/messages', { ... })

// Use:
fetch('http://localhost:3001?url=https://api.anthropic.com/v1/messages', { ... })
```

### OAuth Integration

For Anthropic OAuth tokens, configure your client to use the proxy:

```typescript
import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({
  apiKey: 'oauth_token_here',
  baseURL: 'http://localhost:3001?url=https://api.anthropic.com'
});
```

## Future Proxy Types

- **BunnyCDN Edge Function**: Deploy as edge function
- **Managed Proxy**: Self-hosted with provider key management and credential auth
- **Cloudflare Worker**: Deploy as CF worker

## Architecture

The proxy:
1. Accepts requests with `?url=<target>` query parameter
2. Forwards all headers (except `host`, `origin`)
3. Forwards request body for non-GET/HEAD requests
4. Returns response with CORS headers enabled
5. Strips CORS headers from upstream response

## Development

```bash
npm install
npm run build
npm run check
```
npm package: @marirs/button-component
Description: ## Project setup ``` yarn install ```
Latest version: 0.1.0

# button-component

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).