Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backframe

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backframe

Library for building REST API's for expressjs

  • 2.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by200%
Maintainers
4
Weekly downloads
 
Created
Source
Backframe Build Status Code Climate Code Coverage

Backframe is a javascript library for declaratively creating REST APIs for Express. Express is a great tool for building lightweight web and application servers, but it leaves almost all of the implementation to the developer. When building REST API's, this usually ends up requiring the developer to write a lot of tedious and repetitive code. Backframe provides simple, declarative tools for building REST APIs.

Read the overview

Installation

Install with npm or yarn:

npm install --save backframe

Usage

Backframe is a great tool for rapidly creating performant REST APIs for your web or mobile application

import express from 'express'
import Backframe from 'backframe'
import Kittens from from 'app/models/kittens'

// initialize backframe
const backframe = Backframe()

// create a resource
const kittens = backframe.resources({
  model: Kittens
})

const app = express()

// mount backframe within express
app.use(backframe.router({
  routes: kittens
}))

app.listen(3000)

Learn more

Author & Credits

Backframe was originally written by Greg Kops and is based upon his work with Think Topography, Funkhaus and The Cornell Cooperative Extension of Tompkins County

FAQs

Package last updated on 15 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc