Airship
Helium + Webmachine = Airship. A toolkit for building declarative, RESTful web apps.
Install / Use
/learn @tmcgilchrist/AirshipREADME
Airship
Airship is a Haskell library for handling and serving HTTP requests in a RESTful fashion. It is heavily inspired by Webmachine and works with any WAI-compatible web server such as Warp.
It aims to be small, fast, and flexible.
How does it work?
Airship resources are represented with a Resource record type.
Each field in Resource corresponds to an action taken in the Webmachine decision tree.
Airship provides a defaultResource with sensible defaults for each of these actions; you build web services by overriding fields in the default resource with your own.
Routes are declared with a simple monadic syntax:
routes = do
root #> someRootResource
"account" </> var "name" #> accountResource
For a simple example that handles HTTP GET and POST requests, please check example/Basic.hs.
For a slightly more involved example that generates HTML and manages a pool of resources, please check the blimp repository.
Airship is copyright © 2015 Helium Systems, Inc., and released to the public under the terms of the MIT license.
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate 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
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
