open-index/open-npm huggingface dataset:
npm package: @innu/phasor
Description: This library facilitates the management of asynchronous operations as state machine objects. It is particularly useful for representing the state of network calls or any asynchronous operation's progress as an object.
Latest version: 0.0.1

# @innu/phasor

This library facilitates the management of asynchronous operations as state machine objects. It is particularly useful for representing the state of network calls or any asynchronous operation's progress as an object.

## Phasor State Machine

![Phasor state machine](./docs/state-diagram.excalidraw.png)

1. A phasor is initially at the `rest` state until it has been acted upon for the first time.
2. Once acted upon, the phasor transitions to the `run` state.
3. After the operation is complete, the phasor enters the `done` state.
4. Subsequently, the phasor can enter the `rerun` state, either to redo the operation with new inputs or to retry in case of errors.

## Usage

The primary export of this library consists of types. To illustrate, consider representing a network call made to fetch search results based on a search string. This is how you would model it as a Phasor -

```typescript
import { Phase, Result } from '@innu/phasor';
import { SearchResult, SearchErrors } from './types.ts'; // assuming this exists

type SearchResultPhasor = Phasor<string, Result<SearchResult[], SearchErrors>>;
```

Here, `Phasor` is a [discriminated union](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes-func.html#discriminated-unions) with `phase` as the discriminant. Consequently, `SearchResultPhasor` becomes a strongly typed entity that must be checked before access.
You can initialize an object like this -

```typescript
let searchResult: SearchResultPhasor = {
  phase: Phase.Rest,
};
```

Alternatively, you can utilize the factory class included in the library -

```typescript
import { ph } from '@innu/phasor';

let searchResult: SearchResultPhasor = ph.rest();
```

Now, you can update the `searchResult` object as your search operation progresses through different stages.

```typescript
// When search is initiated
searchResult = ph.run(searchInput);

// When search completes successfully
searchResult = ph.done(searchInput, response);
```

This library also offers type guards for convenience -

```typescript
if (ph.is.done(searchResult)) {
  console.log(searchResult.result);
}
```

Moreover, the library includes a `Result` type to specify either `Ok` or `Err` type values, with a similar API -

```typescript
let otherResult = ph.done(input, res.ok(result));
// or
otherResult = ph.done(input, res.err(new Error('Oops')));
```

This library is utilized in `@innu/state`. [Learn more here](../state/README.md).
npm package: @innv.magints/karrot_ui
Description: This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Latest version: 0.0.6

# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
npm package: @innvoid/getmarket-sdk
Description: SDK oficial de Innvoid para estandarizar **cache (L1+L2/Redis)**, **HTTP clients**, **helpers de headers/context**, y * *middlewares** compartidos entre microservicios GetMarket.
Latest version: 0.2.9

# @innvoid/getmarket-sdk

SDK oficial de Innvoid para estandarizar **cache (L1+L2/Redis)**, **HTTP clients**, **helpers de headers/context**, y *
*middlewares** compartidos entre microservicios GetMarket.

Este repo se mantiene **desde** el monorepo `getmarket-workspace` (subtree). La edición diaria se hace en el workspace y
luego se sincroniza/publica.

---

## Qué incluye

- **cache**: `TwoLevelCache` (L1 in-memory + L2 Redis), `getOrSet`, `ttlPolicy`
- **core**: `InternalHttp`, helpers HTTP (axios), errores normalizados
- **headers**: parse/build de headers estándar (request context)
- **middlewares**: `requestId`, `parseHeaders`, `internalAuth`, `respond` (sendOk/sendError)

---

## Requisitos

- Node `>=18 <23`
- npm `>=9 <11`
- Redis accesible (si se usa `redis` como provider), o fallback `noop` si no hay config.

---

## Instalación (en un microservicio)

```bash
npm i @innvoid/getmarket-sdk @innvoid/getmarket-contracts