open-index/open-npm huggingface dataset:
npm package: @lumenize/debug
Description: Zero-dependency debug logging for Cloudflare Workers, Node.js, Bun, and browsers
Author: Larry Maccherone
Latest version: 0.22.0

# @lumenize/debug

Zero-dependency debug logging for Cloudflare Workers, Node.js, Bun, and browsers.

## Installation

```bash
npm install @lumenize/debug
```

## Usage

```typescript
import { debug } from '@lumenize/debug';

const log = debug('MyApp.myFunction');
log.debug('processing request', { url, method });
log.info('milestone reached', { step: 3 });
log.warn('retry limit reached', { retryCount: 5 });
log.error('unexpected failure', { error: e.message }); // ALWAYS outputs
```

## Configuration

Set the `DEBUG` environment variable (uppercase) to filter which namespaces log:

- **Node.js/Bun**: `DEBUG=MyApp node app.js`
- **Browser**: `localStorage.setItem('DEBUG', 'MyApp')`
- **Cloudflare Workers**: Set in `wrangler.jsonc` vars or `.dev.vars`

### Cloudflare Workers

In Workers, `env.DEBUG` is auto-detected via `import('cloudflare:workers')` — no manual configuration needed:

```typescript
import { debug } from '@lumenize/debug';

export default {
  async fetch(request: Request, env: Env) {
    const log = debug('Worker.router');
    log.debug('Routing request');

    return new Response('OK');
  }
};
```

## Filter Patterns

- `DEBUG=MyApp` - Enable MyApp and all children
- `DEBUG=MyApp:warn` - Only warn+ level for MyApp
- `DEBUG=*` - Enable everything
- `DEBUG=MyApp,-MyApp.verbose` - Exclusions

## Documentation

Full documentation: https://lumenize.com/docs/debug
npm package: @lumenize/fetch
Description: De✨light✨ful fetch utilities for Durable Objects - proxy and direct fetch strategies
Author: Lumenize
Latest version: 0.22.0

# @lumenize/proxy-fetch

A de✨light✨ful proxy fetch that offloads external API calls from Durable Objects to Workers, eliminating wall-clock billing while waiting for responses.

