open-index/open-npm huggingface dataset:
npm package: @ridafkih/portalgun
Description: <div align="center">   <h1>PortalGun</h1>   <p>Create easy-to-use portals in React & React Native.</p>   <p>This is PortalGun, an easy-to-use portal library that allows you to create portals, and render elements anywhere within your DOM under the `PortalG
Author: Rida F'kih
Latest version: 0.2.0

<div align="center">
  <h1>PortalGun</h1>
  <p>Create easy-to-use portals in React & React Native.</p>
  <p>This is PortalGun, an easy-to-use portal library that allows you to create portals, and render elements anywhere within your DOM under the `PortalGunProvider`. Get started in minutes.</p>
  	<span>
		<a href="#installation">Installation</a>
		<span>&nbsp;&nbsp;·&nbsp;&nbsp;</span>
		<a href="#usage">Usage</a>
		<span>&nbsp;&nbsp;·&nbsp;&nbsp;</span>
		<a href="#contribute">Contribute</a>
	</span>
</div>
<hr>

## Installation

To install `@ridafkih/portalgun`, simply use your favourite Node.js package manager.

```bash
yarn add @ridafkih/portalgun
```

```bash
npm install @ridafkih/portalgun
```

## Usage

```tsx
// ...
import { PortalGunProvider, createPortal } from "@ridafkih/portalgun";

const MyPortal = createPortal("unique-key");

const MyComponent = () => {
  const [value, setValue] = useState<boolean>(true);
  const text = value ? "Yay, value is true!" : "Unfortunately, value is false.";

  return (
    {/** Anything that goes in here will render in all corresponding `MyPortal.Out` */}
    <MyPortal.In>
      <Text>{text}</Text>
    </MyPortal.In>
  );
};

export const MyApp = () => {
  return (
    <PortalGunProvider>
      {/** This contains is defined above, and contains our `MyPortal.In` */}
      <MyComponent />
      {/** Content of `MyPortal.In` will display here. */}
      <MyPortal.Out />
    </PortalGunProvider>
  );
};
```

## Contribute

Feel free to contribute to the repository. Pull requests and issues with feature requests are _super_ welcome!
npm package: @ridavila/platzom
Description: Traductor de idioma platzom
Author: Roger Dávila
Latest version: 0.1.0

# Platzom

Platzom es un idioma inventado para el [Curso de Fundamentos de JavaScript](https://platzi.com/js) de [Platzi](https://platzi.com), el mejor lugar de educación online

## Descripción del idioma
- Si la palabra termina con "ar", se le quitan esas dos letras
- Si la palabra inicia co Z, se le añade "pe" al final.
- Si la palabra traducida tiene 10 o más letras, se debe partir en dos por la mitad y unir con un guión medio
- Por últmo, si la palabra original es un palíndromo, ninguna regla anterior cuenta y se devuelve la misma palabra pero   intercalando letras mayúsculas y minúsculas.

## Instalación
```
npm install platzomR
```

## Uso
```
import platzom from 'platzom'

platzom("Programar") //Program
platzom("Zorro") //Zorrope
platzom("Zarpar") //Zarppe
platzom("abecedario") //abece-dario
platzom("sometemos") //SoMeTeMoS
```

##Créditos
- [Roger Dávila](https://www.facebook.com/Rogery.Davila)

##Licencia
[MIT](https://opensource.org/licenses/MIT)
npm package: @riddance/aws-host
Description: This is `@riddance/aws-host`, a TypeScript AWS Lambda host adapter for the Riddance serverless framework. It provides AWS-specific implementations for HTTP, event, timer, and context handling in Lambda functions by providing Lambda entry points that trans
Latest version: 0.1.4

# Project Overview

This is `@riddance/aws-host`, a TypeScript AWS Lambda host adapter for the Riddance serverless framework. It provides AWS-specific implementations for HTTP, event, timer, and context handling in Lambda functions by providing Lambda entry points that translate Lambda-specific idioms to Riddance idioms.

Though we depend on `@riddance/service` we do so to implement it, not to use it.

## Core Components

**Main Entry Points**:

- `context.ts` - Creates a Riddance context that establishes metadata, logging and event transport for Riddance functions based on what the Lambda runtime provides.
- `http.ts` - Handles events from AWS API Gateway, sends them to Riddance HTTP handler, and maps the response back to the gateway.
- `timer.ts` - Takes an EventBridge timer/scheduled event and forwards it to Riddance timer handler.
- `event.ts` - Takes an SNS event and forwards it to Riddance event handler.

**Supporting Infrastructure**:

- `lib/sns.ts` - Event transport that sends events emitted from Riddance handlers to SNS. Events sent this way are in turn handled by `events.ts`
npm package: @riddance/env
Description: Too much code slows you down, creates risks, increases maintainability burdens, confuses AI. So let's commit less of it.
Latest version: 0.9.9

# Code is a Liability

Too much code slows you down, creates risks, increases maintainability burdens, confuses AI. So let's commit less of it.

With just _one dev dependency_, you get

- **Testing** with built-in mocking support
- Strict **type checking**
- Strict **linting**
- **Formatting**
- **Spell checking**
- **LLM rules**
- customized **MCP server** (coming soon)
- Automatic **npm install**
- **IDE** setup
- **git** setup
- **Dev Container** setup
- all in a **hot-reloading** trigger-on-save setup

Using carefully curated and optimized well-established open source packages, so you don't have to commit and maintain all of that yourself. It's even opinionated, so you avoid wasting time bike-shedding.

## Get Started

Simply run

```sh
$ npm init riddance
```

Drop a `.ts` file in the directory, run

```sh
$ npm start
```

Try adding a type error, a spelling error, or some bad formatting, and see it react. Try adding a dependency to `package.json` and see it install automatically. Drop a Mocha test file in a `test` directory and see it run the tests.
npm package: @riddance/service
Description: Too much code slows you down, creates risks, increases maintainability burdens, confuses AI. So let's commit less of it.
Latest version: 0.2.10

# Code is a Liability

Too much code slows you down, creates risks, increases maintainability burdens, confuses AI. So let's commit less of it.

With just _one dependency_, you get a modern microservice framework

- **Testing** with built-in mocking and timeshift support
- **HTTP** endpoints
- **Pub/sub** events
- **CRON**
- **Structured logging**
- **LLM rules** and customized **MCP server** (coming soon)
- **JWT** support built-in
- **Minification** to protect your IP from hosting providers

with as little code as possible.

## Get Started

Simply run

```sh
$ npm install @riddance/service
```

Drop a `.ts` file in the directory, e.g.

```ts
// greeting.ts
import { get } from "@riddance/service/http";

