Web Framework Inspired by 'Express.js'

A web framework inspired by 'express.js' to build any web service from multi-page websites to 'RESTful' application programming interfaces.


ambiorix

R-CMD-check CRAN status Lifecycle: stable

Website | CLI | Generator | Docker | Load Balancer

Web framework for R based on httpuv and inspired by express.js.

Install

The stable version is available on CRAN with:

install.packages("ambiorix")

You can also install the development version from Github:

remotes::install_github("ambiorix-web/ambiorix")

Example

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()

Middlewares

Tools & Extensions

Contributing

Please note that the ambiorix project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ambiorix")

3.0.0 by Kennedy Mwavu, 6 months ago


https://github.com/ambiorix-web/ambiorix, https://ambiorix.dev


Report a bug at https://github.com/ambiorix-web/ambiorix/issues


Browse source code at https://github.com/cran/ambiorix


Authors: John Coene [aut] , Opifex [fnd] , Kennedy Mwavu [cre] , Julio Collazos [ctb]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports log, cli, glue, httpuv, methods, assertthat, webutils, yyjsonr, mime, promises

Suggests readr, readxl, ggplot2, jsonlite, websocket, htmltools, commonmark, htmlwidgets, testthat


See at CRAN