For complete documentation, visit **[https://lumenize.com/docs/proxy-fetch](https://lumenize.com/docs/proxy-fetch)**

## Features

- **Cost Optimization**: Offload external fetch() calls to Workers to avoid Durable Object wall-clock billing
- **DO-Worker Hybrid**: Uses alarm-based coordination for reliability and low latency
- **Continuation-Based**: Results delivered via OCAN continuations stored in origin DO
- **Linear Scalability**: Tested up to 2000+ concurrent requests
- **Type-Safe**: Full TypeScript support with proper Request/Response handling

## Installation

```bash
npm install @lumenize/proxy-fetch
```
npm package: @lumenize/mesh
Description: Lumenize Mesh - communication framework for Cloudflare Durable Objects
Latest version: 0.22.0

# @lumenize/mesh

Lumenize Mesh - communication framework for Cloudflare Durable Objects.

For complete documentation, visit **[https://lumenize.com/docs/mesh](https://lumenize.com/docs/mesh)**

## Features

- **Mesh communication**: DOs, Workers, and browser clients as true peers
- **Type-safe RPC**: Operation chaining and nesting with TypeScript support
- **Auto-injection**: Import NADIS packages and access via `this.svc.*`
- **Identity propagation**: Automatic `callContext` with origin, caller, and auth
- **Lazy loading**: Services instantiated only when accessed

## Installation

```bash
npm install @lumenize/mesh
```
npm package: @lumenize/proxy-fetch
Description: De✨light✨ful proxy fetch for cost-effective external API calls from Durable Objects
Author: Lumenize
Latest version: 0.17.0
Deprecated: Deprecated. Use @lumenize/mesh + @lumenize/fetch instead.

# @lumenize/proxy-fetch

A de✨light✨ful proxy fetch that offloads external API calls from Durable Objects to Workers via Cloudflare Queues, eliminating wall-clock billing while waiting for responses.

For complete documentation, visit **[https://lumenize.com/docs/proxy-fetch](https://lumenize.com/docs/proxy-fetch)**

## Features

- **Cost Optimization**: Offload external fetch() calls to Workers to avoid Durable Object wall-clock billing
- **Queue-Based**: Uses Cloudflare Queues for reliable message delivery
- **Hibernation-Safe**: Callback pattern works across DO hibernation cycles
- **Type-Safe**: Full TypeScript support with proper Request/Response handling

## Installation

```bash
npm install @lumenize/proxy-fetch
```
npm package: @lumenize/routing
Description: Request routing for Cloudflare Durable Objects projects
Author: Larry Maccherone
Latest version: 0.22.0

# @lumenize/routing

De✨light✨ful utility functions for Cloudflare Workers and Durable Objects.

For complete documentation, visit **[https://lumenize.com](https://lumenize.com)**

## Features

- **Cookie Jar** - Test cookie-based authentication in Durable Objects with automatic cookie management
- **DO Routing** - Route requests to Durable Objects with intelligent case conversion
- **WebSocket Shim** - Browser-compatible WebSocket API for testing

## Installation

```bash
npm install @lumenize/routing
```
npm package: @lumenize/rpc
Description: De✨light✨ful RPC system for Cloudflare Durable Objects
Author: Lumenize
Latest version: 0.22.0

# @lumenize/rpc

A de✨light✨ful RPC system for Cloudflare Durable Objects that makes your DOs accessible via intuitive proxy calls.

For complete documentation, visit **[https://lumenize.com/docs/rpc/introduction](https://lumenize.com/docs/rpc/introduction)**

## Features

- **Use for Testing or Production**: Use to "see inside" your DOs for testing or as an RPC system that goes all the way to the client/browser
- **StructuredClone Types**: Supports all StructuredClone types (Date, Map, Set, RegExp, circular objects, etc.) for parameters and returns
- **Instrumentation Flexiblity**: Auto-instrumentation of your existing DOs or custom instrumentation
- **TypeScript Support**: Full TypeScript support with generics for your own DOs


## Installation

```bash
npm install @lumenize/rpc
```
npm package: @lumenize/structured-clone
Description: De✨light✨ful serialization of complex JavaScript types including Errors, Web API objects (Request/Response/Headers/URL), special numbers, cycles, and aliases
Author: Larry Maccherone
Latest version: 0.22.0

# @lumenize/structured-clone

De✨light✨ful serialization of complex JavaScript types.

For complete documentation, visit **[https://lumenize.com/docs/structured-clone](https://lumenize.com/docs/structured-clone)**

## Features

- **Platform Independent**: Works in Node.js, browsers, Deno, Bun, and Cloudflare Workers
- **Full Type Support**: Errors with stack traces and custom properties, Web API objects (Request, Response, Headers, URL), special numbers (NaN, ±Infinity), circular references, and all standard structured-clone types
- **Zero Dependencies**: No external packages required
- **Async API**: Handles Request/Response body streaming

## Installation

```bash
npm install @lumenize/structured-clone
```
npm package: @lumenize/testing
Description: De✨light✨ful testing utilities for Cloudflare Durable Objects
Author: Lumenize
Latest version: 0.22.0

# @lumenize/testing

A de✨light✨ful testing library for Cloudflare Durable Objects with minimal boilerplate.

For complete documentation, visit **[https://lumenize.com/docs/testing](https://lumenize.com/docs/testing)**

## Features

- **Superset of `cloudflare:test`**: Everything that cloudflare:test provides (runInDurableObject, SELF) and more
- **Change State Inside the DO Before Test Run**: Setup the state for the test
- **Exercise Your DO**: Call your DO as you would in production via fetch or WebSockets
- **Inspect State After**: Assert on anything in the state of the DO (ctx..., env..., instance members, etc.)

## Installation

```bash
npm install --save-dev @lumenize/testing
```
npm package: @lumenize/utils
Description: De✨light✨ful utility functions for Cloudflare Durable Objects projects
Author: Larry Maccherone
Latest version: 0.17.0
Deprecated: Renamed to @lumenize/routing. Install @lumenize/routing instead.

# @lumenize/utils

De✨light✨ful utility functions for Cloudflare Workers and Durable Objects.

For complete documentation, visit **[https://lumenize.com](https://lumenize.com)**

## Features

- **Cookie Jar** - Test cookie-based authentication in Durable Objects with automatic cookie management
- **DO Routing** - Route requests to Durable Objects with intelligent case conversion
- **WebSocket Shim** - Browser-compatible WebSocket API for testing

## Installation

```bash
npm install @lumenize/utils
```
npm package: @lumenpink/vue3-fitty
Description: Fitty text wrapper for Vue 3
Author: Lumen Freitas
Latest version: 0.1.4

# Vue3 Fitty

Fitty text wrapper for Vue 3

This is a fork/update to Vue 3 and TypeScript of the [vue-fitty](https://github.com/schlunsen/vue-fitty) package from [Rasmus Schlünsen](https://github.com/schlunsen)

[![npm (scoped with tag)](https://img.shields.io/npm/v/vue3-fitty/latest.svg?style=flat-square)](https://npmjs.com/package/vue3-fitty)
[![npm](https://img.shields.io/npm/dt/vue3-fitty.svg?style=flat-square)](https://npmjs.com/package/vue3-fitty)
[![Dependencies](https://david-dm.org/lohn/vue3-fitty/status.svg?style=flat-square)](https://david-dm.org/schlunsen/vue-fitty)
![ts](https://flat.badgen.net/badge/-/TypeScript/blue?icon=typescript&label)

## Usage

```
<template>
    <div>
        <!-- Wrap your component with Fitty -->
        <fitty :options="options">

              <h1>FITTED TEXT HERE</h1>

        </fitty>
    </div>
</template>
import Fitty from 'vue3-fitty'
import MyAwesomeComponent from 'my/aweseome/path'

// Install plugin
Vue.use(Fitty)

export default {
  data: () => ({
      options: {
        minSize: 11,
        maxSize: 120,
      }
  }),
  components: {
    MyAwesomeComponent
  }
  ...
}

```
npm package: @lumenswap-finance/sdk
Description: 🛠 An SDK for building applications on top of LumenSwap.
Latest version: 5.0.0

# LunarDex SDK

This repository has been forked from [UniswapV2](https://github.com/Uniswap/uniswap-sdk)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/lunenswap/sdk.git
```

Move into the sdk working directory

```sh
cd sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @lumentai/logger
Description: Custom framework that can be used locally or with external logging providers.
Author: LumentAI
Latest version: 1.7.0

# Logging Framework

Custom framework that can be used locally or with external logging providers.

## Installation

Install using npm:
`npm install @lumentai/logger --save`

## In Node.js

```typescript
// import the logging library
import { Logger } from '@lumentai/logger';

// instantiate the logger
const logger = new Logger({ name: 'THE_LOGGER_NAME', level: 'trace' });
// instantiate the logger with a contact
const logger = new Logger(
    { name: 'THE_LOGGER_NAME', level: 'trace' },
    {correlationId: 'aLogCorrelationId', user: {id: 'aUserId', name: 'aUserName'}, organizationId: 'anOrgId'}
);

// logging
logger.fatal('Some fatal message.', optionalMessagePayload);
logger.error('Some error message.', optionalMessagePayload);
logger.info('Some info message.', optionalMessagePayload);
logger.debug('Some debug message.', optionalMessagePayload);
logger.trace('Some trace message.', optionalMessagePayload);

// retrieve current logging context
const context = logger.context;

// check if a log level is enabled
if(logger.isInfoEnabled) {
    // only goes here if INFO is enabled
}

...
await Logger.shutdown(); // make sure all logs are flushed before exiting the process
```

## Log levels

### Set log level on a logger instance

When instantiating the logger, simply pass it as a constructor argument.

`const logger = new Logger({ name: 'THE_LOGGER_NAME', level: 'trace' });`

### Set default log level

To set the default log level, set the environment variable `LOGLEVEL`.

## Logger output

By default, the logger will output to console. It is possible to redirect logs to other implementations. See below to make it work with another implementation:

### Datadog

Set the constructor argument with Datadog information:

`const logger = new Logger({ name: 'THE_LOGGER_NAME', level: 'trace', transport: {type: 'datadog', env: 'dev', apiKey: '...' } });`

## Uncaught exceptions

The library will always log uncaught exceptions. By default, the process will remain alive after such error occurs. It is possible to exit the process automatically after an unhandled exception. The environment variable `EXIT_ON_UNCAUGHT_EXCEPTION` should be set to `true` for such case.
npm package: @lumeon/customisations-compiler
Description: A style generator for customisations repositories using SCSS
Author: alex.roche@lumeon.com
Latest version: 0.0.2

This is an SCSS compilation tool using PostCSS and Node Sass.

It provides a small NPM library to include an scss file, compile it, and run it through some postcss processing before minifying it and outputting it to a third directory.

Usage is as follows;

```
let csp = require('@lumeon/customisations-compiler');

//Looks for "custom.scss" file ...
const filename = "custom";
// ... in the scss directory ...
const inputDir = __dirname + "/scss";
// ... and outputs it to custom.css in the customization directory.
const outputDir = __dirname + "/customization";

csp.process(
    inputDir,
    outputDir,
    filename
);
```