open-index/open-npm huggingface dataset:
npm package: @phildenhoff/offloader
Description: Run retryable jobs on background threads. Backed by Postgres.
Author: Phil Denhoff
Latest version: 0.0.0

# Offloader 🧵🐝

> Run retryable jobs on background threads. Backed by Postgres.

Offloader allows you to schedule retryable jobs to execute using a pool of
background workers; avoid the performance hit of CPU intensive work or just
ensure that your jobs retry until they complete successfully.

## Getting Started

Add the `offloader` package to your project.

```sh
pnpm add offloader
```

You'll need to start up the worker pool, define your job executors,
and then use a `Scheduler` to add jobs to execute.

First, create the worker pool with a config.

```ts
import { initWorkerPool, createConfig } from "offloader";

const config = createConfig({
  queues: [],
  executors: [],
  postgresConn: {}
});

initWorkerPool(config);
```

Second, create your executors.

```ts
class EmailOnSignupExecutor implements IExecutor {
  // Implementation hidden
}
// (or)
// const EmailOnSignupExecutor: Executor = (...args) => { // snip };
```

Finally, create a Scheduler instance and begin scheduling jobs to execute.

```ts
import { Scheduler } from "offloader";

const scheduler = new Scheduler(config);

scheduler.enqueue(EmailOnSignupExecutor, {
  userId: 1234
});
```

## Concepts

- `Offloader` — this library.
- `Executor` — A function or class that can be used by a Worker to run a job
  with some parameters (defined when the job is enqueued).
- `Worker` — A background thread that runs `Executor`s when told to by a
  controller.
- `Controller` — Background thread that polls Postgres for jobs to run and tells
  `Workers` to execute `Executor`s with arguments when jobs are found. Controls
  queue concurrency.
npm package: @phildl_/kg-mobiledoc-html-renderer
Description: ## Install
Author: Ghost Foundation
Latest version: 5.1.6

# Koenig Mobiledoc Html Renderer

## Install

`npm install @tryghost/kg-mobiledoc-html-renderer --save`

or

`yarn add @tryghost/kg-mobiledoc-html-renderer`


## Usage


## Develop

This is a mono repository, managed with [lerna](https://lernajs.io/).

Follow the instructions for the top-level repo.
1. `git clone` this repo & `cd` into it as usual
2. Run `yarn` to install top-level dependencies.


## Run

- `yarn dev`


## Test

- `yarn lint` run just eslint
- `yarn test` run lint and tests




# Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the [MIT license](LICENSE).
npm package: @philgibbins/code-style
Description: Personal coding style configurations for editors/programming languages
Author: Phil Gibbins
Latest version: 0.0.4

# Code style

Here you can find preferred code style configurations for various programming languages and programs, e.g. editors.

## Usage

### Installation
To install, run `npm i -D @philgibbins/code-style`.

**Note** this package includes the packages it configures, e.g. `sass-lint` and `tslint`, however it does not include
`typescript` itself.

### File organisation
If you're looking at the files in this repo:
- files in the root folder are for the mechanics/maintenance of this project only
- files in sub-folders are to be used by the projects that import this package
- if a file is needed for both of the above, the original file should be in a sub-folder, and the root directory should
  contain a symlink to that file. An example of this is the .editorconfig file.
npm package: @philgs/sodium
Description: A simple binding to native authenticated encryption functions from libsodium
Author: Phil Gates-Shannon
Latest version: 2.0.0

# Sodium

This module provides a simple wrapper around the native authenticated encryption functions from [`sodium-encryption`][1] and thus [`libsodium`][2]. It does **not** work in the browser.

[1]: https://www.npmjs.com/package/sodium-encryption
[2]: https://download.libsodium.org/doc/secret-key_cryptography/authenticated_encryption.html