Apis is a JavaScript library for building RESTful APIs with WebSocket support. Version 0.1.2 provides a modular architecture built around 'units' and a loader system that automatically assembles application parts. It features flexible settings, advanced routing with contracts and resources, support for multiple servers (HTTP/HTTPS, IPv4/IPv6), cluster and domain support, daemonization, logging, and multiple transports including WebSocket, JSONP, and batch requests. Key differentiators include CORS-enabled by default (with CSRF protection), a range of built-in handlers (authentication, data validation, static files), and client libraries for Node.js and browsers. It is designed for creating web and WebSocket APIs with a RESTful philosophy emphasizing stateless operations and cacheable GET requests.
npm install apisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import apis, create a server, define a simple GET resource, and start the server.
Enable CSRF protection using built-in mechanisms or disable CORS/JSONP where appropriate.
Set 'options' handler to null in resource definition to disable.
Run 'npm install apis' to install the package.
Use named import: import { createServer } from 'apis'No dependency data recorded yet.