• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HTTP/Websockets API microframework

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:

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 walking through the examples.

Inspiration

  • Feathers.js
  • Phoenix
  • Rocket.rs

More Repositories

1

wargo

Easy Rust to WebAssembly
JavaScript
261
star
2

anchors

self adjusting computations in rust
Rust
130
star
3

flexblocks

A CSS layout library
CSS
76
star
4

crudite

it's like a blockchain but for collaborative editing of json documents
Rust
41
star
5

emoji-shell

A 🐚 powered by emoji, written in Rust
Rust
38
star
6

middleman-php

Parse PHP files in Middleman
Ruby
35
star
7

mortalical

A calendar of your entire life
Ruby
20
star
8

mortalitab

Replace your new tab page with a personal reminder that you will die
JavaScript
16
star
9

doorbot

Opens the door to Recurse Center with a text
Ruby
11
star
10

learnllvm

Toy compiler with Rust and LLVM
Rust
7
star
11

scrape-bncollege

Scrapes bncollege.com
Python
7
star
12

wargo-loader

JavaScript
7
star
13

alfred-quicknote

A fast way to access your notes from Alfred
Ruby
7
star
14

cashin

A miniature payment form
CSS
6
star
15

arena-graph

fast and dangerous arena-allocated graphs
Rust
4
star
16

webbing

DOM APIs for Rust+Emscripten
Rust
3
star
17

radio-replay

Rust
3
star
18

backtalk-old2

Build web APIs in Rust
Rust
3
star
19

plotter-quine

Rust
3
star
20

cargo-wasm

Run cargo commands with emcc automatically installed
Rust
3
star
21

Stalkernet

Web scraper for Stalkernet.
Python
2
star
22

qr

toy qr encoder written from scratch in python
Python
2
star
23

pagelapse

Generate timelapses of websites
Ruby
2
star
24

testcommit

2
star
25

farmhouse

Arduino
2
star
26

wattt

Web Assembly Tobject TcapabiliTies
1
star
27

wargo-loader-example

JavaScript
1
star
28

pinboard-to-instapaper

A quick script to import bookmarks from Pinboard to Instapaper
Ruby
1
star
29

markov

Rust
1
star
30

fightclub

A programming competition server
JavaScript
1
star
31

learning-graphics

In which Robert teaches himself graphics programming in Rust
Rust
1
star
32

lodo

A game built with a bunch of LEDs and pressure plates
Go
1
star
33

datastore-sys

protobuf derived code for connecting to GCP's Datastore
Rust
1
star
34

gql

defunct, feel free to ignore
Rust
1
star
35

tinyrenderer

Rust
1
star
36

cryptopals

Solutions to the crypto challenges in Go
Go
1
star
37

meow2

1
star
38

rapidwrap

Fast text wrapping in the browser
JavaScript
1
star
39

img

Images used in various Github readmes
1
star
40

platformer

A game in progress
JavaScript
1
star