open-index/open-npm huggingface dataset:
npm package: @senseauto/pkg-react-ui
Description: 组件功能描述
Latest version: 0.0.1-beta.1

# senseauto-pkg-react-ui

组件功能描述

## Install

```bash
$ npm i senseauto-pkg-react-ui --save
```

## Usage

```jsx
import SenseautoPkgReactUi from 'senseauto-pkg-react-ui';
```
npm package: @sensebox/eslint-config-sensebox
Description: Use this package for consistent linting and formatting throughout all senseBox projects.
Latest version: 1.1.1

# @sensebox/eslint-config-senseBox

Use this package for consistent linting and formatting throughout all senseBox projects.

## Usage

Install the following packages:

Yarn

    yarn add --tilde --dev @sensebox/eslint-config-sensebox eslint@8.6.0

NPM

    npm install --save-dev @sensebox/eslint-config-sensebox eslint@8.6.0

Add a `.eslintrc.js` to your project where you specify this package in the `extends` key

    module.exports = {
      extends: ['@sensebox/eslint-config-sensebox']
    };

Add a `lint` script to your `package.json`

    {
      ...
      "scripts": {
        ...
        "lint": "eslint --fix \"{src,test,.scripts,whatever}/**/*.js\""
      }
    }

Run `yarn lint` or `npm run lint`
npm package: @sensebox/opensensemap-api-models
Description: openSenseMap data models and database connection
Latest version: 3.3.2

# @sensebox/opensensemap-api-models
Data models and database connection for openSenseMap

