open-index/open-npm huggingface dataset:
npm package: @lemur-bookstores/secure-stack-cache
Description: Cache module for SecureStack with support for Redis, Memory, and Memcached
Author: @elkincp5
Latest version: 0.2.0

# @lemur-bookstores/secure-stack-cache

A robust caching module for SecureStack with support for multiple providers (Memory, Redis, Memcached).

## Features

- 🔌 **Driver-based architecture**: Easily switch between caching strategies.
- 💾 **Memory Provider**: Built-in LRU cache for development and testing.
- 🚀 **Redis Provider**: High-performance caching using `ioredis`.
- 📦 **Memcached Provider**: Alternative caching using `memjs`.
- 🗄️ **SQLite Provider**: Persistent local caching using `better-sqlite3`.
- 🍃 **MongoDB Provider**: Distributed document caching using `mongodb`.
- 🛡️ **Unified API**: Consistent interface across all providers.
- ⏱️ **TTL Support**: Time-to-live support for all operations.

## Installation

```bash
npm install @lemur-bookstores/secure-stack-cache
```

## Usage

### Basic Usage (Memory)

```typescript
import { CacheManager } from '@lemur-bookstores/secure-stack-cache';

const cache = new CacheManager({
  store: 'memory',
  memory: {
    max: 500, // Max items
    ttl: 60,  // Default TTL in seconds
  },
});

await cache.set('key', 'value');
const value = await cache.get('key');
```

### Redis Usage

```typescript
import { CacheManager } from '@lemur-bookstores/secure-stack-cache';

const cache = new CacheManager({
  store: 'redis',
  redis: {
    host: 'localhost',
    port: 6379,
    ttl: 3600, // Default TTL
  },
});
```

### Memcached Usage

```typescript
import { CacheManager } from '@lemur-bookstores/secure-stack-cache';

const cache = new CacheManager({
  store: 'memcached',
  memcached: {
    servers: 'localhost:11211',
    options: {
      expires: 60,
    },
  },
});
```

### SQLite Usage

```typescript
import { CacheManager } from '@lemur-bookstores/secure-stack-cache';

const cache = new CacheManager({
  store: 'sqlite',
  sqlite: {
    path: './cache.sqlite', // Defaults to :memory:
    table: 'my_cache',      // Defaults to 'cache'
    ttl: 60,
  },
});
```

### MongoDB Usage

```typescript
import { CacheManager } from '@lemur-bookstores/secure-stack-cache';

const cache = new CacheManager({
  store: 'mongo',
  mongo: {
    url: 'mongodb://localhost:27017',
    dbName: 'my_app',
    collectionName: 'cache_items',
    ttl: 60,
  },
});
```

## API

### `CacheManager`

- `get<T>(key: string): Promise<T | null>`
- `set<T>(key: string, value: T, ttl?: number): Promise<void>`
- `del(key: string): Promise<void>`
- `clear(): Promise<void>`
- `has(key: string): Promise<boolean>`
- `getProvider(): CacheProvider`

## License

MIT
npm package: @lemur-bookstores/secure-stack-cli
Description: CLI tool for SecureStack - Project scaffolding, code generation, and development tools
Author: @elkincp5
Latest version: 0.2.0

# @lemur-bookstores/secure-stack-cli

The official CLI tool for SecureStack, designed to streamline the development of secure, type-safe applications.

## Installation

```bash
npm install -g @lemur-bookstores/secure-stack-cli
```

## Usage

```bash
securestack <command> [options]
```

## Commands

### Project Creation

#### `create <project-name>`
Creates a new SecureStack project with interactive setup.

```bash
securestack create my-app
```

Options:
- `-t, --template <template>`: Project template (monolith, microservices, hybrid)
- `--skip-install`: Skip dependency installation
- `--skip-prompts`: Skip interactive prompts

#### `init`
Initialize SecureStack in an existing project.

```bash
securestack init
```

### Code Generation

#### `generate service <name>`
Generates a new service with CRUD operations, router, and middleware.

```bash
securestack generate service user
```

#### `generate module <name>`
Generates a basic module structure.

```bash
securestack generate module auth
```

#### `generate router <name>`
Generates a router with query and mutation stubs.

```bash
securestack generate router posts
```

#### `generate middleware <name>`
Generates a middleware template.

```bash
securestack generate middleware logging
```

### Development

#### `dev`
Starts the development server with hot reload.

