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

latest
Source
npmnpm
Version
4.1.4
Version published
Weekly downloads
61
1120%
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
  • A synchronous cache layer is supported at the function level (async is not supported because given the nature of react hooks it can impact performance)

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 assumes the body-parser exists

Keywords

react

FAQs

Package last updated on 21 Nov 2019

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