open-index/open-npm huggingface dataset:
npm package: @missena/openrtb-types
Description: IAB's OpenRTB v2.5 spec types and enums in TypeScript
Author: @missena
Latest version: 0.1.0

# OpenRTB v2.5 Types & Enums

This package includes all of [IAB's OpenRTB v2.5 spec](https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf) types and enums in TypeScript.

## Installation

Using npm:

```sh
$ npm i --save openrtb-types
```

## Usage

Import needed types and use them to type-guard your code:

```ts
import { SeatBid, Bid, BidResponse } from "openrtb-types";

let bid: Bid = {
  id: "abc",
  impid: "abc",
  price: 1.23,
};

let seatBid: SeatBid = {
  bid: [bid],
};

let bidResponse: BidResponse = {
  id: "abc",
  seatbid: [seatBid],
};
```
npm package: @missesanderson/wasm-asteroids
Description: This is a demo of an Asteroids clone written in Rust, rendering to an SVG canvas.
Latest version: 0.1.0

# SVG Asteroids

This is a demo of an Asteroids clone written in Rust, rendering to an SVG canvas.

[Live demo](https://m1el.github.io/wasm-asteroids/demo/demo.html)

## Architecture

Most communication with the web page is going through an event loop.

Event loop usage looks like this:

```rust
    EventLoop::new(Box::new(move |event, event_loop| {
        // process event
    }))
```

Events are:

```rust
    enum Event {
        Destroyed,
        AnimationFrame,
        MouseMove { x: u32, y: u32 },
        KeyDown { code: u32, chr: Option<char>, flags: u32 },
        KeyUp { code: u32, chr: Option<char>, flags: u32 },
    }
```

Event Loop from Rust side is defined in [src/eventloop.rs](src/eventloop.rs).
It's technically possible to have multiple event loops running on the same page.
Event Loops on Rust side need to be explicitly disposed, in order for the JS side to dispose of event loop correctly.

The JS implementation of event loop is located in [demo/demo.js](demo/demo.js) automatically subscribes to Mouse and Keyboard events on window object and provides an interface for `requestAnimationFrame`.

## Game logic

Game logic is mostly implemented in [src/game.rs](src/game.rs), and it's very messy.
I don't have a lot of experience making games, and I think I learned some lessons from making this little demo, which I'll take into account.

For now, I'm happy with the result, and I do not plan to refactor this game in the near future.

## Rendering

Rendering is done using by setting the path `d` attribute:

```javascript
    svg_set_path: (ptr, len) => window.path.setAttributeNS(null, 'd', getStr(Module, ptr, len)),
```

Rust generates path points in [src/render\_path.rs](src/render_path.rs), which contains paths for digits, ship, etc.

## LICENSE

The MIT License
npm package: @missingcore/react-native-actual-path
Description: A utility package that attempts to get the actual path from content URIs.
Author: cyanChill
Latest version: 0.1.0

# @missingcore/react-native-actual-path

[<img src="https://img.shields.io/npm/v/@missingcore/react-native-actual-path?style=for-the-badge&labelColor=000000" alt="NPM Version"/>](https://www.npmjs.com/package/@missingcore/react-native-actual-path)
[<img src="https://img.shields.io/npm/l/@missingcore/react-native-actual-path?style=for-the-badge&labelColor=000000" alt="License"/>](./LICENSE)

A port of [`react-native-actual-path`](https://github.com/SolankiYogesh/react-native-real-path) that supports both the new & old architectures.

Also supports returning paths from the device's SDCard slot (tested using an emulator).

## Installation

```sh
npm install @missingcore/react-native-actual-path
```

## Usage

> [!IMPORTANT]
> This might not work directly with the `content://` URI returned from `expo-file-system`'s `StorageAccessFramework.requestDirectoryPermissionsAsync()`. Below is an example on how to get around this.

```ts
import { getActualPath } from '@missingcore/react-native-actual-path';
import { StorageAccessFramework as SAF } from 'expo-file-system';

export async function getDirLocation() {
  const permissions = await SAF.requestDirectoryPermissionsAsync();
  if (!permissions.granted) return null;
  try {
    const dirContents = await SAF.readDirectoryAsync(permissions.directoryUri);
    const dirItem = dirContents[0];
    if (!dirItem) throw new Error('No items found in directory.');
    const resolved = await getActualPath(dirItem);
    return resolved ? resolved.split('/').slice(0, -1).join('/') : null;
  } catch (err) {
    console.log(err);
    return null;
  }
}
```

## References

- [react-native-actual-path](https://github.com/SolankiYogesh/react-native-real-path)

## License

[MIT](./LICENSE)
npm package: @missingstudio/cli
Description: Missing Studio's AI assistant for interacting with the Model Context Protocol servers
Author: Praveen Yadav
Latest version: 0.0.7

![Missing Studio CLI](assets/mstudio.png)

## Overview

Missing Studio's AI assistant for interacting with **Model Context Protocol (MCP)** servers. It provides a friendly, interactive terminal UI to get started quickly.

Built by [Missing Studio](https://www.missing.studio)

**Key Features:**

- 💬 Chat interface for MCP servers
- 🔌 **MCP tooling**
- ⌨ Beautiful terminal insterface build with [Ink](https://github.com/vadimdemedes/ink)
- 🌍 Use from anywhere with `npm i -g @missingstudio/cli`

# Quick Start

- Node.js: >= 18
- Binaries: `missingstudio` (primary), `mstudio` (alias)

## Install

- npm: `npm i -g @missingstudio/cli`
- pnpm: `pnpm add -g @missingstudio/cli`
- yarn: `yarn global add @missingstudio/cli`

## Usage

Run without arguments to launch the interactive UI:

```bash
mstudio
```

Common options:

- `-V, --version`: Output the version number
- `-h, --help`: Show help information
- `-v, --verbose`: Enable verbose logging

You can also invoke via the alias:

```bash
missingstudio OR
npx @missingstudio/cli
```

## Development

- Install deps: `npm install`
- Start in dev (watch): `npm run dev`
- Build: `npm run build`
- Start from build: `npm start`
- Typecheck: `npm run typecheck`
- Tests: `npm test` (watch: `npm run test:watch`)
- Lint/format: `npm run format` (fix: `npm run format:fix`)

## Links

- Website: https://www.missing.studio
- Repository: https://github.com/missingstudio/cli
- Issues: https://github.com/missingstudio/cli/issues

## Changelog

See `CHANGELOG.md` for release history.

## License

MIT © Missing Studio. See `LICENSE` for details.