open-index/open-npm huggingface dataset:
npm package: @codewyre/rules
Description: ## Eslint
Latest version: 1.0.1

# Collection of linter rules used for codewyre projects

## Eslint

### Setup

JavaScript & TypeScript:
`yarn add eslint-config-airbnb@^19.0.4 eslint-plugin-import@^2.20.2 eslint@^8.5.0`

TypeScript :
`yarn add @typescript-eslint/eslint-plugin@^5.30.5 @typescript-eslint/parser@^5.32.0 eslint eslint-config-airbnb@^19.0.4 eslint-plugin-import@^2.20.2 eslint@^8.5.0`


### .eslintrc:

```js
// JS:
module.exports = {
  ...require('@codewyre/rules/javascript/eslint');
};

// TypeScript:
module.exports = {
  ...require('@codewyre/rules/typescript/eslint');
};
```

### Usage

TypeScript:

`eslint "src/**/*.ts" "src/**/*.tsx"`

JavaScript:

`eslint "src/**/*.js" "src/**/*.jsx"`
npm package: @codexteam/misprints
Description: Module for sendings misprints to Slack and Telegram
Author: CodeX
Latest version: 1.0.0

# codex.misprints
Module for sending misprints to Slack and Telegram

## Getting started

### Installation

#### npm or Yarn

```bash
npm install @codexteam/misprints
```

or

```bash
yarn add @codexteam/misprints
```

#### Download from CDN

```html
<script src="https://cdn.jsdelivr.net/npm/@codexteam/misprints"></script>
```

## Usage