```bash
securestack dev
securestack dev --port 4000
```

#### `build`
Builds the project for production.

```bash
securestack build
securestack build --minify
```

### Service Mesh

#### `mesh visualize`
Visualizes the service mesh topology.

```bash
securestack mesh visualize
```

#### `mesh status`
Shows the status of a service.

```bash
securestack mesh status --url http://localhost:3000
```

#### `mesh health`
Runs health checks on a service.

```bash
securestack mesh health --url http://localhost:3000
```

#### `mesh rotate-keys`
Manually rotates encryption keys for a service.

```bash
securestack mesh rotate-keys --url http://localhost:3000
```

### Deployment

#### `docker`
Generates Dockerfile and docker-compose.yml.

```bash
securestack docker
```

#### `deploy`
Runs deployment scripts defined in package.json.

```bash
securestack deploy
```

## License

MIT
npm package: @lemurchop/flypaper
Description: Set of UI components for the SwapMeet; forked from Pancakeswap UIkit
Latest version: 0.9.9

# SwapMeet UIkit

The SwapMeet UIkit is a set of React components and hooks used to build pages on FlyPaper's apps. It also contains a theme file for dark and light mode. Forked from Pancakeswap UIkit.

## Install

`yarn add @lemurchop/flypaper`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
"# uikit"
npm package: @lemuria/absolute-proxy
Description: Assigns Styles To Position Element Absolutely On Top Of The Target One.
Author: Anton
Latest version: 1.0.2

# @lemuria/absolute-proxy

