open-index/open-npm huggingface dataset:
npm package: @onsetsoftware/entity-state
Description: Broad types for working with Entity State
Author: Alex Currie-Clark
Latest version: 0.0.2

# Entity State

Simple but broad types for working with Entity State.

## Installation

```bash
pnpm install -D @onsetsoftware/entity-state
```

## Usage

```ts
import type { EntityState, HasId } from '@onsetsoftware/entity-state';

export function addEntity<TEntity extends HasId<TEntity>>(
  state: EntityState<TEntity>,
  entity: TEntity,
) {
  state.ids.push(entity.id);
  state.entities[entity.id] = entity;

  return state;
}
```
npm package: @onsetsoftware/ordinals
Description: Simple ordinal string generator for multiple languages.
Latest version: 0.0.1

# Ordinals

Simple ordinal string generator for multiple languages.

## Installation

```bash
npm i @onsetsoftware/ordinals
```

## Usage

### function ordinal(number: number, locale: OrdinalLocale)

Returns the ordinal for the number in the locale specified.

```typescript
import { ordinal } from '@onsetsoftware/ordinals';

ordinal(1); // st
ordinal(2); // nd

ordinal(1, 'en'); // st
ordinal(1, 'fr'); // er
```

### function withOrdinal(number: number, locale: OrdinalLocale)

Returns the number with the ordinal appended.

```typescript

withOrdinal(1, 'en'); // 1st

```

### Type OrdinalLocale
Valid locales are:
```typescript
[
  "aa",
  "ab",
  "ae",
  "af",
  "ak",
  "am",
  "an",
  "ar",
  "as",
  "av",
  "ay",
  "az",
  "ba",
  "be",
  "bg",
  "bh",
  "bi",
  "bm",
  "bn",
  "bo",
  "br",
  "bs",
  "ca",
  "ce",
  "ch",
  "co",
  "cr",
  "cs",
  "cu",
  "cv",
  "cy",
  "da",
  "de",
  "dv",
  "dz",
  "ee",
  "el",
  "en",
  "eo",
  "es",
  "et",
  "eu",
  "fa",
  "ff",
  "fi",
  "fj",
  "fo",
  "fr",
  "fy",
  "ga",
  "gd",
  "gl",
  "gn",
  "gu",
  "gv",
  "ha",
  "he",
  "hi",
  "ho",
  "hr",
  "ht",
  "hu",
  "hy",
  "hz",
  "ia",
  "id",
  "ig",
  "ii",
  "ik",
  "io",
  "is",
  "it",
  "iu",
  "ja",
  "jv",
  "ka",
  "kg",
  "ki",
  "kj",
  "kk",
  "kl",
  "km",
  "kn",
  "ko",
  "kr",
  "ks",
  "ku",
  "kv",
  "kw",
  "ky",
  "la",
  "lb",
  "lg",
  "li",
  "ln",
  "lo",
  "lt",
  "lu",
  "lv",
  "mg",
  "mh",
  "mi",
  "mk",
  "ml",
  "mn",
  "mo",
  "mr",
  "ms",
  "mt",
  "my",
  "na",
  "nb",
  "nd",
  "ne",
  "ng",
  "nl",
  "nn",
  "no",
  "nr",
  "nv",
  "ny",
  "oc",
  "oj",
  "om",
  "or",
  "os",
  "pa",
  "pi",
  "pl",
  "ps",
  "pt",
  "qu",
  "rm",
  "rn",
  "ro",
  "ru",
  "rw",
  "sa",
  "sc",
  "sd",
  "se",
  "sg",
  "si",
  "sk",
  "sl",
  "sm",
  "sn",
  "so",
  "sq",
  "sr",
  "ss",
  "st",
  "su",
  "sv",
  "sw",
  "ta",
  "te",
  "tg",
  "th",
  "ti",
  "tk",
  "tl",
  "tn",
  "to",
  "tr",
  "ts",
  "tt",
  "tw",
  "ty",
  "ug",
  "uk",
  "ur",
  "uz",
  "ve",
  "vi",
  "vo",
  "wa",
  "wo",
  "xh",
  "yi",
  "yo",
  "za",
  "zh",
  "zu"
]
```
npm package: @onsetsoftware/svelte-local-storage-store
Description: Layer on top of a Svelte writable store, backing up to local storage across multiple tabs
Author: On Set Software Ltd
Latest version: 1.1.0