### Initialization
```javascript
new Misprints({
    chatId: 'XXXXXXX'
});
```
Where `chatId` is chat's identifier where message will be sent.
Take a look on [Webhooks](https://github.com/codex-bot/Webhooks) to get it.
npm package: @codianz/singleton
Description: singleton with type.
Author: Terukazu Inoue
Latest version: 0.0.4

# singleton

Easy and fast Singleton class.

## usage

### original class

```ts
class X {
  public constructor() {}
  public value = "abc";
}
```

### hold a Singleton instance inside

```ts
class X {
  private constructor() {} /* make private */
  public value = "abc";

  /* add below */
  private static ston = new Singleton(() => new X());
  public static get Instance() { return X.ston.Instance; }
}

console.log(X.Instance.value); /* "abc" */
```

### create an instance of Singleton on the outside

```ts
class X {
  public constructor() {}
  public value = "abc";
}

const StonX = new Singleton(() => new X());
console.log(StonX.Instance.value); /* "abc" */
```

### use an anonymous class

```ts
const X = new Singleton(() => new class {
  public constructor() {}
  public value = "abc";
});
console.log(X.Instance.value); /* "abc" */
```

## performance

New implementation is about four times faster than the legacy implementation.
Also, legacy implementations cannot use generics and are inefficient.

### legacy implementations

```ts
class SingletonLegacy
{
  private static sInstance?: SingletonLegacy = undefined;
  public static get Instance() { 
    if(SingletonLegacy.sInstance) return SingletonLegacy.sInstance;
    SingletonLegacy.sInstance = new SingletonLegacy();
    return SingletonLegacy.sInstance; 
  }
  public value = 123;
}

const t0 = performance.now();
for(let i = 0; i < 100000000; i++){
  SingletonLegacy.Instance.value;
}
const t1 = performance.now();
console.log(`t0 ~ t1 : ${t1 - t0}ms`); /* 235ms */
```

### new implementations

```ts
const X = new Singleton(() => new class {
  public value = 123;
});

const t0 = performance.now();
for(let i = 0; i < 100000000; i++){
  X.Instance.value;
}
const t1 = performance.now();
console.log(`t0 ~ t1 : ${t1 - t0}ms`); /* 45ms */
```
npm package: @codice-progressio/express-brute-mongoose
Description: Mongoose store for express-brute.
Author: Chris Bargren
Latest version: 3.0.0

Mongoose store adapter for [express-brute](https://github.com/AdamPflug/express-brute).

>Version parcheada


[![NPM](https://nodei.co/npm/express-brute-mongoose.png?compact=true)](https://npmjs.org/package/express-brute-mongoose)

## Installation

```
yarn add express-brute-mongoose
```

## Usage

```javascript
const ExpressBrute = require("@codice-progressio/express-brute");
const MongooseStore = require("@codice-progressio/express-brute-mongoose");
const BruteForceSchema = require("@codice-progressio/express-brute-mongoose/dist/schema");
const mongoose = require("mongoose");

const model = mongoose.model(
  "bruteforce",
  new mongoose.Schema(BruteForceSchema)
);
const store = new MongooseStore(model);

const bruteforce = new ExpressBrute(store);

app.post(
  "/auth",
  bruteforce.prevent, // error 403 if we hit this route too often
  function(req, res, next) {
    res.send("Success!");
  }
);
```

## Defining your Mongoose Schema

You can either use the default schema provided at `express-brute-mongoose/dist/schema` or roll your own, as long as it matches the basic structural requirements of the schema as follows:

```javascript
{
  "_id": String,
  "data": {
    "count": Number,
    "lastRequest": Date,
    "firstRequest": Date
  },
  "expires": Date
}
```

The **default schema** included in the package includes a Mongo index on the `_id` field and another index that will automatically delete each entry 1 day after it has passed its `expires` time, in an effort to keep the collection clean.

## Development

Build the package with
`yarn compile`

Run tests with
`yarn test`

Run the linter with
`yarn lint`

## Running Tests

You should have mongo running on port `27017` before running tests. If you have docker-compose and docker installed, you can get mongo up and running by using the following command:

```bash
docker-compose up
```
npm package: @codin/cwc-picture
Description: Web component for displaying images
Author: Odin thomas Rochmann
Latest version: 0.3.9

# Picture element

> Simple web component for displaying images. Lazy loading on intersection and strategy for wrapping

see demo [Codin web components](https://github.com/odinr/codin/)

## example
```html
<cwc-picture cover>
 <source media="(min-width: 400px)" srcset="./high-res.jpg">
 <source srcset="./low-res.jpg">
</cwc-picture>
````
npm package: @codingame/monaco-languageclient
Description: Monaco Language client implementation
Author: TypeFox GmbH
Latest version: 0.17.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Monaco Language Client
[![Gitpod - Code Now](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?longCache=true)](https://gitpod.io#https://github.com/TypeFox/monaco-languageclient)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?longCache=true)](https://github.com/TypeFox/monaco-languageclient/labels/help%20wanted)
[![Build Status](https://travis-ci.org/TypeFox/monaco-languageclient.svg?branch=master)](https://travis-ci.org/TypeFox/monaco-languageclient)
[![NPM Version](https://img.shields.io/npm/v/monaco-languageclient.svg)](https://www.npmjs.com/package/monaco-languageclient)
[![NPM Download](https://img.shields.io/npm/dt/monaco-languageclient.svg)](https://www.npmjs.com/package/monaco-languageclient)

Module to connect [Monaco editor](https://microsoft.github.io/monaco-editor/) with [language servers](https://microsoft.github.io/language-server-protocol/).

See [here](https://github.com/TypeFox/monaco-languageclient/blob/master/README.md) for a detailed documentation.

## History

For the history please see the [main repository](https://github.com/TypeFox/monaco-languageclient/blob/master/CHANGELOG.md).

## License
[MIT](https://github.com/TypeFox/monaco-languageclient/blob/master/License.txt)
npm package: @codingame/monaco-vscode-08d1b4da-daf2-5f0d-8c50-ca6a6986c50f-common
Description: VSCode public API plugged on the monaco editor - common package (chat, explorer, interactive, notebook, outline, search, timeline, view-common, view-title-bar, views, workbench)
Author: CodinGame
Latest version: 22.1.9

ERROR: No README data found!
npm package: @codingame/monaco-vscode-09d6ed79-77bb-525d-bd17-ed2bf3adbb38-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, comments, edit-sessions, editor, explorer, extensions, interactive, multi-diff-editor, notebook, outline, output, preferences, scm, search, terminal, testing, timeline, user
Author: CodinGame
Latest version: 15.0.0

ERROR: No README data found!
npm package: @codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common
Description: VSCode public API plugged on the monaco editor - common package (base, bulk-edit, chat, comments, debug, edit-sessions, editor, explorer, extension-gallery, extensions, host, interactive, layout, markers, multi-diff-editor, notebook, outline, output, pref
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-18b21911-2b39-5976-87a4-ea863f4c4e0e-common
Description: VSCode public API plugged on the monaco editor - common package (chat, explorer, interactive, notebook, outline, timeline, view-common, view-title-bar, views, workbench)
Author: CodinGame
Latest version: 23.3.0

ERROR: No README data found!
npm package: @codingame/monaco-vscode-2b1a9082-790f-527f-b013-d1b29d6265a3-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, configuration, debug, extensions, interactive, keybindings, mcp, notebook, preferences, search, task, terminal, update, workspace-trust)
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-2bd6777a-3bff-5b83-ad25-0e029e81ffe9-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, dialogs, edit-sessions, explorer, extensions, interactive, multi-diff-editor, notebook, outline, preferences, quickaccess, search, terminal, timeline, view-common, view-stat
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-69cd7d65-4465-53e8-9718-bc4f6df50f7d-common
Description: VSCode public API plugged on the monaco editor - common package (chat, extensions, interactive, layout, notebook, scm, search, share, task, terminal, view-common, view-title-bar, views, workbench)
Author: CodinGame
Latest version: 18.4.0

ERROR: No README data found!
npm package: @codingame/monaco-vscode-78982ab1-8dc8-5de0-9139-e8865a161f5a-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, explorer, extensions, interactive, notebook, outline, search, terminal, timeline, view-common, view-title-bar, views, workbench)
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-7969284a-1a12-5148-9750-fcf9656a693f-common
Description: VSCode public API plugged on the monaco editor - common package (editor.api, chat, extensions, interactive, mcp, multi-diff-editor, notebook, scm, search, task)
Author: CodinGame
Latest version: 22.1.9

ERROR: No README data found!
npm package: @codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, extension-gallery, extensions, interactive, localization, notebook, remote-agent, search, telemetry, terminal, textmate, theme, treesitter, user-data-sync, view-common, walk
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-912ff6c1-e6aa-58cf-bd7f-50cf27bdb591-common
Description: VSCode public API plugged on the monaco editor - common package (base, chat, extension-gallery, interactive, localization, notebook, remote-agent, search, terminal)
Author: CodinGame
Latest version: 17.2.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common
Description: VSCode public API plugged on the monaco editor - common package (authentication, chat, comments, debug, edit-sessions, explorer, extension-gallery, layout, markers, mcp, multi-diff-editor, remote-agent, scm, testing, update, user-data-sync, view-common, v
Author: CodinGame
Latest version: 19.1.4

ERROR: No README data found!
npm package: @codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common
Description: VSCode public API plugged on the monaco editor - common package (authentication, chat, comments, debug, edit-sessions, explorer, extension-gallery, interactive, layout, markers, mcp, multi-diff-editor, notebook, remote-agent, scm, search, testing, update,
Author: CodinGame
Latest version: 21.6.0

ERROR: No README data found!
npm package: @codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, extensions, interactive, notebook, search, terminal)
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, explorer, extensions, interactive, notebook, search, terminal, view-common)
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingame/monaco-vscode-e7671ac2-ad6e-5d29-8b2e-8bc090939746-common
Description: VSCode public API plugged on the monaco editor - common package (chat, interactive, layout, mcp, notebook, scm, search, share, task, terminal, view-common, view-title-bar, views, workbench)
Author: CodinGame
Latest version: 19.1.4

ERROR: No README data found!
npm package: @codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common
Description: VSCode public API plugged on the monaco editor - common package (chat, configuration, debug, editor, explorer, extension-gallery, extensions, interactive, notebook, outline, performance, preferences, search, terminal, testing, timeline, view-common, walkt
Author: CodinGame
Latest version: 14.0.6

ERROR: No README data found!
npm package: @codingame/monaco-vscode-fc3b1755-9783-51f9-b3e6-45e7ef6fe6e3-common
Description: VSCode public API plugged on the monaco editor - common package (chat, explorer, extensions, interactive, notebook, outline, search, terminal, timeline, view-common, view-title-bar, views, workbench)
Author: CodinGame
Latest version: 18.4.0

ERROR: No README data found!
npm package: @codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common
Description: VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, edit-sessions, editor, explorer, extensions, interactive, multi-diff-editor, notebook, outline, output, preferences, scm, search, terminal, testing, timeline, user-data-prof
Author: CodinGame
Latest version: 16.1.1

ERROR: No README data found!
npm package: @codingarchitect/react-data-grid
Description: The grid core
Author: Adazzle
Latest version: 2.0.62

# react-data-grid

> The core of react-data-grid
 

## Install

```sh
npm install --save react-data-grid
```

## Usage 

```sh
import ReactDataGrid from 'react-data-grid';

const columns = [{ key: 'id', name: 'ID' }, { key: 'title', name: 'Title' }];
const rows = [{ id: 1, title: 'Title 1' }, ...];
const rowGetter = rowNumber => rows[rowNumber];

const Grid = () => {
  return <ReactDataGrid
    columns={columns}
    rowGetter={rowGetter}
    rowsCount={rows.length}
    minHeight={500} />);
}
```

## Exports
Asside from the grid this package exports:

name                   | source                                  |
-----------------------|-----------------------------------------|
RowComparer            | [RowComparer](./src/RowComparer.js)     |
RowsContainer          | [RowsContainer](./src/RowsContainer.js) |
Row                    | [Row](./src/Row.js)                     |
Cell                   | [Cell](./src/Cell.js)                   |
HeaderCell             | [HeaderCell](./src/HeaderCell.js)       |
editors                | [Editors](./src/editors)                |
formatters             | [Formatters](./src/formatters)          |
utils                  | [utils](./src/utils)                    |
shapes                 | [shapes](./src/PropTypeShapes)          |
_constants             | [_constants](./src/AppConstants.js)     |
_helpers               | [_helpers](./src/helpers)               |
npm package: @codingbycat/react-picture-viewer
Description: Made with create-react-library
Author: codingbycat
Latest version: 1.2.3

# react-picture-viewer

> Made with create-react-library

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

## Install

```bash
npm install --save @codingbycat/react-picture-viewer
```

## Usage

```tsx
import React from 'react'

import PictureViewer from 'react-picture-viewer'
import 'react-picture-viewer/dist/index.css'

function App() {
  return (
    <PictureViewer picture={{ alt: 'img1', src: 'imgURL'}} />
  )
}
```

## License

MIT © [codingbycat](https://github.com/codingbycat)
npm package: @codingfactory/page-builder
Description: AI-powered visual page builder with drag-drop layout system
Author: Amir Shawn
Latest version: 0.1.0-alpha.1

# @amirshawn/page-builder

AI-powered visual page builder for Vue 3 applications. Works with cms-core backend.

## Installation

```bash
npm install github:amirshawn/page-builder
```

## Quick Start

### Option 1: Full Page Builder App

```typescript
import { PageBuilderApp } from '@amirshawn/page-builder/app';
import '@amirshawn/page-builder/styles';
```

```vue
<template>
  <PageBuilderApp
    :config="config"
    :entry-id="entryId"
    :space-id="1"
    :csrf-token="csrfToken"
    @navigate="handleNavigate"
  />
</template>

<script setup lang="ts">
import { PageBuilderApp, type PageBuilderConfig } from '@amirshawn/page-builder/app';

const config: PageBuilderConfig = {
  apiBaseUrl: '/api/cms/v1/admin/page-builder',
  agentServiceUrl: 'http://localhost:3100',
  dashboardUrl: '/dashboard',
  editPageUrl: '/page-builder/:id',
};

function handleNavigate(url: string) {
  window.location.href = url;
}
</script>
```

### Option 2: Mount Function (Standalone)

```typescript
import { mountPageBuilder } from '@amirshawn/page-builder/app';
import '@amirshawn/page-builder/styles';

mountPageBuilder('#app', {
  config: {
    apiBaseUrl: '/api/cms/v1/admin/page-builder',
    agentServiceUrl: 'http://localhost:3100',
  },
  entryId: 1,
  spaceId: 1,
  csrfToken: document.querySelector('meta[name="csrf-token"]')?.content ?? '',
});
```

## Available Exports

```typescript
// Full app
import { PageBuilderApp, mountPageBuilder } from '@amirshawn/page-builder/app';

// Page selector only
import { PageSelector } from '@amirshawn/page-builder/page-selector';

// Individual components
import { ChatPanel, StructurePanel, PreviewContainer } from '@amirshawn/page-builder';

// Stores and composables
import { useSession, useAgent, usePageStore, useUIStore } from '@amirshawn/page-builder';

// Frontend rendering (public pages)
import { PageRenderer, BlockRenderer } from '@amirshawn/page-builder/frontend-kit';

// Styles
import '@amirshawn/page-builder/styles';
```

## Configuration

### PageBuilderConfig

| Property | Type | Description |
|----------|------|-------------|
| `apiBaseUrl` | `string` | Base URL for page builder API |
| `agentServiceUrl` | `string` | URL for AI agent service |
| `dashboardUrl` | `string?` | URL to navigate on exit |
| `editPageUrl` | `string?` | URL pattern for editing (use `:id` placeholder) |
| `contentType` | `string?` | Content type for new pages (default: `'page'`) |

## Requirements

- Vue 3.4+
- Pinia 2.1+
- cms-core backend with AI agent service running

## Development

```bash
npm install
npm run dev      # Development server
npm run build    # Build for production
npm test         # Run tests
```
npm package: @codingnomad/eslint-config-cn
Description: <!-- TOC -->
Author: Manuel Bachl | Coding Nomad
Latest version: 0.1.25

# @codingnomad/eslint-config-cn

<!-- TOC -->

- [@codingnomad/eslint-config-cn](#codingnomadeslint-config-cn)
  - [Changelog](#changelog)
  - [Important](#important)
  - [Usage](#usage)
    - [Installation](#installation)
    - [eslintrc.js](#eslintrcjs)
    - [commitlint.config.js](#commitlintconfigjs)
    - [prettier.config.js](#prettierconfigjs)
    - [stylelint.config.js](#stylelintconfigjs)
    - [tsconfig.json](#tsconfigjson)

<!-- /TOC -->

## Changelog

Here you can find the automatically generated [CHANGELOG.md](CHANGELOG.md).

## Important

Never touch the version tag in package.json manually!

## Usage

### Installation

```bash
yarn add @codingnomad/eslint-config-cn
```

### eslintrc.js

```js
module.exports = {
  extends: '@codingnomad/eslint-config-cn',
  rules: {
    ...
  },
};

```

### commitlint.config.js

```js
module.exports = {
  extends: ['@codingnomad/eslint-config-cn'],
};
```

### prettier.config.js

```js
module.exports = require('@codingnomad/eslint-config-cn/prettier.config');
```

### stylelint.config.js

```js
module.exports = {
  extends: ['@codingnomad/eslint-config-cn'],
};
```

### tsconfig.json

```json
TBD
```