[![npm version](https://badge.fury.io/js/%40lemuria%2Fabsolute-proxy.svg)](https://npmjs.org/package/@lemuria/absolute-proxy)

`@lemuria/absolute-proxy` Assigns Styles To Position Element Absolutely On Top Of The Target One.

```sh
yarn add @lemuria/absolute-proxy
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`absoluteProxy(obj: HTMLElement, element: HTMLElement)`](#absoluteproxyobj-htmlelementelement-htmlelement-void)
- [Copyright](#copyright)

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/0.svg?sanitize=true">
</a></p>

## API

The package is available by importing its default function:

```js
import absoluteProxy from '@lemuria/absolute-proxy'
```

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/1.svg?sanitize=true">
</a></p>

## <code><ins>absoluteProxy</ins>(</code><sub><br/>&nbsp;&nbsp;`obj: HTMLElement,`<br/>&nbsp;&nbsp;`element: HTMLElement,`<br/></sub><code>): <i>void</i></code>

Computes the `getBoundingClientRect` and `getComputedStyle` of the target element to find out the position that should be set on the **obj** for it to appear on the same place on screen, but with absolute position (e.g., relative to `body`).

Accounts for `padding` and `border`.

```js
import positionAbsolute from '@lemuria/absolute-proxy'

const obj = document.createElement('object')
obj.type = 'image/svg+xml'
obj.data = src

const element = document.getElementById('example')

positionAbsolute(obj, element)
window.addEventListener('resize', () => {
  positionAbsolute(obj, element)
})
```
<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/2.svg?sanitize=true">
</a></p>

## Copyright

<table>
  <tr>
    <th>
      <a href="https://artd.eco">
        <img width="100" src="https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png"
          alt="Art Deco">
      </a>
    </th>
    <th>© <a href="https://artd.eco">Art Deco</a>   2019</th>
    <th>
      <a href="https://www.technation.sucks" title="Tech Nation Visa">
        <img width="100" src="https://raw.githubusercontent.com/idiocc/cookies/master/wiki/arch4.jpg"
          alt="Tech Nation Visa">
      </a>
    </th>
    <th><a href="https://www.technation.sucks">Tech Nation Visa Sucks</a></th>
  </tr>
</table>

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/-1.svg?sanitize=true">
</a></p>
npm package: @lemuria/control-style
Description: Extracts CSS Properties From Component Properties Map And Returns The Composed Style.
Author: Anton
Latest version: 1.0.0

# @lemuria/control-style

[![npm version](https://badge.fury.io/js/%40lemuria%2Fcontrol-style.svg)](https://npmjs.org/package/@lemuria/control-style)

`@lemuria/control-style` is Extracts CSS Properties From Component Properties Map And Returns The Composed Style.

```sh
yarn add @lemuria/control-style
```

## Table Of Contents

- [Table Of Contents](#table-of-contents)
- [API](#api)
- [`controlStyle(style: string|undefined, props: Object<string, ?>)`](#controlstylestyle-stringundefinedprops-objectstring--void)
- [Copyright](#copyright)

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/0.svg?sanitize=true">
</a></p>

## API

The package is available by importing its default function:

```js
import controlStyle from '@lemuria/control-style'
```

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/1.svg?sanitize=true">
</a></p>

## <code><ins>controlStyle</ins>(</code><sub><br/>&nbsp;&nbsp;`style: string|undefined,`<br/>&nbsp;&nbsp;`props: Object<string, ?>,`<br/></sub><code>): <i>void</i></code>

Extracts CSS Properties From Component Properties Map And Returns The Composed Style. Returns the joined style as the string, or a hash with the style rules if no style was given. Deletes CSS properties from the passed `props` object.

```js
import controlStyle from '@lemuria/control-style'

const Component = ({ style, ...props }) => {
  return controlStyle(style, props)
}

// return as string
const res = Component({
  style: 'padding: 10px',
  margin: '1rem',
  'border-radius': '5px'
})
console.log(res)

// return as object
const res1 = Component({
  margin: '1rem',
  'border-radius': '5px',
})
console.log(res1)
```
```
margin:1rem;border-radius:5px;padding: 10px
{ margin: '1rem', 'border-radius': '5px' }
```

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/2.svg?sanitize=true">
</a></p>

## Copyright

(c) [Art Deco][1] 2019

[1]: https://artd.eco

<p align="center"><a href="#table-of-contents">
  <img src="/.documentary/section-breaks/-1.svg?sanitize=true">
</a></p>
npm package: @lemurweb/gatsby-theme-blog-prismic
Description: ``` yarn init ```
Latest version: 1.1.0

# A Gatsby theme based on prismic.io CMS for building a blazing fast, customizable blog.

```
yarn init
```

```
yarn add @lemurweb/gatsby-theme-blog-prismic gatsby react react-dom
```

## How to
Copy `config`,`static`,`gatsby-config.js.example`,`.env.example`,`.gitignore.example` from the theme folder to your root.

Edit the website and theme files inside `config` folder.
Shadow components if necessary.
npm package: @lena-codes/smartbanner-react
Description: React component library implementing the iOS specific smart banner for all platforms
Author: lena-codes
Latest version: 1.0.2

# smartbanner-react

> React component library implementing the iOS specific smart banner for all platforms

[![NPM](https://img.shields.io/npm/v/@lena-codes/smartbanner-react.svg)](https://www.npmjs.com/package/@lena-codes/smartbanner-react) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Light Theme
![light theme](https://github.com/lena-codes/smartbanner-react/blob/main/demo/src/resources/light.png?raw=true)

Dark Theme
![dark theme](https://github.com/lena-codes/smartbanner-react/blob/main/demo/src/resources/dark.png?raw=true)

## Install

```bash
npm install --save @lena-codes/smartbanner-react
```

or

```bash
yarn add @lena-codes/smartbanner-react
```

## Usage

```tsx
import { SmartBanner } from '@lena-codes/smartbanner-react'

<SmartBanner
  src='enter-your-icon-here.png'
  title='MyApp'
  author='lena.codes'
  description='GET - On the Play Store'
  buttonLink='https://lena.codes'
  buttonText='View'
  onClose={() => alert('pressed the close button!')}
/>
```

| Parameter | Type | Description |
| :--- | :--- | :--- |
| src | string | *required* Image source |
| title | string | *required* First line of text |
| author | string | *required* Second line of text |
| description | string | *required* Third line of text |
| buttonText | string | *required* Button text |
| buttonLink | string | *required* Button link |
| onClose | ( ) => void | *optional* Function implementing the close button; if not set button is *hidden* |
| theme | 'light' \| 'dark' | *optional* Predefined color theme, defaults to 'light' if not set |
| background | string | *optional* sets the background css value; overwrites theme value |
| closeIconColor | string | *optional* sets the close icon color; overwrites theme value |
| textColor | string | *optional* sets the text color; overwrites theme value |
| titleColor | string | *optional* sets the title color; overwrites theme value |
| buttonColor | string | *optional* sets the link button color; overwrites theme value |

## Check it out

### Build the project

```bash
npm run build
```

### Run demo locally

```bash
npm start
```

## License

MIT © [lena-codes](https://github.com/lena-codes)