# @extplug/room-settings

> The ExtPlug room settings server.

Latest version **1.2.0** (published 2017-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @extplug/room-settings
pnpm add @extplug/room-settings
yarn add @extplug/room-settings
bun add @extplug/room-settings
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-05-18 |
| First published | 2017-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Renée Kooi |
| Maintainers | extplug, goto-bus-stop |

## Links

- npm: https://www.npmjs.com/package/@extplug/room-settings
- npm.io page: https://npm.io/package/@extplug/room-settings

## Dependencies (11)

- [micro](https://npm.io/package/micro.md) ^7.1.0
- [gh-got](https://npm.io/package/gh-got.md) ^5.0.0
- [cssnano](https://npm.io/package/cssnano.md) ^3.10.0
- [postcss](https://npm.io/package/postcss.md) ^6.0.1
- [miniplug](https://npm.io/package/miniplug.md) ^1.5.0
- [raw-body](https://npm.io/package/raw-body.md) ^2.2.0
- [await-lock](https://npm.io/package/await-lock.md) ^1.1.2
- [postcss-cssnext](https://npm.io/package/postcss-cssnext.md) ^2.9.0
- [plug-auth-server](https://npm.io/package/plug-auth-server.md) ^1.1.0
- [postcss-safe-parser](https://npm.io/package/postcss-safe-parser.md) ^3.0.0
- [json-stringify-pretty-compact](https://npm.io/package/json-stringify-pretty-compact.md) ^1.0.2

## Recent versions

- 1.2.0 (latest) — 2017-05-18
- 1.1.0 — 2017-03-11
- 1.0.0 — 2017-03-09

## README

# @extplug/room-settings

HTTP interface to the ExtPlug Room Settings repository.

## How It Works

First `@extplug/room-settings` uses [plug-auth-server][] to authenticate users to the server.
Then, it checks that users are actually cohosts or hosts in the rooms they are trying to change, by joining the room using [miniplug][].
Finally, the room settings are updated in the [FAERSS (Fully Automated ExtPlug Room Settings Storage)][faerss] using the Github web API.

## API

### `GET /:room`, `GET /:room.json`

Return the room settings JSON for a room.

### `GET /:room.css`

Return the custom styles for a room.

### `GET /:room/history`

Return a JSON array containing the recent changes to the room settings and styles.

Example response:

```js
[
  {
    // Commit SHA
    id: "b526bf6a701a8196669153f1389df788efa873ce",
    // Commit message
    message: "[extplug] Update room settings.\n\nhttps://plug.dj/extplug",
    // plug.dj user ID of the committer
    user: 4393540,
    // timestamp of the change
    time: 1489516848000
  }
]
```

## License

[MIT](../LICENSE)

[plug-auth-server]: https://github.com/goto-bus-stop/plug-auth/tree/master/packages/plug-auth-server
[miniplug]: https://github.com/goto-bus-stop/miniplug
[faerss]: https://github.com/extplug/faerss

---
_Source: https://npm.io/package/@extplug/room-settings · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
