While developing serverless applications at Onica (now part of Rackspace Technology), 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 designed for use in Lambda functions, but most are useful in other environments
that use the Node.js 20+ runtime as well. ExpiringValue
is even useful in web browsers.
The Typescript source is compiled to ES2020 Javascript and distributed with both ESModule and CommonJS modules for portability, along with Typescript type definition files and map files. While the typing provides the expected benefit, these utilities may be used in plain Javascript as well.
Every tool is the genesis of real world needs, and they continue to evolve. This collection is part of Rackspace Technology's commitment to give back to the open source community. Find this and other Rackspace 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 - AWS Lambda handler middleware
- Logger - CloudWatch and serverless-offline friendly logger
- StateStorage - Serverless state and configuration storage
- More Examples
- License
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.
This is a monorepo with shared development tools at the root level. Each subdirectory is a
project. Use the npm run
scripts in each package, or from the root workspace to run the
script on all packages.
- Create an issue in Github. Get approval from the community.
- Create a branch off of
main
. The branch name should be likeissue/<num>-brief-summary
- Make your change and test it thoroughly with unit tests and a project using it.
- Run
npm run analyze
from the root workspace and resolve all errors. - Commit to your git branch and open a pull request.
- Do not change the version in
package.json
.
- Do not change the version in
This is managed from each library package, as they are individually released to NPM.