open-index/open-npm huggingface dataset:
npm package: @fuseplane/runtime
Description: Fuseplane runtime for serverless edge functions
Author: Fuseplane
Latest version: 0.0.3

# @fuseplane/runtime

The core runtime library for Fuseplane, providing the necessary handlers and adapters to integrate Fuseplane into your serverless or edge functions.

## Installation

```bash
npm install @fuseplane/runtime
```

## Usage

The runtime provides a core handler for standard Web API `Request`/`Response` objects (Edge runtime) and adapters for specific platforms like Node.js (Vercel Serverless).

### Core Handler (Edge Runtime)

Use `createFuseplaneHandler` for environments that support the standard Fetch API (e.g., Vercel Edge, Cloudflare Workers).

```typescript
import { createFuseplaneHandler } from "@fuseplane/runtime";

const handler = createFuseplaneHandler({
  gatewayUrl: process.env.FUSEPLANE_URL || "https://api.fuseplane.com",
});

export default async function (request: Request) {
  return handler(request);
}
```

### Vercel Serverless (Node.js)

For Vercel Serverless Functions running on Node.js, use the `fuseplaneVercel` adapter.

```typescript
import { fuseplaneVercel } from "@fuseplane/runtime";

const handler = fuseplaneVercel({
  gatewayUrl: process.env.FUSEPLANE_URL || "https://api.fuseplane.com",
});

export default handler;
```

### Configuration

Both handlers usually don't need manual configuration if you use the CLI, which generates the correct files for you.

However, if using manually, they require:
- `gatewayUrl`: The URL of your dedicated FusePlane Gateway (e.g., `https://a1b2c3d4.fuseplane.com`).

### Environment Variables

The runtime relies on these environment variables:

```env
FUSEPLANE_SECRET_KEY=fp_sk_...
FUSEPLANE_URL=https://<id>.fuseplane.com
```

- `FUSEPLANE_SECRET_KEY`: Used to authenticate requests to the Fuseplane Gateway.
- `FUSEPLANE_URL`: Your dedicated Gateway URL.

## detailed Reference

- **`createFuseplaneHandler(config)`**: Returns an async function `(request: Request) => Promise<Response>`.
- **`fuseplaneVercel(config)`**: Returns an async function `(req: IncomingMessage, res: ServerResponse) => Promise<void>`.
npm package: @fuseui-org/cli
Description: FuseUI Command Line Interface
Author: FuseUI Team
Latest version: 0.1.1

# FuseUI CLI

A command-line interface for FuseUI, a token-first, adapter-driven release engine that turns design intent into reviewed, versioned UI code packages.

## Installation

```bash
# Install globally
npm install -g @fuseui-org/cli

# Or use with npx
npx @fuseui-org/cli --help

# Or install in your project
npm install --save-dev @fuseui-org/cli
```

## Usage

```bash
# Show help
fuseui --help

# Show version
fuseui --version

# Manage design tokens
fuseui tokens

# Generate code from design tokens
fuseui generate
```

## Development

```bash
# Install dependencies
pnpm install

# Build the CLI
pnpm build

# Run the CLI in development mode
node dist/index.js --help
```

## Testing

This package uses Vitest for testing. Tests are co-located with the source files they're testing.

```bash
# Run tests
pnpm test

# Run tests in watch mode
pnpm test:watch
```

## License

MIT
npm package: @fuseui-org/sdk
Description: FuseUI SDK for API integration
Author: FuseUI Team
Latest version: 0.1.1

# `@fuseui-org/sdk`

The FuseUI SDK provides programmatic access to the FuseUI API. This package can be used in both browser and Node.js environments.

## Installation

```bash
npm install @fuseui-org/sdk
# or
yarn add @fuseui-org/sdk
# or
pnpm add @fuseui-org/sdk
```

## Usage

```typescript
import { FuseClient } from "@fuseui-org/sdk";

// Initialize the client with options
const client = new FuseClient({
  baseUrl: "https://api.fuseui.com", // Optional, defaults to this value
  apiVersion: "v1", // Optional, defaults to 'v1'
  apiKey: "your-api-key", // Optional, for authenticated requests
});

// Make API requests
try {
  // Ping the API to check connectivity
  const pingResult = await client.ping();
  console.log("API Status:", pingResult.status);

  // Get user information
  const user = await client.getUser();
  console.log("User:", user);
} catch (error) {
  console.error("API Error:", error);
}
```

## Features

- Cross-platform (works in browser and Node.js)
- Lightweight with minimal dependencies
- TypeScript support

## API Documentation

This SDK will be used for any programmatic access to the FuseUI API. More detailed documentation will be added as the API evolves.

### `FuseClient`

The main client class for interacting with the FuseUI API.

#### Constructor

```typescript
new FuseClient(options?: FuseClientOptions)
```

#### Methods

##### `ping()`

Pings the API to check connectivity.

```typescript
async ping(): Promise<{ status: string; message: string }>
```

##### `getUser()`

Returns information about the authenticated user.

```typescript
async getUser(): Promise<{ id: string; name: string }>
```

## Development

### Building the SDK

```bash
pnpm build
```

### Running Tests

```bash
pnpm test
```
npm package: @fushihara/merge-header-dateformat-testgnske
Description: 複数行のテキストの各行にタイムスタンプを挿入する
Author: Fushihara
Latest version: 1.0.0

複数行の文字列の各行にタイムスタンプを接頭語として追加した文字列を返します。

```
import { mergeHeaderDateformat } from ".";
mergeHeaderDateformat(`あいうえお\nかきくけこ\nさしすせそ`);
/*
2018/07/30(月)00:59:59.999 あいうえお
2018/07/30(月)00:59:59.999 かきくけこ
2018/07/30(月)00:59:59.999 さしすせそ
*/
```

pm2のログで使う為に作りました。