Quaich
Scala Serverless Microframework for AWS Lambda, inspired by Amazon's Chalice (https://github.com/awslabs/chalice)
Install / Use
/learn @quaich-project/QuaichREADME
quaich
A Scala “Serverless” Microframework for AWS Lambda, inspired by Amazon's Chalice (https://github.com/awslabs/chalice)
WTF is a "quaich"
Amazon named their version of the AWS Lamba Microframework “Chalice”, which references what we suppose is a perfectly acceptable drinking vessel.
Being partial to whisky, however, the quaich (pronounced as 'quake') – A Scottish two-handled drinking bowl, often used to serve whisky – sounded like a better inspiration. Sir Walter Scott was said to have served whisky from a quaich carved from the elm tree that served as the Duke of Wellington's command post at the Battle of Waterloo. Which is pretty awesome.
AWS Lambda is an interesting emerging platform for “serverless” programming. Entirely event driven, it provides an easy model to handle both ‘built-in’ Amazon events – such as DynamoDB & S3 Bucket changes, and HTTP calls through services such as Amazon's API Gateway... as well as custom events. Being “serverless”, Lambda allows us to drop in simple JVM code via assembly JAR that responds through an event loop, minimizing execution costs and eliminating the need to setup and maintain dedicated server instances.
quaich (pronounced ‘quake’) is a Scala microframework, inspired by the Python based chalice released by Amazon recently. The concept is simple, single file applications that can receive and handle the JSON events pushed by the Lambda system. Through clever tricks with macros, etc. we provide an easy model for defining your routes files and even parsing custom variables.
Authors
- Brendan McAdams
- Thomas Lockney (mostly just an idea guy)
TODO
- Logging support
- Flexibility using both core, structured base handler APIs such as Amazon provides, and customizable ones.
- Support for multiple pluggable JSON libraries, because Scala has about 64k of them and everyone has their own preference
- Magnet pattern for HTTP Responses vs. type classes?
- sbt deployment plugin
- Support for POJO translation
- Support for S3 & DynamoDB Triggers
- Offline simulator for easier testing / dev. There's an interesting one for Node
- Explore support for Alexa/Amazon Echo integration, as well as IoT buttons. Thanks a ton to Dick Wall for the truly superb idea. And deep Pinky & the Brain Knowledge.
Notes
Permissions I've been setting on my roles:
- AmazonAPIGatewayPushToCloudWatchLogs
- AmazonS3ReadOnlyAccess
- AWSLambdaExecute
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
