abel-core

Lua microservices framework.

Latest version: 0.1.1 registry icon
Maintenance score
0
Safety score
0
Popularity score
71
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.1.1 0 0 0 0 0
0.1.0 0 0 0 0 0

Stability
Latest release:

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

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



Abel 🐝

GitHub release License Rust CI

Abel 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!

Why Abel?

You want Abel when:

  • you are tired of compiling, packaging, logging in, and deploying even the simpliest service you write on your server;
  • you want to Cloudflare Workers, but self-hosted;
  • you want an out-of-the-box experience of writing and deploying web services.

You don't want Abel when:

  • you build complex web services; (maybe one day it can do so too?)
  • performance is your main goal; (still decent performance though)
  • you want to access the entire filesystem, spawn child processes or use FFI libraries.

Quick Start

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!"
}

Lua Version Compatibility

Abel currently uses Lua 5.4 as its runtime. Lower versions and LuaJIT support is under consideration for now.

License

Abel is licensed under the MIT License.