open-index/open-npm huggingface dataset:
npm package: @duffcloudservices/cms-react
Description: React hooks and Vite plugins for DCS CMS integration
Author: Duff Cloud Services
Latest version: 0.1.1

# @duffcloudservices/cms-react

React hooks and Vite plugins for DCS CMS integration.

## Installation

```bash
pnpm add @duffcloudservices/cms-react
```

## Usage

### Vite Configuration

```typescript
// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { dcsContentPlugin, dcsSeoPlugin } from '@duffcloudservices/cms-react/plugins'

export default defineConfig({
  plugins: [
    react(),
    dcsContentPlugin(),
    dcsSeoPlugin(),
  ],
})
```

### Using Hooks in Components

```tsx
// src/pages/Home.tsx
import { useTextContent, useSEO } from '@duffcloudservices/cms-react'

export function Home() {
  const { t } = useTextContent({
    page: 'home',
    defaults: {
      'hero.title': 'Welcome',
      'hero.subtitle': 'Build amazing things',
    },
  })

  useSEO({ page: 'home' })

  return (
    <div>
      <h1>{t('hero.title')}</h1>
      <p>{t('hero.subtitle')}</p>
    </div>
  )
}
```

### DCS Configuration Files

Create `.dcs/content.yaml`:

```yaml
version: 1
global:
  nav.home: Home
  footer.copyright: © 2026 Company
pages:
  home:
    hero.title: Welcome to Our Site
    hero.subtitle: Build something amazing
```

Create `.dcs/seo.yaml`:

```yaml
version: 1
global:
  siteName: My Site
  defaultTitle: My Site
  titleTemplate: "%s | My Site"
pages:
  home:
    title: Welcome
    description: The homepage of My Site
```

## API

### useTextContent(options)

Hook for text content with build-time and runtime support.

**Options:**
- `page` (string, required): Page slug matching entry in content.yaml
- `defaults` (Record<string, string>): Default text values
- `runtime` (boolean): Enable runtime fetching (premium tier)
- `siteSlug` (string): Site slug for runtime API
- `apiBaseUrl` (string): API base URL

**Returns:**
- `t(key, fallback?)`: Get text by key
- `content`: All resolved content
- `isLoading`: Loading state
- `error`: Error message
- `refresh()`: Manually refresh content

### useSEO(options)

Hook for SEO meta tags.

**Options:**
- `page` (string, required): Page slug
- `overrides`: Override title, description, or image

**Returns:**
- `seo`: Resolved SEO configuration

## License

MIT
npm package: @dune-network/expect
Description: Simple module for ensuring specific options are passed to a function
Author: Tim Coulter
Latest version: 0.1.0-dune.1

# @dune-network/expect
Simple module for ensuring expected parameters exist

### install

```
$ npm install @dune-network/expect
```

### Usage

```javascript
const expect = require("@dune-network/expect");

// the object you're testing
const options = {
  example: "exists",
  another: 5
};

expect.options(options, ["example", "another"]); // does nothing because both key values exist
expect.options(options, ["example", "another", "some_other_key"]); // errors because options["some_other_key"] is undefined

expect.one(options, ["example", "optional_key"]); // does nothing because at least one key value exists
expect.one(options, ["optional_key", "other_optional_key"]); // errors because both key values are undefined
```
npm package: @dune-network/taquito
Description: High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.
Author: Simon Boissonneault-Robert
Latest version: 6.2.1-beta.3

