Coder Social home page Coder Social logo

huozhi / devjar Goto Github PK

View Code? Open in Web Editor NEW
204.0 204.0 4.0 108 KB

live code runtime for your react project in browser

Home Page: https://devjar.vercel.app

JavaScript 84.70% CSS 15.30%
bundless esm live-coding livebundle livecode playground react react-live-code

devjar's People

Contributors

huozhi avatar klaseca avatar shuding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

devjar's Issues

Speed up the iframe html content and script loading

We inject the render target div and script in react effects, which could be a bit slower than when you call load(files). Load script take time and now we need to wait until the __render__ function is loaded then we could load files.

Tailwind CSS ?

If I want to add Tailwind CSS as well, what do I need to do?

Error overlay

It should support displaying error overlay (for both compilation and runtime errors) inside the iframe and send back the error with stack to the main window.

Better script injection for iframe

Currently I inlined all the script as text to avoid the import() calls to be handled by webpack..But then it's hard to keep sync bewteen core and react subpath exports and debug it like normal js

Versioning packages

Either respect the package version from a specified package.json or can load the latest version of it from CDN. For instance, react should load react 18 with swr

Loading State

Consider providing loading properly to identify if the script is loading or devjar is reloading the code files

Custom CDN

For now it's hardcode to esm.sh, user might want to customize it with other esm CDN origin

Support any npm packages

An easy way is to make all user files start with ./, and assume other imports are requesting a package from npm. We can either use Skypack or esm.sh for it.

In the future there can be a option to specify the packages and versions. For now you can do import 'react@17'.

Load CSS

Support basic CSS files loading or imports

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.