Sailplane - AWS Serverless Node.js Utilities¶
What is this?¶
While developing serverless applications at Onica, we found certain patterns being used repeatedly, and code being copied from one project to the next. These commonalities have been extracted, matured, and gathered into a reusable collection.
Sailplane is the result: a collection of useful packages for use in developing code that runs in AWS. They are primarily used in Lambda functions, but most are useful in other services that use the Node.js 8+ runtime as well.
Every tool is the genesis of real world needs, and they continue to evolve. This collection is part of Onica’s commitment to give back to the open source community. Find this and other Onica open source repositories on GitHub.
Each utility is described on its own page:
- AwsHttps - HTTPS client with AWS Signature v4
- ElasticsearchClient - Communicate with AWS Elasticsearch
- ExpiringValue - Value that is instantiated on-demand and cached for a limited time
- Injector - Light-weight and type-safe Dependency Injection
- LambdaUtils - Lambda handler middleware
- Logger - CloudWatch and serverless-offline friendly logger
- StateStorage - Serverless state and configuration storage
- More Examples
Onica’s early OSS releases have had aviation themed names; this may or may not have something to do with the CTO being a pilot. Nobody really knows.
Sailplane was selected for this serverless toolset by considering that serverless is to computing without the complexities of a server, as a sailplane is to flight without the complexities of an airplane.
And that’s it. Also, the NPM scope was available.