[![pkgsign status](https://us-central1-pkgsign.cloudfunctions.net/pkgsign-badge?name=@dune-network/taquito&expectedIdentity=%40jevonearth)](https://github.com/RedpointGames/pkgsign)

# Taquito high level functions

The `@dune-network/taquito` package contains higher level functionality that builds upon the other packages in the Tezos Typescript Library Suite.

## CDN Bundle

```html
<script src="https://unpkg.com/@dune-network/taquito@6.2.1-beta.0/dist/taquito.min.js"
crossorigin="anonymous" integrity="sha384-ghFEyy5gbxtBTHIY+3uk31xbBjG/Im5UN3E1go5lZ4NfCG3DjXQ32USzwGBKL5LR"></script>
```

## API Documentation

TypeDoc style documentation is available on-line [here](https://tezostaquito.io/typedoc/modules/_taquito_taquito.html)

See the top-level [https://github.com/ecadlabs/taquito](https://github.com/ecadlabs/taquito) file for details on reporting issues, contributing and versioning.

## Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
npm package: @duongtdn/react-terminal
Description: A customizable and interactive React terminal component for your web applications. It  adds a terminal-like interface, enabling interactive commands and rich text formatting in your projects.
Author: duongtdn
Latest version: 1.2.0

# React Terminal - @duongtdn/react-terminal

A customizable and interactive React terminal component for your web applications. It  adds a terminal-like interface, enabling interactive commands and rich text formatting in your projects.

## Installation

```bash
npm install @duongtdn/react-terminal --save
```

## Basic Usage

1. Import the `Terminal` component and other necessary dependencies:

```javascript
import Terminal, { decorate } from '@duongtdn/react-terminal';
```

2. Decorate the `Terminal` component with `StyleFactory`:

```javascript
import StyleFactory from '@duongtdn/style-factory';
const StyleTerminal = decorate(Terminal).with(new StyleFactory());
```

## Example

Here's a basic example of how to use:

```javascript
import React, { useState } from 'react';
import Terminal, { decorate } from '@duongtdn/react-terminal';
import StyleFactory from '@duongtdn/style-factory';

const styleFactory = new StyleFactory();
styleFactory.useStyle(/Terminal/i, { color: 'red' } );

const StyleTerminal = decorate(Terminal).with(styleFactory);

const Demo = () => {
  const [content, setContent] = useState('');

  const onPrompt = (msg) => setContent(content => content + msg + '\n');

  return (
    <div>
      <div style={{ height: '200px', width: '100%', background: '#313131', color: '#fff' }}>
        <StyleTerminal
          height="200px"
          content={content}
          fontFamily="Consolas"
          interactive={true}
          onPrompt={onPrompt}
        />
      </div>
    </div>
  );
}
```

## Contributing

Contributions are welcome! If you have ideas, suggestions, or bug reports, please open an issue or submit a pull request.

## License

This project is licensed under the [MIT License](LICENSE).
npm package: @durka/down
Description: 文件下载，主要专注视频下载
Author: Mora
Latest version: 1.0.1

# @durka/download

文件下载，主要专注视频下载

> 参考 aria2 项目，以及在 aria2 基础上封装的一个 electron 项目 Motrix
>
> aria2:      https://github.com/aria2/aria2
> Motrix:     https://github.com/agalwood/Motrix
> youtube-dl: https://github.com/ytdl-org/youtube-dl/
> curl:       https://reqbin.com/req/c-egazzayq/curl-download-file    curl --limit-rate 100k -O [URL]

```协议不同，下载方式不同
    protocol = info_dict['protocol']
    if protocol.startswith('m3u8') and info_dict.get('is_live'):
        return FFmpegFD

    if protocol == 'm3u8' and params.get('hls_prefer_native') is True:
        return HlsFD

    if protocol == 'm3u8_native' and params.get('hls_prefer_native') is False:
        return FFmpegFD

    return PROTOCOL_MAP.get(protocol, HttpFD)
```

```slowdown
    def slow_down(self, start_time, now, byte_counter):
        """Sleep if the download speed is over the rate limit."""
        rate_limit = self.params.get('ratelimit')
        if rate_limit is None or byte_counter == 0:
            return
        if now is None:
            now = time.time()
        elapsed = now - start_time
        if elapsed <= 0.0:
            return
        speed = float(byte_counter) / elapsed
        if speed > rate_limit:
            sleep_time = float(byte_counter) / rate_limit - elapsed
            if sleep_time > 0:
                time.sleep(sleep_time)
```



* [ ] 指定 proxy 的 http header
* [ ] 断点续传进度显示不准确
* [ ] 断点续传应该检查下已经下载的文件和要下载的文件是不是同一个（尺寸大小，链接是否一致等等）
* [ ] 下载过程记录耗时
* [ ] 单任务失败后需要支持重试（分片下载时有可能出现错误“”导致整个任务结束）
* [ ] m3u8 中的 ts 文件如果加密了要支持解密 https://juejin.cn/post/6887575078293372942#heading-0   https://github.com/Momo707577045/m3u8-downloader


* 需要指定 referer 才能生效的 m3u8 文件（内部已经默认注入）
  https://v9.xszav.net/hls/xszavavs/media/videos/h264/118886_SD.mp4/index.m3u8

* 重定向且加密的 m3u8 文件
  http://video.yjf138.com/20180812/6yl0Q2YZ/index.m3u8
  http://video.yjf138.com/20180812/6yl0Q2YZ/1500kb/hls/index.m3u8


## Installation



## Usage



<!--
## Roadmap

If you have ideas for releases in the future, it is a good idea to list them in the README.
-->

## Changelog

[Changelog](./CHANGELOG.md)


## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.


## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @durka/example-vscode-extension
Description: example for durka
Latest version: 0.0.6

# {{projectName}}

{{projectDescription}}

## Features

Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.

For example if there is an image subfolder under your extension project workspace:

\!\[feature X\]\(images/feature-x.png\)

> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.

## Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

## Extension Settings

* `myExtension.enable`: enable/disable this extension
* `myExtension.thing`: set to `blah` to do something

## Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.


------------------------------------------------------------------------------

## Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)
npm package: @duroom/prettier-config
Description: DuRoom's configuration for the Prettier code formatter.
Author: NKDuy
Latest version: 1.0.0

# DuRoom Prettier Config

DuRoom's official configuration for the Prettier code formatter.

For more info about shared Prettier configurations, [check out the Prettier documentation](https://prettier.io/docs/en/configuration.html#sharing-configurations).

## Usage

1. Install `@duroom/prettier-config` as a dev dependency:

```
npm i -D @duroom/prettier-config
yarn add -D @duroom/prettier-config
```

2. Add the `prettier` key to your `package.json`:

```jsonc
// package.json
{
  "name": "my-cool-package",
  "version": "1.0.0",
  "prettier": "@duroom/prettier-config",
  // ...
}
```

## Extending

You can extend our config with your own custom options, too. Import our config, then spread its require in a `.prettierrc.js` file.

> :warning: Make sure your `package.json` doesn't have the `prettier` key.

```js
// .prettierrc.js
module.exports = {
  ...require("@duroom/prettier-config"),
  semi: false,
};
```
npm package: @dussan/bb-model
Description: Automate model tasks
Author: Dusan Milanovic
Latest version: 0.2.0

# bb-model

Automate model tasks

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@dussan/bb-model.svg)](https://npmjs.org/package/@dussan/bb-model)
[![Downloads/week](https://img.shields.io/npm/dw/@dussan/bb-model.svg)](https://npmjs.org/package/@dussan/bb-model)
[![License](https://img.shields.io/npm/l/@dussan/bb-model.svg)](https://github.com/milanovic-dusan/bb-model/blob/master/package.json)

<!-- toc -->
* [bb-model](#bb-model)
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->
```sh-session
$ npm install -g @dussan/bb-model
$ bb-model COMMAND
running command...
$ bb-model (-v|--version|version)
@dussan/bb-model/0.2.0 darwin-x64 node-v10.17.0
$ bb-model --help [COMMAND]
USAGE
  $ bb-model COMMAND
...
```
<!-- usagestop -->

# Commands

<!-- commands -->
* [`bb-model help [COMMAND]`](#bb-model-help-command)
* [`bb-model sync`](#bb-model-sync)

## `bb-model help [COMMAND]`

display help for bb-model

```
USAGE
  $ bb-model help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.3/src/commands/help.ts)_

## `bb-model sync`

Syncronizes remote model with local.

```
USAGE
  $ bb-model sync

OPTIONS
  --out-file=out-file                  [default: app-model]
  --portal-auth-path=portal-auth-path  [default: gateway/api/auth/login]
  --portal-context=portal-context      [default: gateway/api]
  --portal-host=portal-host            [default: localhost]
  --portal-name=portal-name            [default: retail-banking-demo-wc3]
  --portal-page-name=portal-page-name  [default: index]
  --portal-password=portal-password    [default: admin]
  --portal-port=portal-port            [default: 8080]
  --portal-protocol=(http|https)       [default: http]
  --portal-username=portal-username    [default: admin]

DESCRIPTION
  ...
  Produces 'app-model.json'.
  Supports .bbconfig file in the current working directory

EXAMPLE
  $ bb-model sync --portal-name=<experience-name>
     ✔ Reading configuration
     ✔ Authenticating
     ✔ Processing model
```

_See code: [src/commands/sync.ts](https://github.com/milanovic-dusan/bb-model/blob/v0.2.0/src/commands/sync.ts)_
<!-- commandsstop -->