open-index/open-npm huggingface dataset:
npm package: @ponomarevlad/dev-server
Description: Dev server for web applications
Author: modern-web
Latest version: 0.1.31

# Web Dev Server

Dev Server for web applications, ideal for buildless es module workflows. Optionally supports simple code transformations.

- Efficient browser caching for fast reloads
- Transform code on older browsers for compatibility
- Resolve bare module imports for use in the browser (--node-resolve)
- Auto-reload on file changes with the (--watch)
- History API fallback for SPA routing (--app-index index.html)
- Plugin and middleware API for extensions
- Powered by [esbuild](/docs/dev-server/plugins/esbuild.md) and [rollup plugins](/docs/dev-server/plugins/rollup.md)

> Web Dev server is the successor of [es-dev-server](https://www.npmjs.com/package/es-dev-server)

See [our website](https://modern-web.dev/docs/dev-server/overview/) for full documentation.

## Installation

Install the dev server:

```
npm i --save-dev @web/dev-server
```

## Basic commands

Start the dev server:

```
web-dev-server --node-resolve --open
wds --node-resolve --open
```

Run in watch mode, reloading on file changes:

```
web-dev-server --node-resolve --watch --open
wds --node-resolve --watch --open
```

Use history API fallback for SPA routing:

```
web-dev-server --node-resolve --app-index demo/index.html --open
wds --node-resolve --app-index demo/index.html --open
```

Transform JS to a compatible syntax based on user agent:

```
web-dev-server --node-resolve --open --esbuild-target auto
wds --node-resolve --open --esbuild-target auto
```

## Example projects

Check out the <a href="https://github.com/modernweb-dev/example-projects" target="_blank" rel="noopener noreferrer">example projects</a> for a fully integrated setup.

## Documentation

See [our website](https://modern-web.dev/docs/dev-server/overview/) for full documentation.
npm package: @ponomarevlad/dev-server-storybook
Description: Dev server plugin for using storybook with es modules.
Author: modern-web
Latest version: 0.5.1

# Dev Server Storybook

Plugin to use [storybook](https://github.com/storybookjs/storybook) with Web Dev Server.

See [our website](https://modern-web.dev/docs/dev-server/plugins/storybook/) for full documentation.
npm package: @ponomarevlad/grammyjs-conversations
Description: Conversational interfaces for grammY
Author: KnorpelSenf
Latest version: 1.1.2-web.1

# <h1 align="center">grammY Conversations</h1>

---

The grammY conversations plugin lets you create powerful conversational interfaces with ease.

Here is a quickstart for you, but the real docs are on this page: <https://grammy.dev/plugins/conversations>

## Quickstart

Run `npm i grammy @grammyjs/conversations` and paste the following code:

```ts
import { Bot, type Context, session } from "grammy";
import {
    type Conversation,
    type ConversationFlavor,
    conversations,
    createConversation,
} from "@grammyjs/conversations";

type MyContext = Context & ConversationFlavor;
type MyConversation = Conversation<MyContext>;

const bot = new Bot<MyContext>("");

/** Defines the conversation */
async function greeting(conversation: MyConversation, ctx: MyContext) {
    await ctx.reply("Hi there! What is your name?");
    const { message } = await conversation.wait();
    await ctx.reply(`Welcome to the chat, ${message.text}!`);
}

bot.use(session({ initial: () => ({}) }));
bot.use(conversations());

bot.use(createConversation(greeting));

bot.command("enter", async (ctx) => {
    await ctx.reply("Entering conversation!");
    // enter the function "greeting" you declared
    await ctx.conversation.enter("greeting");
});

bot.command("start", (ctx) => ctx.reply("Hi! Send /enter"));
bot.use((ctx) => ctx.reply("What a nice update."));

bot.start();
```

Nifty!
npm package: @ponomarevlad/local-storage-polyfill
Description: The "localStorage" polyfill for Node.js.
Author: Artem Zakharchenko
Latest version: 0.1.0-module.4

# Local Storage Polyfill

The "localStorage" polyfill for Node.js.

## Polyfill

```js
// jest.setup.js
import '@mswjs/local-storage-polyfill/global'
```

## Node.js

```js
import { Storage } from '@mswjs/local-storage-polyfill'

const storage = new Storage()
storage.setItem('name', 'John')
```
npm package: @ponomarevlad/marked
Description: A markdown parser built for speed
Author: Christopher Jeffrey
Latest version: 4.3.0-build.1

<a href="https://marked.js.org">
  <img width="60px" height="60px" src="https://marked.js.org/img/logo-black.svg" align="right" />
</a>

# Marked

[![npm](https://badgen.net/npm/v/marked)](https://www.npmjs.com/package/marked)
[![gzip size](https://badgen.net/badgesize/gzip/https://cdn.jsdelivr.net/npm/marked/marked.min.js)](https://cdn.jsdelivr.net/npm/marked/marked.min.js)
[![install size](https://badgen.net/packagephobia/install/marked)](https://packagephobia.now.sh/result?p=marked)
[![downloads](https://badgen.net/npm/dt/marked)](https://www.npmjs.com/package/marked)
[![github actions](https://github.com/markedjs/marked/workflows/Tests/badge.svg)](https://github.com/markedjs/marked/actions)
[![snyk](https://snyk.io/test/npm/marked/badge.svg)](https://snyk.io/test/npm/marked)

- ⚡ built for speed
- ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time
- ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications
- 🌐 works in a browser, on a server, or from a command line interface (CLI)

## Demo

Checkout the [demo page](https://marked.js.org/demo/) to see marked in action ⛹️

## Docs

Our [documentation pages](https://marked.js.org) are also rendered using marked 💯

Also read about:

* [Options](https://marked.js.org/#/USING_ADVANCED.md)
* [Extensibility](https://marked.js.org/#/USING_PRO.md)

## Compatibility

**Node.js:** Only [current and LTS](https://nodejs.org/en/about/releases/) Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time.

**Browser:** Not IE11 :)

## Installation

**CLI:** 

```sh 
npm install -g marked
```

**In-browser:** 

```sh
npm install marked
npm install @types/marked # For TypeScript projects
```

## Usage

### Warning: 🚨 Marked does not [sanitize](https://marked.js.org/#/USING_ADVANCED.md#options) the output HTML. Please use a sanitize library, like [DOMPurify](https://github.com/cure53/DOMPurify) (recommended), [sanitize-html](https://github.com/apostrophecms/sanitize-html) or [insane](https://github.com/bevacqua/insane) on the *output* HTML! 🚨

```
DOMPurify.sanitize(marked.parse(`<img src="x" onerror="alert('not happening')">`));
```

**CLI**

``` bash
# Example with stdin input
$ marked -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>
```

```bash
# Print all options
$ marked --help
```

**Browser**

```html
<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
</head>
<body>
  <div id="content"></div>
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked.parse('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>
```

## License

Copyright (c) 2011-2022, Christopher Jeffrey. (MIT License)
npm package: @ponomarevlad/mongo-fetch
Description: Fetch-based Mongo Client for the Edge (Including Cloudflare Workers, Vercel Edge Functions, Deno, etc), the Browser, or Node that is API Compatible with the official `mongodb` NodeJS driver, and can hit the official Mongo Atlas Data API, or the the [Mongo
Author: Connor Vince
Latest version: 1.5.0-custom.3

# Mongo Fetch Client - Data API driver

This client is a HTTP adapter for the Data API, allowing you to access data as if you were connecting to a MongoDB database directly. While it is not a full replacement for the MongoDB driver, it does provide a way to access MongoDB from a browser or edge-computing service like Cloudflare Workers.

## Usage

```js
import { MongoFetchClient } from 'mongo-fetch'

const client = new MongoFetchClient(
  'clusterName', // The cluster name in our self-hosted Data API, otherwise this is the dataSource.
  {
    url: 'https://data-api.example.com',
    apiKey: 'secret' // API key for authenticating with the API
  }
)

const documents = await client
  .db('database')
  .collection('collection')
  .find({ name: 'John' })
  .limit(2)
  .sort({ age: -1 })
  .project({ name: 1, age: 1 })
  .toArray()
```

## Documentation
Since this driver is a close match for the MongoDB driver, you can use the official MongoDB documentation for reference. The only difference is that you will need to use the `MongoFetchClient` class instead of the `MongoClient` class. You can find the [documentation here](https://mongodb.github.io/node-mongodb-native/5.1/classes/Collection.html).

Heres a list of operations that are supported:
- find
- findOne
- insertOne
- insertMany
- updateOne
- updateMany
- deleteOne
- deleteMany
- aggregate

## Notice
This driver is not 100% compatible with the MongoDB driver. As of right now, this driver only supports basic CRUD, aggregation, and index operations. It does not support transactions, change streams, or other advanced features. As our self-hosted Data API grows, we will add further features to this driver.