open-index/open-npm huggingface dataset:
npm package: @realconteman/utils
Description: Common JavaScript / TypeScript utils by [@conteman](https://github.com/conteman).
Author: ConteMan
Latest version: 0.0.5

# @conteman/utils

Common JavaScript / TypeScript utils by [@conteman](https://github.com/conteman).

## Functions

### Time
- sleep

## License

[MIT](./LICENSE) License © 2023 [ConteMan](https://github.com/conteman)
npm package: @realdennis/after-event
Description: Await afterEvent, make event trigger promisify.
Author: realdennis
Latest version: 1.0.1

# afterEvent

An one time usage for `await` after event trigger, in the other words, promisify the event handler!

## Usage

```javascript
// in some async function
import afterEvent from '@realdennis/after-event';

// thenable usage
afterEvent('load', document).then(() => {
  /*
   ** It would be called just one time,
   ** cause promise fulfilled is the final state, right?
   */
  // do something here
});

// or in await usage
async () => {
  await afterEvent('click'); // If you do not pass second parameter, default is window.
  console.log('window has been clicked!');
};
```

## Installation

```
$ npm install @realdennis/after-event
```

## Did afterEvent register clean the event listener?

Definitely Yes!
It remove self listener after event trigger, so the different usage will never conflict.

Example 1

```javascript
afterEvent('click').then(() => console.log(1));
afterEvent('click').then(() => console.log(2));
// click window
// 1
// 2
// click again
// nothing happen!
```

Example 2

```javascript
afterEvent('SOME_EVENT').then(() => console.log(1));
window.dispatchEvent(new Event('SOME_EVENT'));
// 1

afterEvent('SOME_EVENT').then(() => console.log(2));
window.dispatchEvent(new Event('SOME_EVENT'));
// 2
```

---

LICENSE MIT © 2019 realdennis
npm package: @realdennis/after-frame
Description: await until next frame
Author: realdennis
Latest version: 0.0.1

# nextFrame

A promisify of `window.requestAnimationFrame`, you can use this in your async function to slice the long callback bottleneck to improve performance and avoid frame drop in your callback.

## Why use nextFrame instead of requestAnimationFrame?

Since requestAnimationFrame is a callback usage, if we want to deal with complexity flow, the callback hell would be sufferd.


## Installation

```bash
$ npm install @realdennis/next-frame
```

## Usage

It expose three methods `nextFrame` / `perFrameReduccer` / `perFrameMapper` for difference purpose.

### nextFrame

```javascript
import { nextFrame } from '@realdennis/next-frame';

window.onclick = async ()=>{
    await nextFrame()
    /**
     * ... something click callback step1
     */
    chunk1();
    await nextFrame()
    /**
     * ... something click callback step2
     */
    chunk2();
    await nextFrame()
    /**
     * ... something click callback step3
     */
    chunk3()
}
```
These 3 chunk will be execute in 3 serial different frame, and share the same closure variable, race-safe.


### perFrameReducer

It provides `perFrameReducer`, an array reduce callback, reduce the callback array to promise, and schedule it all to different frame like above.

```javascript
import { perFrameReducer } from '@realdennis/next-frame';

window.onclick = async ()=>{
    await [chunk1,chunk2,chunk3].reduce(perFrameReducer)
    console.log('Done')
}
```

### perFrameMapper

It provides `perFrameMapper`, an array map callback, map the callback array to promised callback array, and each promised callback has itself start frame.

```javascript
import { perFrameMapper } from '@realdennis/next-frame';

window.onclick = async (){
    const scheduledChunks =  [chunk1,chunk2,chunk3].map(perFrameMapper);
    //[chunk1InFrame1func , chunk2InFrame2func, chunk3InFrame3func]
    Promise.all(scheduledChunks.map(cb=>cb()))
        .then(console.log('concurrent done'));
}
```

## License

LICENSE MIT © 2019 realdennis
npm package: @realdennis/amaterasu
Description: Make DOM blur gradully like user has Uchiha eyes.
Author: @realdennis
Latest version: 0.0.7

# Amaterasu

[Demo](https://codepen.io/realdennis/pen/wNmPPB)

![Amaterasu!](https://i.imgur.com/E8ndEHj.jpg)

Make DOM blur gradually, like user has Uchiha eyes.

```javascript
const [start,stop] = Amaterasu(DOM,/*level default 10*/,/*duration default 1 (sec)*/)

const [start,stop] = Amaterasu(document.body);
start()
/* Actually you can just code like this*/
```

## CDN

```html
<script src="https://unpkg.com/@realdennis/amaterasu@0.0.6/cdn/Amaterasu.js"></script>
<script>
  const [start, stop] = Amaterasu(document.body);
  start();
</script>
```

## NPM module

```sh

$ npm install @realdennis/amaterasu

```

## Usage

```javascript
import Amaterasu from '@realdennis/amaterasu';
const [start, stop] = Amaterasu(document.body);
start();
```

## More

```javascript
const img = document.querySelector('img#target')
const [start,stop] = Amaterasu(img,5,2);
// Blur this img elment 0 .. 1 ....5 , every 2sec

if(/* some statement */) stop()
// Make img element resume style before amaterasu start.

```
npm package: @realdennis/caesar
Description: Caesar is a helper library to manipulate CSS Variable like JavaScript Object.
Author: realdennis
Latest version: 1.1.0

<div align="center">
<h1>Caesar</h1>
</br>
<quote>"THIS IS THE LAST OF MY HAMON! TAKE IT!"</quote>
<p>by Caesar Anthonio Zeppeli</p>
<a href="https://www.npmjs.com/package/@realdennis/caesar">
<img src="https://media.giphy.com/media/11TN3gkseh4Vos/source.gif" alt="Joseph Joestar Cry"/>
</a>
</br>
<a href="https://github.com/realdennis/caesar/blob/master/LICENSE">
  <img src="https://img.shields.io/github/license/realdennis/caesar.svg" alt="License" />
</a>
<a href="https://www.npmjs.com/package/@realdennis/caesar">
   <img src="https://img.shields.io/npm/dm/@realdennis/caesar.svg" alt="npm downloads" />
</a>
<a href="https://github.com/realdennis/caesar/stargazers">
   <img src="https://img.shields.io/github/stars/realdennis/caesar.svg" alt="GitHub Stars" />
</a>
<a href="https://travis-ci.org/realdennis/caesar">
   <img src="https://travis-ci.org/realdennis/caesar.svg?branch=master" alt="Build Status" />
</a>
</div>
</br>

Caesar is a **developer-friendly** library for CSS3 variables get & set.

- Set CSS variables by `caesar.assign` method like `Object.assign`.
- Get CSS variable value by name using `caesar.query`.

[Demo](https://codepen.io/realdennis/pen/YzzzORR)

## Install

```sh
$ npm install @realdennis/caesar
```

or script tag

```html
<script src="https://unpkg.com/@realdennis/caesar@1.0.4/dist/index.umd.js"></script>
```

## Usage

Only two methods `caesar.assign` & `caesar.query` & `caesar.queryOne`, the below is usage.

```javascript
import * as  caesar from '@realdennis/caesar';

const el = document.querySelector('div.container');
caesar.assign(el, {
  duration: '2s',
  delay: '1.5s',
  height: '20px'
});
/* Now the container style would be like below
 ** div.container{
 **   --duration: 2s;
 **   --delay: 1.5s;
 **   --height: 20px;
 **   transition-delay: var(--duration);
 ** }
 **
 */
const { duration, height } = caesar.query(el, ['duration', 'height']);
const { delay } = caesar.queryOne(el,'delay');
console.log(duration); // "2s"
console.log(height); // "20px"
console.log(delay); // "1.5s"
```

## Note

- When variable does not exist, it'll return empty string (default value is '').
- Caesar **CANNOT** get the initial CSS variable value in stylesheet.
- Each query return would be `string` type, though you assign in `number` type.
  example:

```javascript
caesar.assign(el, {
  containerTop: 20,
  containerBottom: 10
});
const { containerTop:top } = caesar.query(el, ['containerTop']);
console.log(typeof top); // string
```

- If you are using `typescript` and `querySelector`, it'll get `Element` type, please type assertion `as HTMLElement`.
- Full document will coming soon...

---

LICENSE MIT © 2019 realdennis
npm package: @realdennis/lit-observable
Description: observable decorator for lit-element.
Author: @realdennis
Latest version: 0.0.10

# lit-observable
Decorators make lit-element observable.

## Installation
```zsh
$ npm i @realdennis/lit-observable
```

## Usage
### [@subscribeProperty](https://github.com/realdennis/lit-observable/blob/master/src/subscribeProperty.decorator.ts)
subscribe observable stream and update the property & element.

```typescript
import { subscribeProperty } from '@realdennis/lit-observable';
import { counter$ } from './stream';
export class ObservableExample extends LitElement {
    @subscribeProperty(counter$)
    counter!: number;
    public render() {
        return html`
            <p>counter = ${this.counter}</p>
            <button @click=${this.increment}>Increment</button>
        `;
    }

    private increment() {
        counter$.next(counter$.getValue() + 1);
    }
}
```

### [@subscribe](https://github.com/realdennis/lit-observable/blob/master/src/subscribe.decorator.ts)
subscribe observable stream and triggered the callback method.

```typescript
import { subscribeProperty } from '@realdennis/lit-observable';
import { counter$ } from './stream';

export class ObservableExample extends LitElement {
    @subscribe(counter$)
    callback(data: number) {
        console.log('observalbel from counter$:', data);
    }
}
```

See [Demo](https://github.com/realdennis/lit-observable/tree/master/demo).
npm package: @realdennis/use-resize
Description: React hook for window resize using use-event-target.
Author: @realdennis
Latest version: 0.0.5

# useResize

Get window size by hooks `resize` event without side-effect.

## How to use?

```javascript
import useResize from '@realdennis/use-reize';
const demo = ()=>{
  const size = useResize();
  return <p>{`width: ${size.width} / height: ${size:height}`}</p>
}
```

## What I Do?

Call clean-up function (to `removeEventListener`) when component has been unmounted.

## Why This has a dependency of `useEventTarget`

This is a hooks infrastructure for easily package a event hooks.

See more [useEventTarget](https://github.com/realdennis/useEventTarget/).
npm package: @realdocai/nora-cli
Description: Terminal CLI for Nora
Author: Nihar Ganju MD
Latest version: 0.1.3

# Nora CLI

`@realdocai/nora-cli` is the official terminal interface for Nora App by **RealDocAI**.

Nora CLI lets clinicians, developers, and AI agents authenticate, complete onboarding, and use Nora chat workflows from a terminal.

- Product: Nora (RealDocAI)
- Author: Nihar Ganju MD
- Maintainer: RealDocAI

## Installation

Requirements:
- Node.js 18+

Install globally:

```sh
npm i -g @realdocai/nora-cli
```

Verify install:

```sh
nora --help
```

## Quick Start

```sh
nora auth login
nora onboarding status
nora onboarding start
nora chat
```

## Core Commands

- `nora auth login|logout|whoami`
- `nora onboarding status|start`
- `nora chat` (interactive terminal mode)
- `nora chat ask|threads|history`
- `nora account credits|subscription|pricing`

## Agent and Automation Usage

Use `--json` for machine-readable outputs.

Examples:

```sh
nora auth whoami --json
nora account credits --json
nora chat ask --message "Summarize this case" --json
```

Thread continuity options:

```sh
nora chat ask --thread <thread-id> "Follow-up question"
nora chat ask --thread-file .nora-thread "First message"
nora chat ask --thread-file .nora-thread "Second message in same thread"
```

## Interactive Chat Notes

- `nora chat` opens a REPL-like session.
- Use `/help` for commands.
- Use `/new` to start a new conversation in-session.
- Use `/thread` to inspect current thread id.
- Use `/exit` to leave chat mode.

## Security Notes

- Session tokens are stored in macOS keychain when available, with encrypted file fallback.
- Local chat transcripts are not persisted by default.

## Troubleshooting

- `Authentication required`: run `nora auth login`.
- `onboarding_required`: run `nora onboarding start`.
- `history_not_allowed`: your current tier does not allow history listing.
- `no_questions` / `daily_cap`: your account has exhausted current allowance.

## Versioning

Current release line is `0.x` (experimental).

- Breaking and behavioral changes may occur between minor releases.
- Use exact version pinning in production automation if strict stability is required.

## Ownership and Support

- Package: [`@realdocai/nora-cli`](https://www.npmjs.com/package/@realdocai/nora-cli)
- Company: RealDocAI
- Company site: https://realdocai.com
- Product site: https://norai.realdocai.com
- Author profile: https://niharganju.com
- LinkedIn: https://www.linkedin.com/in/nihar-ganju-md/
- Instagram: https://www.instagram.com/niharganjumd/
- Issues: https://github.com/shibudada/nora-cloudflare/issues

## Enterprise Integrations

Enterprise, EMR, and organization-wide integrations are welcome.

If your organization is planning a production integration, please contact us so we can coordinate implementation guidance and support options:

- https://realdocai.com
- https://niharganju.com

## License

Licensed under the MIT License. See [LICENSE](./LICENSE).

Brand names, logos, and trademarks are not licensed under MIT. See [TRADEMARKS.md](./TRADEMARKS.md).
npm package: @realeboha/component-library
Description: Reusable React components for dashboards
Author: Readesign638
Latest version: 1.0.0

# my-component-library

> Reusable React components for dashboards

[![NPM](https://img.shields.io/npm/v/my-component-library.svg)](https://www.npmjs.com/package/my-component-library) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save my-component-library
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'my-component-library'
import 'my-component-library/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [Readesign638](https://github.com/Readesign638)
npm package: @realengineai/client
Description: A simple and easy to use client for the RealEngine.ai API
Author: Yaroslav Ivanov
Latest version: 1.0.3

# RealEngine.ai SDK for JavaScript</h1>

A simple and easy to use client for the <a href="https://www.realengine.ai">RealEngine.ai API</a></b>

## Installation

```
npm install @realengineai/client
```

## Usage

Import and initialize a client using an **API token** from the [RealEngine AI Dashboard](https://app.realengine.ai).

```js
import RealEngineAIClient from "@realengineai/client"

// Initializing a client
const realEngineAIClient = new RealEngineAIClient(
  process.env.REAL_ENGINE_AI_TOKEN
)
```

Make a request to get captions for an image.

```js
const caption = await client.getCaption("http://link.to/image.jpg")
```

### Handling errors

If the API returns an unsuccessful response, the returned `Promise` rejects with a `RealEngineAIError`.

The error contains a unique error ID that can be used by RealEngine AI support team.

## Requirements

This package supports the following minimum versions:

- Runtime: `node >= 18`
- Type definitions (optional): `typescript >= 4.5`

## Contributing

Contributions are welcome!

### License

This project is licensed under the terms of the MIT license. See the [License](https://github.com/RealEngineAI/js-sdk/blob/main/LICENSE)
file for details.