open-index/open-npm huggingface dataset:
npm package: @lazydynamics/rxinfer-client
Description: A client to connect to RxInferServer
Latest version: 1.3.0

# RxInfer Client

[![npm version](https://badge.fury.io/js/%40lazydynamics%2Frxinfer-client.svg)](https://badge.fury.io/js/%40lazydynamics%2Frxinfer-client)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A TypeScript client for interacting with RxInferServer, providing type-safe access to its API endpoints.

## About RxInferServer

RxInferServer is a Julia-based server that provides an API for performing probabilistic inference using the RxInfer.jl package. This client library allows you to interact with RxInferServer from TypeScript/JavaScript applications.

### Key Features of RxInferServer
- Probabilistic inference using message passing
- Support for various probabilistic models
- RESTful API interface
- Real-time inference capabilities

## Installation

```bash
npm install @lazydynamics/rxinfer-client
```

## Usage

```typescript
import { RxInferClient, pingServer } from '@lazydynamics/rxinfer-client';

// Create a client instance
const client = await RxInferClient.create();

// Use the client to interact with RxInferServer
const response = await pingServer({ client });
console.log(response.data);  // { status: 'ok' }
```

## Development

### Prerequisites
- Node.js (LTS version recommended)
- RxInferServer running locally or accessible via network

### Setting up RxInferServer
1. Clone the RxInferServer repository:
   ```bash
   git clone https://github.com/lazydynamics/RxInferServer.git
   cd RxInferServer
   ```

2. Build and start the server:
   ```bash
   make docker
   make dev
   ```

   This will start RxInferServer on `http://localhost:8000`.

### Building the Client
1. Install dependencies:
   ```bash
   npm install
   ```

2. Generate TypeScript client from OpenAPI specification:
   ```bash
   npm run generate
   ```

3. Build the package:
   ```bash
   npm run build
   ```

### Running Tests
```bash
npm test
```

Note: Tests require RxInferServer to be running locally.

## Documentation

Generate and view documentation:
```bash
npm run docs
npm run docs:serve
```

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support

If you encounter any issues or have questions, please:
1. Check the [documentation](https://lazydynamics.github.io/RxInferClient.js/)
2. Open an [issue](https://github.com/lazydynamics/RxInferClient.js/issues)
3. Contact the maintainers
npm package: @lazyfi-learning/gamesdk
Description: SDK for integrating lazyfi games
Author: LazyFi
Latest version: 0.1.2

## @lazyfi-learning/gamesdk
Library used to integrate lazyfi games with the website

[![npm version](https://img.shields.io/npm/v/@lazyfi-learning/gamesdk?color=teal&label=VERSION&style=for-the-badge)](https://www.npmjs.com/package/@lazyfi-learning/gamesdk)
[![npm downloads](https://img.shields.io/npm/dw/@lazyfi-learning/gamesdk?label=downloads&style=for-the-badge)](https://www.npmjs.com/package/@lazyfi-learning/gamesdk)

# Setup
`
npm install @lazyfi-learning/gamesdk
`

## Website setup
```js
import { WebSDK } from '@lazyfi-learning/gamesdk'

const websdk = new WebSDK({
    baseURL: 'https://lazyfi.gg' // http://localhost:8080 for dev environment
})
```

## Game setup
```js
import { GameSDK } from '@lazyfi-learning/gamesdk'

const websdk = new GameSDK({
    baseURL: 'https://lazyfi.gg' // http://localhost:8080 for dev environment
})
```

# Events
Subsribe to events using
```js
${websdk|gamesdk}.events.on(event, callbackFn, context)
```
## Event names
- **start** - dispatched on game session start
- **stop** - dispatched on game session stop
- **question** - dispached after receiving question requested by the game
- **answer** - dispatched after sending answer to any question
npm package: @lazylab/show-react
Description: A lightweight, performant conditional rendering component for React and Next.js
Author: Jarbas Gouveia
Latest version: 1.1.1

A lightweight, performant conditional rendering component for React and Next.js.

## Features

- 🚀 **Lightweight**: Zero dependencies (only React as peer dependency, of course).
- ⚡ **Performant**: Supports lazy evaluation of children via render props to avoid unnecessary instantiation.
- 🛡️ **Type-safe**: Built with TypeScript.
- 🧩 **Flexible**: Supports `fallback` prop for "else" cases.
- ✅ **Falsy-safe**: `when` is coerced to boolean, so `0`, `NaN` and `""` never render children (no accidental "0" or "NaN" in the UI).

## Installation

```bash
npm install @lazylab/show-react
# or
pnpm add @lazylab/show-react
# or
yarn add @lazylab/show-react
```

## Usage

### Basic Usage

```tsx
import { Show } from '@lazylab/show-react';

function MyComponent() {
  const [isVisible, setIsVisible] = useState(false);

  return (
    <Show when={isVisible} fallback={<p>Not visible</p>}>
      <div>Now you see me!</div>
    </Show>
  );
}
```

### Lazy Evaluation (Performance Optimization)

If you have expensive components or calculations inside the conditional block, you can pass a function as children. This ensures the content is only evaluated when `when` is true.

```tsx
import { Show } from '@lazylab/show-react';

function MyComponent() {
  return (
    <Show when={isAdmin}>
      {() => <HeavyAdminDashboard />}
    </Show>
  );
}
```

## API

### `<Show />`

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `when` | `unknown` | Required | Any value; coerced to boolean (0, NaN, "" → falsy). |
| `fallback` | `ReactNode` | `null` | Content to render when condition is falsy. |
| `children` | `ReactNode` \| `() => ReactNode` | Required | Content to render when condition is truthy. Use a function for lazy evaluation. |

## License

MIT