Ambiorix logo Ambiorix logo Ambiorix
  • Home
  • Documentation
  • Blog
  • Showcase

On this page

  • Full stack, right in R
  • Features
  • Get Started

Ambiorix

Unopinionated, minimalist web framework for R inspired by express.js

Watch Video Read the docs

Full stack, right in R

Easily build web applications & APIs, all in one syntax and right in R.

Easy to use

Create applications with the tried and tested API of express.js

One syntax

Use a single syntax to build RESTful APIs and web applications

Extendable

Leverage existing middlewares, parsers & serializers or create your own

library(ambiorix)

app <- Ambiorix$new(port = 3000L)

app$get("/", function(req, res) {
  res$send("Hello, World!")
})

app$get("/api/v1/users", function(req, res) {
  users <- data.frame(
    uid = 1:3,
    firstname = c("Alice", "Bob", "Cate"),
    lastname = c("Queen", "Jeremy", "Reece"),
    active = c(TRUE, FALSE, TRUE)
  )

  res$json(users)
})

app$start()

Features

With Ambiorix, you get:

Routing

Build multipage applications right out of the box.

Templating

For Server-Side Rendering (SSR). HTML, markdown, pug, etc.

Middleware

Easily pre-process requests to the server.

Websockets

For when you need bi-directional communication between the server & client.

Async

Use asynchronous programming techniques by returning promises from request handlers.

Autonomy

You have absolute full control over the request-response cycle!

Get Started

Build for the web, with R.

Get Started