open-index/open-npm huggingface dataset:
npm package: @flowscripter/template-bun-rust-library
Description: Project template for a Rust library with Bun FFI bindings
Latest version: 1.0.26

# template-bun-rust-library

[![version](https://img.shields.io/github/v/release/flowscripter/template-bun-rust-library?sort=semver)](https://github.com/flowscripter/template-bun-rust-library/releases)
[![build](https://img.shields.io/github/actions/workflow/status/flowscripter/template-bun-rust-library/release-bun-rust-library.yml)](https://github.com/flowscripter/template-bun-rust-library/actions/workflows/release-bun-rust-library.yml)
[![coverage](https://codecov.io/gh/flowscripter/template-bun-rust-library/branch/main/graph/badge.svg?token=D4ISqIOY1p)](https://codecov.io/gh/flowscripter/template-bun-rust-library)
[![license: MIT](https://img.shields.io/github/license/flowscripter/template-bun-rust-library)](https://github.com/flowscripter/template-bun-rust-library/blob/main/LICENSE)

> Project template for a Rust library with Bun FFI bindings.

## Template Usage

Create a new Bun project using this as a template:

`bun create @flowscripter/template-bun-rust-library`

## Bun Module Usage

Add the module:

`bun add @flowscripter/template-bun-rust-library`

Use the module:

```typescript
import { world } from "@flowscripter/template-bun-rust-library";

world();
```

## Development

Install dependencies:

`bun install`

Test:

`cargo test`

`cargo build --release && bun test`

**NOTE**: The following tasks use Deno as it excels at these and Bun does not
currently provide such functionality:

Format:

`deno fmt`

Lint:

`cargo fmt && deno lint index.ts src/ tests/`

Generate HTML API Documentation:

`deno doc --html --name=template-bun-rust-library index.ts`

## Documentation

### Overview

Sample mermaid diagram to test rendering in markdown:

```mermaid
classDiagram
    Foo <|-- Bar
```

### API

Link to auto-generated API docs:

[API Documentation](https://flowscripter.github.io/template-bun-rust-library/index.html)

## License

MIT © Flowscripter
npm package: @flowscripter/template-bun-wasm-rust-library
Description: Project template for a Rust library compiled to WASM exposed as a Bun module
Latest version: 1.0.6

# template-bun-wasm-rust-library

[![version](https://img.shields.io/github/v/release/flowscripter/template-bun-wasm-rust-library?sort=semver)](https://github.com/flowscripter/template-bun-wasm-rust-library/releases)
[![build](https://img.shields.io/github/actions/workflow/status/flowscripter/template-bun-wasm-rust-library/release-bun-wasm-rust-library.yml)](https://github.com/flowscripter/template-bun-wasm-rust-library/actions/workflows/release-bun-wasm-rust-library.yml)
[![coverage](https://codecov.io/gh/flowscripter/template-bun-wasm-rust-library/graph/badge.svg?token=uWK0oWsBjr)](https://codecov.io/gh/flowscripter/template-bun-wasm-rust-library)
[![docs](https://img.shields.io/badge/docs-API-blue)](https://flowscripter.github.io/template-bun-wasm-rust-library/index.html)
[![license: MIT](https://img.shields.io/github/license/flowscripter/template-bun-wasm-rust-library)](https://github.com/flowscripter/template-bun-wasm-rust-library/blob/main/LICENSE)

> Project template for a Rust library compiled to WASM exposed as a Bun module.

## Template Usage

Create a new Bun project using this as a template:

`bun create @flowscripter/template-bun-wasm-rust-library`

## Bun Module Usage

Add the module:

`bun add @flowscripter/template-bun-wasm-rust-library`

Use the module:

```typescript
import { world } from "@flowscripter/template-bun-wasm-rust-library";

world();
```

## Development

Install [wasm-pack](https://rustwasm.github.io/wasm-pack/):

`cargo install wasm-pack`

Install dependencies:

`bun install`

Build (remove generated `.gitignore` to allow npm publish from root of
repository):

`wasm-pack build --target web --release --no-pack && rm pkg/.gitignore`

Test:

`cargo test && bun test`

**NOTE**: The following tasks use Deno as it excels at these and Bun does not
currently provide such functionality:

Format:

`deno fmt`

Lint:

`cargo fmt && deno lint index.ts src/ tests/`

Generate HTML API Documentation:

`deno doc --html --name=template-bun-wasm-rust-library index.ts`

## Documentation

### Overview

Sample mermaid diagram to test rendering in markdown:

```mermaid
classDiagram
    Foo <|-- Bar
```

### API

Link to auto-generated API docs:

[API Documentation](https://flowscripter.github.io/template-bun-wasm-rust-library/index.html)

## License

MIT © Flowscripter
npm package: @flowshapr/client
Description: JavaScript/TypeScript client SDK for executing Flowshapr AI flows via API
Author: Flowshapr Team
Latest version: 0.1.1

# @flowshapr/client

JavaScript/TypeScript client SDK for executing [Flowshapr](https://flowshapr.com) AI flows via API.

## Installation

```bash
npm install @flowshapr/client
```

## Quick Start

```typescript
import { FlowshaprClient } from '@flowshapr/client';

const client = new FlowshaprClient({
  baseUrl: 'https://api.flowshapr.com',
  apiKey: 'your-api-key-here'
});

// Execute a flow by alias
const result = await client.runByAlias('my-flow-alias', {
  message: 'Hello, AI!'
});

console.log(result.result);
```

## API Reference

### FlowshaprClient

#### Constructor

```typescript
new FlowshaprClient(config: ClientConfig)
```

- `config.baseUrl` - The base URL of your Flowshapr instance
- `config.apiKey` - Your flow-scoped API key

#### Methods

##### runByAlias(alias, input, options?)

Execute a flow by its alias.

```typescript
await client.runByAlias('my-flow', { input: 'data' });
```

##### runById(flowId, input, options?)

Execute a flow by its ID.

```typescript
await client.runById('flow-123', { input: 'data' });
```

#### Response Format

All methods return an `ExecuteResponse<T>`:

```typescript
{
  success: boolean;
  result?: T;           // The flow's output
  error?: any;          // Error details if failed
  runtime?: string;     // Execution runtime info
  meta?: any;          // Additional metadata
}
```

## Authentication

This SDK uses Bearer token authentication with flow-scoped API keys. Generate an API key from your Flowshapr dashboard with `execute_flow` scope.

## Requirements

- Node.js 16+ (uses native `fetch`)
- Modern browsers with `fetch` support

## License

MIT
npm package: @flowsn4ke/usekeys
Description: A simple hook to generate unique keys in react!
Author: Theo Louvel
Latest version: 0.1.7

# useKeys

Generate unique yet persisted keys for `.map()` functions in React, allowing React to update only the components that need to be and preventing duplicate keys that lead to bugs. The function it returns accepts the array index as an argument.

## Note

You need one instance of useKeys() per `.map()` function call, otherwise you'll end up with duplicates.

## Usage

```jsx
import useKeys from '@flowsn4ke/usekeys'

export function MyComponent(props) {
  const k = useKeys()

  return <>
  {new Array(42).fill(null).map(value, i) => {
    return <div key={k(i)}>
    unique key number {i}: {k(i)}
    </div>}}
  </>
}
```