# ap1

> all-in-one frontend server

Latest version **0.2.5** (published 2015-07-19) · 0 weekly downloads

## Install

```sh
npm install ap1
pnpm add ap1
yarn add ap1
bun add ap1
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2015-07-19 |
| First published | 2015-01-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 21 |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ben Sack |
| Maintainers | sackio |

## Links

- npm: https://www.npmjs.com/package/ap1
- Repository: https://github.com/sackio/ap1
- Issues: https://github.com/sackio/ap1/issues
- npm.io page: https://npm.io/package/ap1

## Dependencies (21)

- [ws](https://npm.io/package/ws.md) *
- [ejs](https://npm.io/package/ejs.md) *
- [fstk](https://npm.io/package/fstk.md) *
- [async](https://npm.io/package/async.md) *
- [maild](https://npm.io/package/maild.md) *
- [cookie](https://npm.io/package/cookie.md) *
- [jsbelt](https://npm.io/package/jsbelt.md) *
- [morgan](https://npm.io/package/morgan.md) *
- [multer](https://npm.io/package/multer.md) 0.*
- [connect](https://npm.io/package/connect.md) 3.*
- [express](https://npm.io/package/express.md) 4.*
- [winston](https://npm.io/package/winston.md) *
- [optionall](https://npm.io/package/optionall.md) *
- [socket.io](https://npm.io/package/socket.io.md) *
- [underscore](https://npm.io/package/underscore.md) *
- [body-parser](https://npm.io/package/body-parser.md) *
- [errorhandler](https://npm.io/package/errorhandler.md) *
- [connect-redis](https://npm.io/package/connect-redis.md) *
- [cookie-parser](https://npm.io/package/cookie-parser.md) *
- [serve-favicon](https://npm.io/package/serve-favicon.md) *
- [express-session](https://npm.io/package/express-session.md) *

## Recent versions

- 0.2.5 (latest) — 2015-07-19
- 0.2.4 — 2015-03-19
- 0.2.3 — 2015-03-18
- 0.2.2 — 2015-03-18
- 0.2.1 — 2015-03-18
- 0.2.0 — 2015-03-18
- 0.1.6 — 2015-02-26
- 0.1.5 — 2015-02-20
- 0.1.4 — 2015-02-04
- 0.1.3 — 2015-02-01
- 0.1.2 — 2015-01-24
- 0.1.1 — 2015-01-17
- 0.1.0 — 2015-01-15
- 0.0.3 — 2015-01-15
- 0.0.2 — 2015-01-15
- … 1 more at https://npm.io/package/ap1/versions

## README

# ap1

Ap1 is an all-in-one set of frontend server, a kitchen sink switchboard of servers for receiving requests and issuing responses.

An instance includes an Express HTTP server, Socket.io websocket server, standard socket server, and incoming/outgoing email server, with modularity for adding other server types and protocols.

Incoming requests are received on a server, and normalized into an options object, including the following:

```javascript
{
  '$session': {} //object including stateful information about the session associated with the request/response
, '$request': {} //object including request data / socket
, '$response': {} //object for responding to request / socket
, '$server': {} //server that originated the request
, '$data': {} //all data from the transaction
, '$url': {} //parsed information on the url of the request
}
```

Plugins can include a variety of go-to methods for performing different types of message transactions (i.e. email confirmations, payments, location lookups, file uploads).

## Getting Started
Install the module with: `npm install ap1`

```javascript
var API = require('ap1');
```

## License
Copyright (c) 2015 Ben Sack
Licensed under the MIT license.

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