GithubHelp home page GithubHelp logo

eben92 / bos-web-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from near/bos-web-engine

0.0 0.0 0.0 2.39 MB

BOS Web Engine R&D

Home Page: https://bos-web-engine.vercel.app

Shell 0.02% JavaScript 1.49% TypeScript 85.64% CSS 12.85%

bos-web-engine's Introduction

BOS Web Engine R&D

BOS Web Engine (BWE) is an experimental framework aimed at replacing the NEAR BOS VM with a full-featured React(or Preact) environment which would enable access to the greater web ecosystem including NPM dependencies. It is an R&D effort lead by Pagoda and will be considered for production usage once our GitHub issues tagged as P0 - Release requirement are completed.

Developers who have created components on BOS should expect a reasonable migration effort to make their components compatible with BWE once it launches. See "Will BWE be backwards compatible with existing VM components?" in the FAQ section for more info

Some core goals:

  • ability to import npm packages
  • component code is minimally different from vanilla React
  • isolation of component execution leverages browser sandboxing (iframes)
  • configurable trust model to tune performance when embedded components are known to be safe

Examples of other impactful features we plan to research:

  • TypeScript support
  • Full web API support (canvas, etc)
  • Cross-component global state management

For a more detailed breakdown of the work, see issues labeled with Epic

More Info

See our docs!

FAQ

Will BWE be backwards compatible with existing BOS components?

No. BWE is a complete re-write of the component runtime and will not be backwards compatible with existing components due to significant architectural differences. Components will be similar in many ways since they are already written with JSX, but BWE code will look much more like vanilla React with some additional patterns on top.

Our primary goal is to build the most capable engine to support complex dapps for a vibrant ecosystem, then we will make efforts to ease the migration of existing work as much as possible. There will be ample discussion before any decisions are made on when and how to start switching to BWE once it is ready.

Can existing React codebases be used with BOS Web Engine?

While the process to convert an existing React codebase to run on BWE will be significantly easier than the BOS, there will still be some syntax and architecture changes which must be handled manually.

Other Questions

See our full FAQ here

bos-web-engine's People

Contributors

andy-haynes avatar mpeterdev avatar calebjacob avatar thisisjoshford avatar pavelisnear avatar klngrs avatar charleslavon avatar eben92 avatar ricky-sb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.