get("greeting", (context, request) => {
    return {
        body: { message: "Hello, World!" },
    };
});
```

and a correspoding file in a `test` subdirectory:

```ts
// test/greeting.ts
import { request } from "@riddance/service/test/http";
import assert from "node:assert/strict";

describe("greeting", () => {
    it("should say hi", async () => {
        const response = await request({ uri: "greeting" });

        assert.strictEqual(response.status, 200);
        assert.strictEqual(response.body.message, "Hello, World!");
    });
});
```

It doesn't get shorter than that, right? See the `example` directory for other examples.

To deploy it to your favorite cloud provider, create a `../glue/glue.json` file:

```json
{
    "services": {
        "greeting": {}
    }
}
```

and run

```sh
$ npx @riddance/deploy test
```

It'll end it's output with something like

```
hosting on https://xyz.execute-api.eu-central-1.amazonaws.com/
```

and you can then try it out

```sh
$ curl https://xyz.execute-api.eu-central-1.amazonaws.com/greeting
```
npm package: @riddledc/riddle-mcp
Description: MCP-related utilities for RiddleDC (no secrets).
Author: RiddleDC
Latest version: 0.8.0

# @riddledc/riddle-mcp

MCP-related utilities for RiddleDC. No secrets. No network calls unless you run the server or invoke tools.

## Install

```
pnpm add @riddledc/riddle-mcp
```

## Usage

```ts
import { loadConfigFromEnv, redactSecrets } from "@riddledc/riddle-mcp";

const config = loadConfigFromEnv();
console.log(redactSecrets(config));
```

## MCP server (CLI)

Install and run:

```
pnpm add @riddledc/riddle-mcp
npx riddle-mcp
```

### MCP config example

```json
{
  "mcpServers": {
    "riddle": {
      "command": "npx",
      "args": ["riddle-mcp"],
      "env": {
        "RIDDLE_MCP_GATEWAY_URL": "https://api.riddledc.com",
        "RIDDLE_AUTH_TOKEN": "your_login_token_here"
      }
    }
  }
}
```

## Environment variables

- `RIDDLE_BASE_URL`
- `RIDDLE_API_URL`
- `RIDDLE_TOKEN`
- `RIDDLE_MCP_GATEWAY_URL`
- `RIDDLE_AUTH_TOKEN`
- `RIDDLE_API_KEY`

## Notes
- Supply credentials via env vars or your own config layer.
- No assumptions about other integrations.
npm package: @riddler/predicator
Description: Safe predicate engine
Author: JohnnyT
Latest version: 0.1.1

[![Build Status](https://travis-ci.org/riddler/predicator-js.svg?branch=master)](https://travis-ci.org/riddler/predicator-js)
[![Maintainability](https://api.codeclimate.com/v1/badges/2e21756aaa54c2073d29/maintainability)](https://codeclimate.com/github/riddler/predicator-js/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/2e21756aaa54c2073d29/test_coverage)](https://codeclimate.com/github/riddler/predicator-js/test_coverage)

# Predicator

Predicator is a safe (does not eval code), admin or business user facing predicate engine. It turns a string predicate like `"score > 600 or (score > 580 and monthly_income > 9000)"` along with a supplied context into a `true` or `false`. This predicate can be stored as an attribute of a model (ex: an Offer model could store a predicate indicating if it is available to a customer).

## Usage

Simple usage:

```js
const Predicator = require('predicator');

// Compile a list of instructions which a Predicator Evaluator can execute

Predicator.compile('score >= 600 or (score > 580 and income > 9000)');

//  [
//    [ 'load', 'score' ],
//    [ 'to_int' ],
//    [ 'lit', 600 ],
//    [ 'compare', 'GTE' ],
//    [ 'jtrue', 11 ],
//    [ 'load', 'score' ],
//    [ 'to_int' ],
//    [ 'lit', 580 ],
//    [ 'compare', 'GT' ],
//    [ 'jfalse', 5 ],
//    [ 'load', 'income' ],
//    [ 'to_int' ],
//    [ 'lit', 9000 ],
//    [ 'compare', 'GT' ]
//  ]


// Evaluation

Predicator.evaluate('score >= 600 or (score > 580 and income > 9000)', {score: 600}); // true

Predicator.evaluate('score >= 600 or (score > 580 and income > 9000)', {score: 590}); // false

Predicator.evaluate('score >= 600 or (score > 580 and income > 9000)', {score: 590, income: 10000}); // true
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/riddler/predicator-js.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).