Socket
Socket
Sign inDemoInstall

ap1

Package Overview
Dependencies
229
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ap1

all-in-one frontend server


Version published
Weekly downloads
20
increased by233.33%
Maintainers
1
Install size
23.0 MB
Created
Weekly downloads
 

Readme

Source

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:

{
  '$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

var API = require('ap1');

License

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

FAQs

Last updated on 19 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc