open-index/open-npm huggingface dataset:
npm package: @proactive/extensions
Description: Proactive Extensions
Author: Ivan Milutinović
Latest version: 0.5.0

# proactive extensions

Observable arrays (they mirror the methods of Array)
```typescript
const ages = new ObservableArray([10, 17, 20]);
let array = [];
ages.subscribe(arr =>{ 
    array = arr; 
}); // array = [10, 17, 20]
ages.push(13); // array = [10, 17, 20, 13]
value = ages.pop(); // array = [10, 17, 20]
ages.next([12, 20]); // array = [12, 20]
```
Computed arrays (map/filter/reduce/some...)
```typescript
const ages = new ObservableArray([10, 17, 20]);
const minors: ComputedArray<number> = ages.filter(x => x < 18);
let array = [];
minors.subscribe(arr =>{ 
    array = arr; 
}); // array = [10, 17]
ages.push(13); // array = [10, 17, 13];
ages.push(22); // array = [10, 17, 13];
```
npm package: @proactive/ui
Description: Proactive UI
Author: Ivan Milutinović
Latest version: 0.4.0

# Proactive UI

### Define a component `hello-component.ts`
```typescript
import { Observable, interval } from "rxjs";

class HelloComponent {
    exclamations: Observable<string>;
    constructor(props) {
        this.exclamations = interval(500).pipe(map(x => Array(x + 1).join("!")));
    }
}

export const template = `<span>Hello, world{{exclamations}}</span>`
export const viewmodel = MyComponent
```
### Start it up `startup.ts`
```typescript
import { ProactiveUI } from "@proactive/ui";
import * as hello from "./hello-component";

const ui = new ProactiveUI();
ui.render(hello, document.body);
```
npm package: @proactivebit/realm-manager
Description: CLI tool for managing Realm database files - read, export to JSON, view schema
Author: proactivebit
Latest version: 1.0.1

# Realm Manager

CLI tool for managing Realm database files - read, export to JSON, and view schema information.

## Installation

```bash
npm install -g @proactivebit/realm-manager
```

## Usage

### Read Command

Read and display count of objects in a Realm file.

```bash
realm-manager read <file> [options]
```

**Options:**
- `-o, --object <name>` - Object name to count (default: "PuzzleItem")

**Examples:**
```bash
realm-manager read default.realm
realm-manager read default.realm -o PuzzleList
```

### Export Command

Export Realm objects to JSON format.

```bash
realm-manager export <file> [output] [options]
```

**Arguments:**
- `<file>` - Path to Realm file
- `[output]` - Output JSON file path (optional, defaults to `<file>.json`)

**Options:**
- `-o, --object <name>` - Object name to export (default: "PuzzleItem")

**Examples:**
```bash
# Auto-generate output filename (creates default.json)
realm-manager export default.realm

# Specify custom output file
realm-manager export default.realm puzzles.json

# Export specific object type
realm-manager export default.realm -o PuzzleList
```

### Schema Command

Display schema information for all objects in the Realm file.

```bash
realm-manager schema <file>
```

**Example:**
```bash
realm-manager schema default.realm
```

## Help

```bash
realm-manager --help
realm-manager <command> --help
```

## License

MIT
npm package: @probabilitydrive/docusaurus-web3-theme
Description: Dark Web3 theme for technical documentation
Author: Web3 Docs Theme Contributors
Latest version: 1.0.6

# Docusaurus Web3 Theme

A shared dark theme for Web3 technical documentation sites built with Docusaurus.

## Features

- Dark Web3-optimized color scheme
- Code syntax highlighting for Rust, TypeScript, and more
- Documentation transformation utilities
- Responsive design patterns
- No organization-specific branding

## Installation

```bash
npm install @probabilitydrive/docusaurus-web3-theme
```

## Usage

See the full documentation in the main guide.

## License

MIT
npm package: @probableprime/cheos-bot
Description: A very,very simple Neos VR Chat Bot Library.
Author: ProbablePrime
Latest version: 0.2.0

# cheos-bot Library

**This is a very, early pre-release, stuff may break and you may scratch your head. DON'T USE IT YET!!!**

A very small, subset of Neos' HTTP APIs, which are enough to make a small Neos Bot. It can't really do much right now. But It can do what I need it to do. If you'd like to suggest features please let me know by opening an issue.

**Disclaimer**: cheos-bot is not officially sanctioned or affiliated with Neos, its team or Solirax.

## Usage

### Install cheos-bot

```bash
npm i --save @probableprime/cheos-bot
```

### Use cheos-bot