[![NPM Version](https://img.shields.io/npm/v/@sensebox/opensensemap-api-models.svg)](https://www.npmjs.com/package/@sensebox/opensensemap-api-models)

## `require()` openSenseMap API models

Install it as dependency: `npm install --save @sensebox/opensensemap-api-models` or `yarn add @sensebox/opensensemap-api-models`

This allows you to use parts like models and decoding in your own project. See `index.js`.

## Configuration

The package uses [lorenwest/node-config](https://github.com/lorenwest/node-config). The available configuration keys can be found in the [`index.js`](index.js) file. If you need an example for configuring the package, take a look at the [`docker-compose.yml`](../../tests/docker-compose.yml) file of the api tests.

## Changelog

See [`CHANGELOG.md`](CHANGELOG.md)

#### Releasing a new version
1. Document your changes in [`CHANGELOG.md`](CHANGELOG.md). Do not `git add` the file.
1. Run `yarn version`
1. `git push --tags origin master`
1. `npm publish`
1. Use the new version in the api package

## License

[MIT](license.md) - Matthias Pfeil 2015 - now

Maintained by Gerald Pape
npm package: @sensebox/opensensemap-i18n
Description: Messages and its translations used by openSenseMap and openSenseMap-API
Latest version: 4.3.7

<h1 align="center" style="border-bottom: none;">openSenseMap-i18n</h1>
<p align="center">
  <a href="https://www.npmjs.com/package/@sensebox/opensensemap-i18n">
    <img alt="npm latest version" src="https://img.shields.io/npm/v/@sensebox/opensensemap-i18n/latest.svg">
  </a>
</p>

Messages and translations used in [openSenseMap frontend](https://github.com/sensebox/openSenseMap).

## Structure of `translations`

- all translations are located inside the `src/` folder.
- schema.json // defines and contains all required keys
- rest of translations are seperated into single folders ordered by `components`

## Contribution

For a detailed contribution guideline have a look at [CONTIRBUTING](.github/CONTRIBUTING.md).

## License

MIT 2017
npm package: @sensebox/osem-protos
Description: proto files for gRPC communication
Author: Gerald Pape
Latest version: 1.1.0

# openSenseMap proto files and generated gRPC code

The main idea of this repository is to use it as central place for `.proto` files and maybe the generated gRPC code which can be imported as dependency in other projects.

New versions are released automatically using [semantic-release](https://github.com/semantic-release/semantic-release)
npm package: @sensecall/das-frontend-test
Description: DAS Frontend Test.
Latest version: 0.0.43-alpha

# Apprenticeship service Frontend

DAS Frontend contains the code you need to start building user interfaces for Apprenticeship service government services.

See live examples of DAS Frontend components, and guidance on when to use them in your service, in the [DAS Design System](https://moj-design-system.herokuapp.com/).

## Contact the team

DAS Frontend is maintained by the DAS Design System team. If you need support email the [Design System team](mailto:design-system@digital.justice.gov.uk).

## Quick start

We recommend [installing DAS Frontend using node package manager (npm)](docs/installation/installing-with-npm.md).

Once installed, you will be able to use the code from the examples in the [DAS Design System](https://moj-design-system.herokuapp.com/) in your service.

## Browser support

DAS Frontend will allow you to build services that comply with the [guidance in the Service Manual][service-manual-browsers].

If you are including DAS Frontend as part of a stylesheet that you are generating in your application's build pipeline, you will need to [generate and
include a separate stylesheet in order to support Internet Explorer 8](docs/installation/supporting-internet-explorer-8.md).

[service-manual-browsers]: https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices#browsers-to-test-in

## Assistive technology support

DAS Frontend will allow you to build services that comply with the [guidance in the Service Manual][service-manual-assistive-technologies].

In addition, we test that all content is accessible with keyboard only.

We aim to support [users who adjust or override the colours of websites they visit][how-users-change-colours-on-websites]. We test this by [changing colours in Firefox][changing-colours-in-firefox], by [enabling 'High Contrast' mode in Windows][enabling-high-contrast-mode-in-windows] and by using the [High Contrast plugin for Chrome][high-contrast-plugin-for-chrome].

[service-manual-assistive-technologies]: https://www.gov.uk/service-manual/technology/testing-with-assistive-technologies#what-to-test

[changing-colours-in-firefox]:
https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use

[enabling-high-contrast-mode-in-windows]:
https://support.microsoft.com/en-gb/help/13862/windows-use-high-contrast-mode

[high-contrast-plugin-for-chrome]: https://chrome.google.com/webstore/detail/high-contrast/djcfdncoelnlbldjfhinnjlhdjlikmph?hl=en-US

[how-users-change-colours-on-websites]:
https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites/

## Contribution guidelines

If you want to help us build DAS Frontend, view our [contribution guidelines](CONTRIBUTING.md).

### Further reading

- [Component principles](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_principles.md)
- [Component conventions](https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_conventions.md)
npm package: @sensecall/govuk-rewrite
Description: Core engine for GOV.UK rewrite tooling
Author: Dan Sensecall
Latest version: 1.1.1

# @sensecall/govuk-rewrite

Composable rewrite engine for GOV.UK-style content. Provider-agnostic — works with OpenAI, Anthropic, and OpenRouter.

## Install

```bash
npm install @sensecall/govuk-rewrite
```

## Usage

```ts
import { rewrite } from "@sensecall/govuk-rewrite";

const result = await rewrite(
  {
    text: "Please kindly submit your application by Friday.",
    explain: true,
    mode: "page-body",
  },
  {
    provider: "openai",
    apiKey: process.env.OPENAI_API_KEY,
    model: "gpt-4.1-mini",
    timeoutMs: 30000,
  }
);

console.log(result.rewrittenText);
// "Submit your application by Friday."

console.log(result.explanation);
// ["Removed 'please kindly' — unnecessary filler", ...]
```

## API

### `rewrite(input, config)`

```ts
rewrite(input: RewriteInput, config: ProviderConfig): Promise<RewriteResult>
```

**`RewriteInput`**

| Field | Type | Required | Description |
|---|---|---|---|
| `text` | `string` | yes | Text to rewrite |
| `mode` | `ContentMode` | no | Content type hint (default: `"page-body"`) |
| `explain` | `boolean` | no | Include explanation bullets |
| `check` | `boolean` | no | Check mode — returns issues rather than rewriting |
| `context` | `string` | no | Additional context for the rewrite |

**`ProviderConfig`**

| Field | Type | Required | Description |
|---|---|---|---|
| `provider` | `"openai" \| "anthropic" \| "openrouter"` | yes | Provider to use |
| `apiKey` | `string` | yes | API key |
| `model` | `string` | yes | Model name |
| `timeoutMs` | `number` | no | Request timeout (default: 30000) |
| `baseUrl` | `string` | no | Override base URL (compatible gateways) |

**`RewriteResult`**

| Field | Type | Description |
|---|---|---|
| `rewrittenText` | `string` | Rewritten text |
| `explanation` | `string[]` | Explanation bullets (when `explain: true`) |
| `issues` | `string[]` | Issues found (when `check: true`) |
| `usage` | `{ inputTokens: number, outputTokens: number }` | Token usage |

### Content modes

| Value | Use for |
|---|---|
| `page-body` | Body copy, paragraphs |
| `error-message` | Form validation errors |
| `hint-text` | Field hints |
| `notification` | Banner and alert text |
| `button` | Button labels |

## Providers

Set the relevant environment variable before calling `rewrite`:

```bash
export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-...
export OPENROUTER_API_KEY=sk-or-...
```

## CLI

If you want a command-line interface rather than the library, install [`@sensecall/govuk-rewrite-cli`](https://www.npmjs.com/package/@sensecall/govuk-rewrite-cli) instead.

## Repository

[github.com/sensecall/govuk-rewrite](https://github.com/sensecall/govuk-rewrite)