Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lord/backtalk

HTTP/Websockets API microframework
https://github.com/lord/backtalk

api-server http json realtime rust

Last synced: about 2 months ago
JSON representation

HTTP/Websockets API microframework

Awesome Lists containing this project

README

        


Backtalk: API Web Server


Build Status
Crate Info
Documentation

Backtalk is a web framework for Rust. Much is subject to change and it's not ready for writing production sites, but the structure is there, and I'm glad to answer questions/help out if the documentation isn't enough.

- **Asynchronous** – use Futures for everything, handle thousands of concurrent connections.
- **Realtime** – expose a streaming API, and push live events to clients.
- **Simple** – only a couple hundred lines of code.
- **Opinionated** – exclusively for JSON-based RESTful APIs.
- **Magicless** – no macros, no unsafe, runs on stable Rust.

A simple server example:

```rust
let mut server = Server::new();
let database = memory::MemoryAdapter::new();
server.resource("/cats", move |req: Request| {
database.handle(req)
});
server.listen("127.0.0.1:3000");
```

You can look in the `examples` directory for more information, or the [blog post](https://lord.io/blog/2017/backtalk) walking through the examples.

## Inspiration

- Feathers.js
- Phoenix
- Rocket.rs