Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lord/backtalk
HTTP/Websockets API microframework
https://github.com/lord/backtalk
api-server http json realtime rust
Last synced: 4 days ago
JSON representation
HTTP/Websockets API microframework
- Host: GitHub
- URL: https://github.com/lord/backtalk
- Owner: lord
- License: apache-2.0
- Created: 2017-02-16T20:59:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-18T03:27:41.000Z (over 7 years ago)
- Last Synced: 2025-01-17T10:06:37.381Z (12 days ago)
- Topics: api-server, http, json, realtime, rust
- Language: Rust
- Homepage:
- Size: 121 KB
- Stars: 156
- Watchers: 8
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: license-apache.txt
Awesome Lists containing this project
README
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