open-index/open-npm huggingface dataset:
npm package: @iwpnd/rip-ts
Description: rest-client
Author: B. Ramser
Latest version: 1.2.2

# rip-ts

<br />
<div align="center">
  <h3 align="center">REST in piece</h3>

  <p align="center">
    Build JSON API clients fast
    <br />
    <a href="https://github.com/ipwnd/rip-ts/issues">Report Bug</a>
    ·
    <a href="https://github.com/iwpnd/rip-ts/issues">Request Feature</a>
  </p>
</div>

## About The Project

Found myself rewriting the same rest client all over again and wanted to put a
stop to that. This will be the base of every upcoming http clients going forward.

### Installation

```sh
yarn install @iwpnd/rip-ts

# or

npm install @iwpnd/rip-ts
```

## Usage

### Basic Usage

```typescript
import { RestClient } from '@iwpnd/rip-ts';

type User = {
    id: string;
    name: string;
    isActive: boolean;
    isAdmin: boolean;
};

const client = new RestClient('http://localhost:3000');

// GET
await client.get<User>('/users');

/*
 * Resolve parameter
 */
await client.get<User>('/users/:id', {
    params: { id: 1 },
});

/*
 * Resolve query string
 */
await client.get<User[]>('/users', {
    query: { isActive: true, isAdmin: true },
});
// > http://localhost:3000/users?isActive=true&isAdmin=true

await client.put('/users/:id', {
    params: { id: 1 },
    body: { name: 'Rick Roll' },
});

// POST
await client.post('/users', {
    body: { id: 2, name: 'Jean Claude van Damme' },
});

// PUT
await client.put('/users/:id', {
    params: { id: 1 },
    body: { name: 'Rick Roll' },
});

// DELETE
await client.delete('/users/:userId', { params: { userId: 1 } });
```

### Advanced Usage

#### Timeout

```typescript
import { RestClient } from '@iwpnd/rip-ts';

type User = {
    id: string;
    name: string;
    isActive: boolean;
    isAdmin: boolean;
};

const client = new RestClient('http://localhost:3000', {
    timeout: 100, // ms, default: 30000
});

// GET
await client.get<User>('/users');
// throws RequestTimeoutError after 100ms
```

## Contributing

Contributions are neither expected nor encouraged. If you for whatever
reason you want to contribute here, create an issue describing your problem first.
Unsolicited PRs are going to be deleted straight up.

If we evaluated that you're in the right repository,
are of a clear state of mind and have cause to do what you wanna do, please
follow the steps below.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feat/my-amazing-feature`)
3. Commit your Changes (`git commit -m 'feat: some amazing feature'`)
4. Push to the Branch (`git push origin feat/my-amazing-feature`)
5. Open a Pull Request

## License

Distributed under the MIT License. See `LICENSE.txt` for more information.

## Contact

Benjamin Ramser - [@iwpnd](https://twitter.com/iwpnd) - iwpnd@posteo.com

Project Link: [https://github.com/iwpnd/rip-ts](https://github.com/iwpnd/rip-ts)

## Acknowledgments

-   [Zachary J. Payne](https://www.amazon.de/-/en/Zachary-J-Payne/dp/B08NRVZ7NW)
npm package: @iwsdk/glxf
Description: GLXF (GLTF eXtended Format) loader for Three.js - composite scene format for WebXR applications
Author: Felix Zhang
Latest version: 0.3.1

# @iwsdk/glxf

GLXF (GLTF eXtended Format) loader for Three.js. A composite scene format optimized for WebXR applications, extending standard GLTF with support for multiple scenes, entities, and component data.

## Features

- 📦 **Composite Scenes** - Load multiple GLTF files as a single scene graph
- 🎯 **Component Data** - Attach custom component data to nodes for ECS integration
- 🔗 **Asset References** - Automatic dependency resolution and loading
- ⚡ **Three.js Native** - Works with any Three.js application

## Installation

```bash
npm install @iwsdk/glxf three
```

## Quick Start

```typescript
import { GLXFLoader } from '@iwsdk/glxf';
import { Scene } from 'three';

const loader = new GLXFLoader();
const glxf = await loader.loadAsync('/path/to/scene.glxf');

// Access the loaded scene
const scene = new Scene();
scene.add(glxf.scene);

// Access component data attached to nodes
glxf.scene.traverse((node) => {
  if (node.userData?.components) {
    console.log('Node components:', node.userData.components);
  }
});
```

## What is GLXF?

GLXF is a scene composition format that wraps multiple GLTF files and adds:

- **Scene Hierarchy** - Define relationships between multiple GLTF assets
- **Component Data** - Attach arbitrary data to nodes for game logic
- **Asset References** - Reference external GLTF files with automatic loading
- **Optimized Loading** - Parallel asset loading for WebXR experiences

GLXF files are typically exported from Meta Spatial Editor, but the format is open and can be generated programmatically.

## Peer Dependencies

- `three` >= 0.160.0

## Documentation

For more information, visit: **[https://iwsdk.dev](https://iwsdk.dev)**

## License

MIT © Meta Platforms, Inc.