# Svelte Local Storage Store

A thin wrapper on top of a Svelte writable store, backing up to local storage with built-in event handling to sync across multiple tabs.

## Installation

```bash
npm install -D @onsetsoftware/svelte-local-storage-store
```

## Usage

### Basic
```ts
import { localStorageStore } from '@onsetsoftware/svelte-local-storage-store';

const countStore = localStorageStore('count', 0);
```

### Async
```ts
import { localStorageStore } from '@onsetsoftware/svelte-local-storage-store';

const timerStore = localStorageStore('timer', 0, (set) => {
  let timer = timerStore.get();
  const interval = setInterval(() => {
    set(++timer);
  }, 1000);

  return () => clearInterval(interval);
});
```

## API

The `localStorageStore` function takes three arguments:

- `key` - The key to use for local storage
- `initialValue` - The initial value to use if the key is not found in local storage
- `start` - An optional function that will be called when the store is first subscribed to. It will be passed a `set` function that can be used to update the store. It should return a function that will be called when the store is unsubscribed from.

This is essentially the same API as the `writable` function from Svelte's `svelte/store` package, with the addition of the `key` argument.

> **Note**
> Subsequent calls to `localStorageStore` with the same `key` will return the same store instance. If you want to delete the store from local storage, you can call `destroyLocalStorageStore(key)`.
> 
> If this cache doesn't work for you, please can use the `LocalStorageStore` class directly to manage your own stores. It takes the same 3 arguments as the `localStorageStore` function.

The `localStorageStore` function returns a Svelte store that can be used in the same way as any other Svelte store and which implements the `Writable` interface.

```ts
const countStore = localStorageStore('count', 0);

countStore.set(1);

countStore.update((count) => count + 1);

countStore.subscribe((value) => {
  console.log(value);
});
```

It also exposes an additional `get` method that can be used to retrieve the current value of the store without subscribing to it.

```ts
const countStore = localStorageStore('count', 0);

countStore.get(); // => 0
```

Finally, it exposes a `detach` method that can be used to remove the key/value pair from local storage.

```ts
const countStore = localStorageStore('count', 0);
// localStorage.getItem('count') => 0

countStore.detach();
// localStorage.getItem('count') => undefined
```
npm package: @onsetsoftware/svelte-supabase-offline-store
Description: An offline resilient Svelte store for Supabase
Author: On Set Software Ltd
Latest version: 0.1.0

# Svelte Local Storage Store

An offline resilient Svelte store for Supabase

## Installation

```bash
npm install -D @onsetsoftware/svelte-supabase-offline-store
```
npm package: @onsever/create-express-ts-app
Description: This is a starter template for Express.js with TypeScript that includes Jest, Prettier, ESLint, and more.
Author: Onurcan Sever
Latest version: 1.0.3

# Create Express Application with TypeScript

