open-index/open-npm huggingface dataset:
npm package: @soleco/floating-ui
Description: Floating UI for Solid
Author: vonelad
Latest version: 0.0.1

# @soleco/floating-ui

> Floating UI for Solid

## Install

```bash
# npm
npm install --save @soleco/floating-ui

# yarn
yarn add @soleco/floating-ui

# pnpm
pnpm add @soleco/floating-ui
```

## Usage

```jsx
import { createFloating } from "@soleco/floating-ui";
```

## License

MIT
npm package: @soleco/lucide
Description: Lucide icons as Solid components
Author: vonelad
Latest version: 0.0.1

# @soleco/lucide

> Lucide icons as Solid components

## Install

```bash
# npm
npm install --save @soleco/lucide

# yarn
yarn add @soleco/lucide

# pnpm
pnpm add @soleco/lucide
```

## Usage

```jsx
import Bookmark from "@soleco/lucide/bookmark";

const App = () => (
  <div>
    <Bookmark />
  </div>
);
```

## License

MIT
npm package: @solegaonkar/lambdautils
Description: Handy utility functions for a Lambda Function
Author: Vikas Solegaonkar
Latest version: 1.0.8

# lambdautils
Handy utility functions for a Lambda Function

AWS Lambda functions invoked from API Gateway Proxy Integration require some common functionality. That is encapsulated in this module.

## parseProxyEvent(event)
This method extracts useful details from the event object:
```
{
    body: JSON.parse(event.body),
    accountId: event?.requestContext?.accountId,
    requestTime: event?.requestContext?.requestTimeEpoch,
    sourceIp: event?.requestContext?.identity?.sourceIp,
    userAgent: event?.requestContext?.identity?.userAgent,
    authorization: auth,
    apiKey: event?.headers["x-api-key"],
}
```
This also validates any authentication in the Authorization header. If it is a Bearer JWT token, it is verified with the SECRET environment variable. If it is valid, the data of the token is available in the `authorization: auth`. Else it is ignored.

## respond(response)
This takes care of adding the CORS headers to the response, along with stringifying the JSON.

## Logging
To enable tracing and logging, we have utility functions error(), warn(), info() and debug(). They will log along with a log type and request id. 
setLogLevel() can be used to set the level 0-debug 1-info 2-warn 3-error

## signToken(data, lifeInSeconds)
This signs a new JWT using the process.env.SECRET
npm package: @solehudin5699/memoize
Description: Utility for memoizing function in javascript
Author: Solehudin
Latest version: 1.0.0

# memoize

Simple javascript library that provides memoization functionality. By using memoization, you can cache the results of expensive function computations, enhancing application performance by avoiding repeated calculations.

## Features

-   **Performance Optimization**: Reduces function execution time by caching previous results.
-   **Simple and Easy to Use**: Can be implemented in a single line for any function.
-   **Lightweight**: Has no external dependencies, making it ideal for projects of all sizes.

## Installation

```bash
npm install @solehudin5699/memoize
```

## Usage

### Basic Usage with Synchronous Functions

```javascript
import memoize from '@solehudin5699/memoize';

// Basic synchronous function
const square = (num) => {
    console.log('Calculating square...');
    return num * num;
};

// Memoize the function
const memoizedSquare = memoize(square);

console.log(memoizedSquare(5)); // Outputs: Calculating square... 25
console.log(memoizedSquare(5)); // Cached result: 25, no re-calculation
console.log(memoizedSquare(6)); // Re-calculation: Calculating square... 36
```

### Using Memoize with Asynchronous Functions (Promises)

```javascript
// Simulated async function (e.g., an API call)
const fetchData = async (url) => {
    console.log(`Fetching data from ${url}...`);
    const response = await fetch(url);
    return await response.json();
};

// Memoize the asynchronous function
const memoizedFetchData = memoize(fetchData);

(async () => {
    const url = 'https://api.example.com/data';

    // First call, data is fetched and cached
    const data1 = await memoizedFetchData(url);
    console.log(data1);

    // Second call with the same argument, result is retrieved from cache
    const data2 = await memoizedFetchData(url);
    console.log(data2); // No fetching this time, data is from cache
})();
```

### Setting Cache Expiration

```javascript
// Memoize with expiration (e.g., 5 minutes or 300 s)
const memoizedFetchDataWithExpiry = memoize(fetchData, { maxAge: 300 });
```

## API

`memoize(fn,options)`

Creates a new function that caches the result of fn for each unique argument provided.

-   Parameters:
    -   fn - The function to memoize.
    -   options - options for settiing expiration, options->`{maxAge:number//in seconds}`
-   Returns:
    A memoized version of the function, which will return cached results for repeated arguments.

## Contributing

If you would like to contribute to this project, please fork this repository and create a pull request. We welcome suggestions and improvements!

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
npm package: @soleil-des-chats/discord-rpc
Description: A simple RPC client for Discord
Latest version: 4.1.3

