# art-express-server

> Extensible, Promise-based HTTP Server based on Express

Latest version **1.6.2** (published 2024-07-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install art-express-server
pnpm add art-express-server
yarn add art-express-server
bun add art-express-server
```

## 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.6.2 |
| Published | 2024-07-01 |
| First published | 2019-08-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 42.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shane Brinkman-Davis Delamore, Imikimi LLC |

## Links

- npm: https://www.npmjs.com/package/art-express-server
- Repository: https://github.com/art-suite/art-suite-applications
- Issues: https://github.com/art-suite/art-suite-applications/issues
- npm.io page: https://npm.io/package/art-express-server

## Dependencies (5)

- [throng](https://npm.io/package/throng.md) ^5.0.0
- [express](https://npm.io/package/express.md) ^4.17.1
- [compression](https://npm.io/package/compression.md) ^1.7.2
- [art-build-configurator](https://npm.io/package/art-build-configurator.md) ^1.29.3
- [art-communication-status](https://npm.io/package/art-communication-status.md) ^1.5.13

## Recent versions

- 1.6.2 (latest) — 2024-07-01
- 1.6.1 — 2024-07-01
- 1.6.0 — 2024-05-24
- 1.3.0 — 2024-05-22
- 1.2.5 — 2024-05-16
- 1.2.4 — 2024-05-16
- 1.2.3 — 2024-05-16
- 1.5.2 — 2024-01-31
- 1.5.0 — 2023-11-12
- 1.2.2 — 2021-08-25
- 1.2.1 — 2021-08-25
- 1.2.0 — 2021-08-10
- 1.1.4 — 2020-12-13
- 1.1.2 — 2020-10-30
- 1.1.0 — 2020-06-09
- … 1 more at https://npm.io/package/art-express-server/versions

## README

# ArtExpressServer

Extensible, Promise-based HTTP Server based on Express

### Usage

```coffeescript
&ArtExpressServer.start
  verbose:      true         (default: false)
  port:         number       (default: 8085)
  handlers:     array        (required)

  static:                    (default: null)
    root:       string
    headers:    object       (default: {})

  numWorkers:   number       (default: 1)
  allowAllCors: bool
    # only save to set to true if you aren't using cookies
```

### Environment Vars

These are designed to be compatible with Heroku.

```
WEB_CONCURRENCY=number # set the default numWorkers
PORT=number            # set the default port


# if set, will restart workers after that many seconds
ART_EXPRESS_SERVER_MAX_AGE_SECONDS=number

# if set, will restart workers which use more than the specified number of megabytes
ART_EXPRESS_SERVER_MAX_SIZE_MB=number

# same as passing verbose: true to start()
ART_EXPRESS_SERVER_VERBOSE=true
```

NOTE - in order for WEB_CONCURRENCY>1 to work, starting your server with "caf YourServer.caf" won't work due to a bug in CaffeineScript and forking. You should either:

* RECOMENDED: compile your server into pure javascript with webpack
* Start your server with "node" and a simple .js file: `require('art-express-server/register');require('./YourServer.caf');`

---
_Source: https://npm.io/package/art-express-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
