0.1.1 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseAbel is a lightweight microservices framework for Lua. It focuses on simple, fun experience of writing modular web services.
See Documentation and Roadmap for more information.
Abel is currently under heavy development, and many functionalities are yet to be implemented. Nevertheless, feel free to try it out, and any feedback would be appreciated!
You want Abel when:
You don't want Abel when:
Write a hello world service and save it to hello.lua
:
abel.listen("/:name", function(req)
return { greeting = "Hello, " .. req.params.name .. "!" }
end)
Run Abel:
$ cargo run -- dev hello.lua
INFO abel > Starting abel-server v0.1.0 (dev mode)
INFO abel::server > Loaded service (0b684ecb-029e-40ee-8757-9f34fdc2e662)
INFO abel::server > Abel is listening to 127.0.0.1:3000
In another shell, run the service:
$ curl localhost:3000/hello/world | jq
{
"greeting": "Hello, world!"
}
Deploy the service in one request:
$ curl https://abel.example.com/services/hello \
-H "Authorization: Abel <your-auth-token>" \
-X PUT \
-F single=@hello.lua | jq
{
"new_service": {
"name": "hello",
// ...
}
}
$ curl https://abel.example.com/hello/server | jq
{
"greeting": "Hello, server!"
}
Abel currently uses Lua 5.4 as its runtime. Lower versions and LuaJIT support is under consideration for now.
Abel is licensed under the MIT License.