```javascript

const {Bot} = require('@probableprime/cheos-bot');

const bot = new NeosBot();

async function main() {
    await bot.login('Bot', 'Boop');
    console.log('Starting');

    bot.messages.onNewMessage(message => {
        console.log(`New Message from: ${message.senderId}, of type: ${message.messageType}`);
        console.log(`Message contents: ${message.content}`);
    })

    bot.friends.onFriendAdded(friend => {
        console.log(`New Friend Added: ${friend.friendUsername}!`);
    })

    bot.onError(error => {
        console.log(error);
    })
}
main();
```

### Docs

TODO

## Notes

Things might seem a little weird here, that's because it is. This is a very **early** look at a working on this. Neos is new and changing and a lot of stuff is subject to change both here and in Neos. So please provide feedback in the issues section.

## Design Principles

I have some random design principles at play here:

1. Do only what is needed. Cheos doesn't aim to implement the entirety of Neos' APIs
1. TypeScript. TypeScript provides confidence and clarity for developers and eventually... docs.
1. Newest JavaScript / Node features. We're in 2021. We use classes, maps, async/await and whatever else.
1. Segregated Functionality, Avoiding a [God Object](https://en.wikipedia.org/wiki/God_object) Lets me Write Faster
   1. Yeah I know NeosBot is a god Object, but its just wrapped for simplicity. It doesn't actually make any requests.
1. Signals vs Event Emitters see [Events](pages/events.md) for more info. I'm still not sure about this one.
1. Make it easy. No one has time for this

## Known Issues

- Error Handling is terrible... Like really bad... Half the time I don't even handle them.
- Failure states, retries and cascade failures can happen
- See [Events](pages/events.md)
- No Tests
- No Docs
- Incomplete (V0.1.0) means basically nothing in the grand scheme of things
npm package: @probablydanny/little-ioc
Description: A small inversion-of-control library
Author: Danny Kim
Latest version: 1.0.6

# 🐜 little-ioc

An inversion-of-control library so small that you can read the entire source code in a sitting.

Inversion-of-control or dependency-injection shouldn't need complex code or any advanced language features.
`little-ioc` is a small utility class you can drop into your codebase
without changing how you've been writing code.

## 📦 Install

```
npm install @probablydanny/little-ioc
```

## 🚀 Usage

### Declare your container

```ts
import { Container } from "@probablydanny/little-ioc";

const container = new Container({
  // Simple value
  IEnvironmentVariables: {
    factory: () => ({
      DATABASE_URL: process.env.DATABASE_URL,
    }),
  },
  // Specify dependency of each factory function
  IDatabaseConnector: {
    factory: (deps: { env: Record<string, string> }) =>
      new Database(env.DATABASE_URL),
    dependsOn: { env: "IEnvironmentVariables" },
  },

  // Each factory function can have multiple dependencies (or none)
  IFoo: {
    factory: () => 42,
  },
  IBar: {
    factory: () => "Hello, World!",
  },
  IBaz: {
    factory: (deps: { foo: number; bar: string }) => `${foo} ${bar}`,
    dependsOn: { foo: "IFoo", bar: "IBar" },
  },
});
```

### Get a dependency from the container

```ts
const db = container.get("IDatabaseConnector");
```

### Inject dependencies into a function

```ts
const myFactory = (deps: { bar: string }) => () => {
  console.log(deps.bar);
};

const greet = container.inject({ bar: "IBar" })(myFactory);
greet(); // prints "Hello, World!"
```
npm package: @probablyduncan/common
Description: Common functions and types I use across projects.
Author: Duncan Petrie
Latest version: 1.1.5

These are some common functions and types I use in my projects.

```
// math utilities
import { clamp, unclamp, lerp, unlerp, resolveMinMax } from "@probablyduncan/common/math";

// vector2 class with basic vector math
import Vec2 from "@probablyduncan/common/vec2";

// ts helper to handle T | T[] types.
import { toSeveral, type SingleOrSeveral } from "@probablyduncan/common/sos";

// node cmd runner utility
import { cmd } from "@probablyduncan/common/cmd";

// functions to shuffle arrays
import { shuffle, shuffleRef } from "@probablyduncan/common/shuffle";

// DateDiff class for parsing time components between dates.
import DateDiff from "@probablyduncan/common/datediff

// reduceToObject for converting arrays of object to key/value record, and an object to an array of that object's values
import { reduceToObject, reduceToArray } from "@probablyduncan/common/reduceToObject

// formatQuotes utility for turning straight quotes into directioned curly ones
import { formatQuotes } from "@probablyduncan/common/quotes
```

Publish changes:

```
> pnpm publish
```

Run tests:

```
> pnpm test
```