open-index/open-npm huggingface dataset:
npm package: @lorelee/tiny
Description: Removes all spaces from a string
Latest version: 2.0.0

# @lorelee/tiny

[![npm (scoped)](https://img.shields.io/npm/v/@bamblehorse/tiny.svg)](https://www.npmjs.com/package/@bamblehorse/tiny)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@bamblehorse/tiny.svg)](https://www.npmjs.com/package/@bamblehorse/tiny)

Removes all spaces from a string.

## Install

```
$ npm install @lorelee/tiny
```

## Usage

```js
const tiny = require("@lorelee/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```
npm package: @lorelei-app/agent-sdk
Description: Node-friendly helpers for LLM-driven Lorelei sessions.
Latest version: 0.1.6

# Lorelei Agent SDK

Node-friendly helpers for LLM-driven Lorelei sessions.

## Exports

- prompt helpers
- `ADVENTURE_DATA:` extraction
- session driver utilities
- `LoreleiHostClient` for blueprint and session APIs
- all canonical core types via `@lorelei-app/core`

## Build

```bash
pnpm --filter @lorelei-app/agent-sdk run build
```
npm package: @lorelei-app/companion-adapter
Description: Generic companion and romance helpers for Lorelei hosts.
Latest version: 0.1.2

# Lorelei Companion Adapter

Generic companion and romance helpers for Lorelei hosts.

## Includes

- relationship plugin state
- curated romance background resolution
- companion story/date prompt shaping
- reusable companion-facing adapter aliases

## Build

```bash
pnpm --filter @lorelei-app/companion-adapter run build
```
npm package: @lorelei-app/core
Description: Lorelei is a lightweight visual novel engine for AI agents and LLM-driven scene loops.
Latest version: 0.2.2

# Lorelei Core

Lorelei is a lightweight visual novel engine for AI agents and LLM-driven scene loops.

## Packages

- `@lorelei-app/core`: canonical turn contract, validation, parsing, reducer, session serialization
- `@lorelei-app/agent-sdk`: prompt helpers, `ADVENTURE_DATA:` extraction, session driver
- `@lorelei-app/react`: official React renderer and persistence hooks
- `@lorelei-app/companion-adapter`: companion relationship helpers, prompt shaping, and background resolution

## Authored Runtime

Lorelei core now ships an authored story runtime for deterministic VN progression:

- `createTurnFromStoryNode(...)` builds the canonical start/scene turn for a story node
- `applyStoryChoice(...)` advances the current session through the authored graph
- `LoreleiStoryRunner` gives hosts one canonical runner for `start()`, `choose()`, `snapshot()`, and `hydrate()`
- `selectStoryChoices(...)` filters authored choices against runtime requirements
- session state persists `story.currentNodeId`, `story.branchPath`, `story.variables`, and visited nodes

That means hosts can let an LLM author scenes turn-by-turn, or run a published authored graph directly through the same session contract.

## Scene Primitives

Lorelei scenes are still backward-compatible with the original single-beat shape, but v1 now supports richer VN presentation fields:

- `dialogueLines[]` for multi-line authored beats
- `characters[]` for visible cast/layer metadata
- `transition` for beat-to-beat scene changes
- `audio.ambienceUrl` and `audio.sfx[]`
- `commands[]` for host-facing scene actions

## Canonical Turn

```json
{
  "version": "1",
  "kind": "scene",
  "session": {
    "id": "session_demo",
    "status": "active",
    "step": 2
  },
  "scene": {
    "id": "scene_rooftop",
    "title": "Rooftop Pause",
    "description": "City light hangs in the air while the tension slows down.",
    "dialogue": {
      "speaker": "guide",
      "speakerName": "Companion",
      "content": "stay with me a second.",
      "emotion": "tender"
    },
    "background": {
      "scenario": "rooftop",
      "variant": "intimate"
    },
    "choices": [
      { "id": "c1", "text": "Move closer", "kind": "dialog" },
      { "id": "c2", "text": "Tease her first", "kind": "dialog" },
      { "id": "c3", "text": "Ask what she wants", "kind": "dialog" }
    ]
  }
}
```

## Compatibility

Lorelei still supports terminal marker output:

```text
ADVENTURE_DATA: { ... }
```

That marker is treated as a compatibility adapter, not the canonical format.

## Package Commands

```bash
pnpm --filter @lorelei-app/core run type-check
pnpm --filter @lorelei-app/core run test
pnpm --filter @lorelei-app/core run build
```
npm package: @lorelei-app/rally-adapter
Description: Rally compatibility layer for Lorelei.
Latest version: 0.1.3

# Lorelei Rally Adapter

Rally compatibility layer for Lorelei.

## Includes

- relationship plugin state
- Rally session normalization and hydration helpers
- curated background resolution
- Rally story/date prompt shaping

## Build

```bash
pnpm --filter @lorelei-app/rally-adapter run build
```
npm package: @lorelei-app/react
Description: Official React renderer for Lorelei scenes, choices, and persistence hooks.
Latest version: 0.2.5

# Lorelei React

Official React renderer for Lorelei scenes, choices, and persistence hooks.

## Exports

- `LoreleiRenderer`
- `LoreleiStage`
- `LoreleiEndingJournalCard`
- `LoreleiDialoguePanel`
- `LoreleiChoicePanel`
- `LoreleiHudSlot`
- `LoreleiStoryGraphEditor`
- `useLoreleiSession`
- `useLoreleiPersistence`

`LoreleiRenderer` now includes a default visual stage layer with background art support so hosts get a playable VN presentation out of the box, even before adding their own scene shell.

The default renderer now understands richer VN scene primitives too:

- multi-line `dialogueLines`
- stage cast from `characters`
- transition labels
- music, ambience, and SFX badges
- host-facing commands preserved on the scene contract

`LoreleiStoryGraphEditor` supports:

- visual node layout and branch editing
- authored dialogue sequences and background metadata
- stage characters, transitions, ambience, and SFX cues
- host scene commands with JSON payloads
- choice kind and cost metadata
- runtime requirements and variable effects for authored branches
- ending journal metadata for terminal beats:
  - `journalTitle`
  - `journalSubtitle`
  - `journalQuote`
  - `rewardLabel`
  - `rewardTags`
  - `artworkUrl`
  - `artworkKey`
- seeded ending-journal defaults for new terminal beats
- catalog-backed ending-art picks, reward presets, and a fallback background-preview flow for ending cards
- a reusable `LoreleiEndingJournalCard` preview surface for studio and host UIs

## Build

```bash
pnpm --filter @lorelei-app/react run build
```
npm package: @lorelei-app/studio
Description: Reusable studio shell for Lorelei hosts.
Latest version: 0.2.3

# @lorelei-app/studio

Reusable studio shell for Lorelei hosts.

It sits on top of `@lorelei-app/react` and `@lorelei-app/agent-sdk` and provides:

- a graph editor workspace
- ending-journal metadata authoring for terminal beats
- seeded journal defaults and suggested ending-art keys for terminal beats
- a live ending reward-card preview for terminal beats
- local draft-health validation for authored story structure
- a runner-backed preview with branch history and live variables
- local JSON import and draft duplication
- live host blueprint catalog browsing
- revision inspection
- host-backed draft save and publish actions
- a playtest hook so hosts can jump directly into runtime verification

This package is host-facing. It does not own billing, chat transport, or companion-specific product logic.
npm package: @loremlabs/send-to-social
Description: setler command-line tool
Author: matt mankins
Latest version: 0.0.7
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Send to Social (CLI)

![image](https://user-images.githubusercontent.com/170588/228046344-7e852b78-b91a-4de6-9e94-9575dc013312.png)

Use existing usernames (social media, email, etc.) to send money. This is a hackathon project for the [Unlocking the Potential of XRP Ledger Hackathon](https://unlockingxrpl.devpost.com/?utm_campaign=send-to-social).

## Overview

This is a simple service that allows you to send money to a user who may not yet have an XRP address. It's implemented as a command line tool that creates a non-custodial wallet as well as a backend service that watches for incoming payments and fulfills escrowed payments.

## How it works

To send money to an email for example, you'd issue a command requesting to send money to Distributed Identifiers (DIDs) which can be associated with a social media account or email address. The tool uses the escrow functionality of the XRPL to set aside funds, notifies our backend of the new user, and later creates a payment when we know the payment account for the user.


![Screen-Recording-2023-03-25-at-20 03 15](https://user-images.githubusercontent.com/170588/227736633-93f70b05-56d2-4993-9de2-9a446d19404c.gif)


# Send to Social CLI

This is a simple cli tool to help us implement the send-to-social idea.

## Usage

```
% npx @loremlabs/send-to-social
```

```
% npx @loremlabs/send-to-social help
```

### Wallet

To use you start by creating a wallet. This is a non-custodial wallet that is used to send and receive payments as well as perform the escrowed payments.

Setup a new wallet with:

```
% npx @loremlabs/send-to-social wallet init
```

Then you can fund your wallet with:

```
% npx @loremlabs/send-to-social wallet fund
```

Which (for testnet) will fund the wallet with 1000 XRP.

You can also receive payments to your wallet with:

```
% npx @loremlabs/send-to-social wallet receive
```

### Social Send

To send a social send you need to have a wallet setup and funded. You can then send a social send with:

```
% npx @loremlabs/send-to-social send social did:kudos:email:YOUR_EMAIL@YOUR_DOMAIN
``` 

```
% npx @loremlabs/send-to-social send social did:kudos:email:mankins+demo1@gmail.com did:kudos:email:matt+demo2@loremlabs.com...
```


## Repo Organization

The main repo for this project is at [loremlabs/sendtosocial](https://github.com/loremlabs/sendtosocial). The command line tool is in the `commands/setler-cli` directory and what is published to `npm`. The backend service is in the `src` directory.
npm package: @loremru/capacitor-zip
Description: Zip plugin
Author: Isakov Ilya
Latest version: 1.0.6

# Capacitor Zip

[![npm](https://img.shields.io/npm/v/capacitor-zip.svg)](https://www.npmjs.com/package/capacitor-zip)
[![npm](https://img.shields.io/npm/dt/capacitor-zip.svg?label=npm%20downloads)](https://www.npmjs.com/package/capacitor-zip)
[![Build Status](https://travis-ci.org/loremru/capacitor-zip.svg?branch=master)](https://travis-ci.org/loremru/capacitor-zip)

## Installation

- `npm i capacitor-zip`

## Usage

```ts
import { Zip } from 'capacitor-zip';
const zip = new Zip();

await zip.zip({
    source : source,
    destination: destination,
    keepParent: true, // Optional default true
    password: 'password', // Optional
},(progress)=>{});

await zip.unZip({
    source : source,
    destination: destination,
    overwrite: true, // Optional default true
    password: 'password', // Optional
},(progress)=>{});