Sign In

react-bifrost

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bifrost

## Purpose

Source
npmnpm
Version
4.0.8
Version published
Weekly downloads
8
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

@bifrost

Purpose

  • Types end to end (front-end for registered functions)
  • Types are implicitly inferred (no need to declare them in a separate files to have access in the front-end and back-end)
  • Functions can be configured to execute on the server or locally

Setup

  • ./install.sh
  • ./link.sh (if you want symbolic links for development)
  • Start acme-server and acme-web-client

Notes

  • Assumes functions have a single input parameter object
  • The second parameter is an optional express.Request (used for auth if desired)
  • Functions should throw errors. If desired the following interface can be used if you want to set a statusCode { statusCode: number, error: Error }
  • The express server requires the body-parser

Keywords

react

FAQs

Package last updated on 02 Oct 2019

Related posts