# Discord.js RPC Extension, forked

This fork is manly used to add the new fields from the Activity Object: https://discord.com/developers/docs/events/gateway-events#activity-object

### [Documentation](https://discord.js.org/#/docs/rpc/)

### [Rich Presence Example](https://github.com/discordjs/RPC/blob/master/example)

### __Browser__ Example

```javascript
const clientId = '287406016902594560';
const scopes = ['rpc', 'rpc.api', 'messages.read'];

const client = new RPC.Client({ transport: 'websocket' });

client.on('ready', () => {
  console.log('Logged in as', client.application.name);
  console.log('Authed for user', client.user.username);

  client.selectVoiceChannel('81384788862181376');
});

// Log in to RPC with client id
client.login({ clientId, scopes });
```
npm package: @solemomentsclub/react-page-slides
Description: React component for creating fullscreen scrolling websites with parallax effect. Supports Typescript.
Author: Sole Moments Club LLC
Latest version: 0.2.8

# @re_point/react-page-slides

React component for creating fullscreen scrolling websites with parallax effect. Supports Typescript.

## Installation

```sh
npm install --save @re_point/react-page-slides
```

or

```sh
yarn add @re_point/react-page-slides
```

## Demo

[Click here](https://wermetal.github.io/react-page-slides/)

## Usage

```
import React from 'react';
import {ISlideConfig, PageSlides, SlideParallaxType} from '@re_point/react-page-slides';

export const MainPage = () => {
    const slides: ISlideConfig[] = [
        {
            content: <div>first page content</div>,
            style: {
                backgroundImage: 'url("public/photo/photo_1.jpg")'
            }
        },
        {
            content: <div>second page content</div>,
            style: {
                backgroundImage: 'url("public/photo/photo_2.jpg")'
            }
        },
        {
            content: <div>third page content</div>,
            style: {
                backgroundImage: 'url("public/photo/photo_2.jpg")'
            }
        },
    ];
    return (
        <PageSlides
            enableAutoScroll={true}
            transitionSpeed={1000}
            slides={slides}
            parallax={{
                offset: 0.6,
                type: SlideParallaxType.reveal
            }}
        />
    )
};
```

## Props

- enableAutoScroll - scroll slides automatically or not
- transitionSpeed - speed of scrolling in milliseconds when using enableAutoScroll = true
- slides - array of configurations of slides. Configurations must implement interface ISlideConfig

```
interface ISlideConfig {
    content: any; // content of slide.
    style: CSSProperties //css properties. can be using for setting of background to slide.
}
```

- parallax - parallax settings. Takes two options - offset of parallax (allows float values from 0 to 1) and type ('reveal' or 'cover');
- currentSlideIndex - can be using for scrolling to particular slide (allows integer values from 0 to slides.length - 1). You can use it with react-router.
- onChange - subscribe to change slide event. first parameter of callback - index of current slide.
npm package: @solen/packages-build
Description: A build configuration package for TypeScript projects using unbuild, with path alias replacement support
Latest version: 1.0.5

# @solen/packages-build

[English](README.md) | [中文](README.zh-CN.md)

一个基于 [unbuild](https://github.com/unjs/unbuild) 的 TypeScript 项目构建配置包，支持自动路径别名替换。

## 特性

- 🚀 **ESM 输出**: 将 TypeScript 项目构建为 ESM 格式
- 📦 **TypeScript 支持**: 自动生成 `.d.ts` 声明文件
- 🗺️ **Source Maps**: 生成 source map 文件，便于调试
- 🔄 **路径别名替换**: 自动将构建输出中的 `#/` 路径别名替换为相对路径
- 🧹 **自动清理**: 每次构建前自动清理输出目录

## 安装

```bash
npm install @solen/packages-build --save-dev
# 或
pnpm add @solen/packages-build -D
# 或
yarn add @solen/packages-build --dev
```

## 使用方法

### 使用 CLI 命令（推荐）

安装后，你可以直接使用 CLI 命令，无需创建 `build.config.ts`：

```bash
# 构建项目
npx solen-packages-build
# 或
npx solen-packages-build build  # 两种方式都可以

# 监听模式
npx solen-packages-build --watch
# 或
npx solen-packages-build build --watch  # 两种方式都可以
```

### Package.json 脚本

你也可以在 `package.json` 中添加构建脚本：

**方式 1: 使用 CLI 命令（无需 build.config.ts）**
```json
{
  "scripts": {
    "build": "solen-packages-build",
    "build:watch": "solen-packages-build --watch"
  }
}
```

> **提示**: `solen-packages-build` 默认执行构建操作，所以可以直接使用 `solen-packages-build` 而不需要加 `build` 参数。你也可以使用 `solen-packages-build build`，两者效果相同。

**方式 2: 直接使用 unbuild（需要 build.config.ts）**
```json
{
  "scripts": {
    "build": "unbuild",
    "build:watch": "unbuild --watch"
  }
}
```

> **注意**: 如果使用 CLI 命令 (`solen-packages-build`)，你不需要创建 `build.config.ts` - 它会自动使用默认配置。如果 `build.config.ts` 存在，则会优先使用它。

### 使用 build.config.ts 的基本用法

在项目根目录创建 `build.config.ts` 文件：

```typescript
import { defineBuildConfig, Config } from '@solen/packages-build';

// 方式 1: 使用默认配置
export default defineBuildConfig(Config);

// 方式 2: 扩展默认配置
export default defineBuildConfig({
  ...Config,
  entries: [
    {
      ...Config.entries[0],
      input: './src',
      outDir: './dist',
    },
  ],
});
```

### 自定义配置

你可以通过扩展默认 `Config` 来自定义配置：

```typescript
import { defineBuildConfig, Config } from '@solen/packages-build';

export default defineBuildConfig({
  ...Config,
  entries: [
    {
      builder: 'mkdist',
      input: './src',
      outDir: './dist',
      format: 'esm',
      ext: 'js',
      declaration: true,
    },
    // 如果需要，可以添加更多入口点
  ],
  externals: ['vue', 'react'], // 外部依赖
});
```

## 路径别名支持

此包会自动将构建输出中的 `#/` 路径别名替换为相对路径。例如：

**源代码:**
```typescript
import { utils } from '#/utils';
```

**构建输出:**
```javascript
import { utils } from './utils';
```

## 默认配置

默认的 `Config` 包括：

- **格式**: ESM (ES Module)
- **输出**: `./dist` 目录
- **输入**: `./src` 目录
- **声明文件**: 已启用 (`.d.ts`)
- **Source maps**: 已启用
- **清理**: 已启用（构建前移除输出目录）

## 系统要求

- Node.js >= 14
- TypeScript >= 4.0
- unbuild >= 3.6.1

## 许可证

MIT

## 仓库

[GitHub](https://github.com/openmyjs/solen)
npm package: @solen/server
Description: A simple in-memory key-value store for server-side data
Latest version: 1.0.5

## @solen/server /stores

使用文档：
- 英文版：[docs](./src/stores/README.md)
- 中文版：[文档](./src/stores/README.zh-CN.md)

快速使用：
- 启动初始化：`initStores({ type: 'memory' | 'redis', db?, prefix? })`
- 业务调用：`import stores from '@solen/server/stores'; await stores.set/get/del(...)`
- TTL：`set` 的第三个参数（毫秒），内存/Redis 一致

构建产物位于 `dist/stores/*`，通过 `exports["./stores"]` 暴露。
npm package: @solendprotocol/common
Description: configs, serialization formats, etc.
Author: nope@solend.fi
Latest version: 1.1.79

# common
configs, serialization formats, etc. 

## TO BE DEPRECATED
This package will be deprecated 3/25/2022 in favor of https://api.solend.fi/v1/config?deployment=production. Plan your migration accordingly as the team will stop maintaining the common pkg with new markets and reserves.

Read more about the `/v1/config` endpoint at https://app.swaggerhub.com/apis-docs/solendprotocol/API/1.0.1#/Reserves/get_v1_config_

## install via npm
https://www.npmjs.com/package/@solendprotocol/common




## publishing
```
yarn login
yarn publish --access public
```
and bump the version
npm package: @soleng-fuze/ldapjs
Description: LDAP client and server APIs
Author: Mark Cavage
Latest version: 1.0.3

# LDAPjs

[!['Build status'][travis_image_url]][travis_page_url]

[travis_image_url]: https://api.travis-ci.org/mcavage/node-ldapjs.svg
[travis_page_url]: https://travis-ci.org/mcavage/node-ldapjs

LDAPjs makes the LDAP protocol a first class citizen in Node.js.

## Usage

For full docs, head on over to <http://ldapjs.org>.

```javascript
var ldap = require('ldapjs');

var server = ldap.createServer();

server.search('dc=example', function(req, res, next) {
  var obj = {
    dn: req.dn.toString(),
    attributes: {
      objectclass: ['organization', 'top'],
      o: 'example'
    }
  };

  if (req.filter.matches(obj.attributes))
  res.send(obj);

  res.end();
});

server.listen(1389, function() {
  console.log('ldapjs listening at ' + server.url);
});
```

To run that, assuming you've got the [OpenLDAP](http://www.openldap.org/)
client on your system:

    ldapsearch -H ldap://localhost:1389 -x -b dc=example objectclass=*

## Installation

    npm install ldapjs

## License

MIT.

## Bugs

See <https://github.com/mcavage/node-ldapjs/issues>.