This is a starter template for [Express](https://expressjs.com/) web framework for [Node.js](https://nodejs.org/en/) using [TypeScript](https://www.typescriptlang.org/).

## Features

- TypeScript support with absolute imports and path aliases
- Live reload with [nodemon](https://nodemon.io/)
- Testing support with [Jest](https://jestjs.io/)
- Formatting support with [Prettier](https://prettier.io/)
- Linting support with [ESLint](https://eslint.org/)
- Logging support with [Pino](https://getpino.io/)

## Usage

To use this template, run one of the following commands:

```bash
npx @onsever/create-express-ts-app <project-name>
npx @onsever/create-express-ts-app .
npx @onsever/create-express-ts-app ./
```

## Commands

- `npm run build` - Build the project
- `npm run start` - Start the server in production mode
- `npm run dev` - Start the server in development mode with live reload
- `npm run lint:check` - Check for linting errors
- `npm run lint:fix` - Fix linting errors
- `npm run prettier:check` - Check for formatting errors
- `npm run prettier:fix` - Fix formatting errors
- `npm run test` - Run tests
- `npm run test:watch` - Run tests in watch mode
npm package: @onshape/three
Description: JavaScript 3D library
Author: mrdoob
Latest version: 0.118.7

three.js
========

This is a fork of [three.js](https://github.com/mrdoob/three.js/). See that repo for documentation.

## Development Process and Release

This fork is released publicly in [npmjs.com/package/@onshape/three](https://www.npmjs.com/package/@onshape/three).

The release pipeline is triggered on every change in the `package.json` in the `dev` branch and tries to publish itselt to npm.

### Development Process

Make your changes in a different branch and after you are finished create a PR to the `dev` branch.

### Release

To create a release update the version number in `package.json` on `dev`. This will trigger the pipeline to release a new version in npm.

### Update other projects

After the release you can execute `yarn add @onshape/three` in your other project that is using this library as dependency to update the `package.json` and `yarn.lock` requirements to the newest version.
npm package: @onsignet/core
Description: Signet protocol core: crypto, message format, identity
Latest version: 0.2.0

# @onsignet/core

Core cryptographic primitives for the Signet protocol — identity, envelope signing/verification, encryption, capability tokens, and owner attestation.

## Installation

```bash
npm install @onsignet/core
```

## Key Exports

- `createEnvelope`, `verifyEnvelope`, `decryptEnvelope` — Signed/encrypted message handling
- `createCapabilityToken`, `verifyCapabilitySignature` — Capability-based authorization
- `verifyOwnerAttestation` — Owner attestation verification
- `createKeyRevocation` — Key revocation support
- `encodeBase64`, `decodeBase64`, `parseNodeId` — Utilities

## Usage

Used internally by `@onsignet/daemon`. Can be used directly for custom integrations with the Signet protocol.

## Links

- [Signet](https://onsignet.com)
- [GitHub](https://github.com/camdavissignet/Signet)
npm package: @onsignet/daemon
Description: Signet network daemon
Latest version: 0.1.5

# @onsignet/daemon

Signet network daemon — handles identity, relay connection, encrypted messaging, policy engine, and local HTTP API.

## Features

- **Ed25519 identity** — Cryptographic agent identity
- **X25519 encryption** — End-to-end encrypted messaging
- **WebSocket relay** — Persistent connection to Signet network
- **HTTP API** — Local API on port 8766
- **Audit logging** — Tamper-evident event logs
- **Policy engine** — Access control and authorization
- **Web chat bridge** — Bridge to web chat interfaces
- **Key rotation/revocation** — Key lifecycle management

## Installation

```bash
npm install @onsignet/daemon
```

Or use as a dependency of the `signet-agent` CLI.

## Usage

Usually started via the Signet CLI:

```bash
npx signet-agent start
npx signet-agent init
```

## Configuration

- **Data directory:** `~/.Signet/`
- **Config file:** `~/.agentmesh/config.json` or environment variables

## Environment Variables

| Variable | Description |
|----------|-------------|
| `SIGNET_RELAY_URL` | WebSocket relay URL |
| `SIGNET_HTTP_PORT` | HTTP API port (default: 8766) |
| `SIGNET_API_TOKEN` | API authentication token |
| `SIGNET_DATA_DIR` | Data directory override |
| `DIRECTORY_API_URL` | Directory service URL |

## Links

- [Signet](https://onsignet.com)
- [GitHub](https://github.com/camdavissignet/Signet)