Giter Site home page Giter Site logo

☂️ Public API about tools HOT 7 CLOSED

rome avatar rome commented on May 10, 2024
☂️ Public API

from tools.

Comments (7)

mattcompiles avatar mattcompiles commented on May 10, 2024 2

The current focus is getting linting up to scratch. Starting with replicating a lot of eslints recommended rules. Checkout this issue it you wanna get involved. #20

from tools.

baryla avatar baryla commented on May 10, 2024

@sebmck are there any plans to get the API working in the browser? Similar to what the Rollup team is doing?

from tools.

sebmck avatar sebmck commented on May 10, 2024

@baryla Maybe, it's definitely possible. Seems like we'd want to do something like an interactive REPL for the website. Rome deliberately doesn't use a lot of Node APIs, and the way the server is architected it allows everything to be ran in one process instead of separate worker processes, although web workers would be doable but likely unnecessary.

from tools.

baryla avatar baryla commented on May 10, 2024

@sebmck Oh nice! I'm working on something similar but I actually utilise web workers and the speed gain is amazing compared to running all the transpilation in one process on the main thread. If Rome was opened up to allow community plugins, I can see workers in the browser environment play a massive part for speed.

Just a side note - are you guys looking for contributors to the project? If so, it'd be nice to have a roadmap/vision or at least a list of features that still need to be implemented before v1. I'd love to contribute but apart from the Philosophy section and some potential bugs that can be worked on, there isn't much that community members can do?

from tools.

brillout avatar brillout commented on May 10, 2024

I'm interested in a public API from the perspective of SSR/SSG (#271).

Is there a draft somewhere online of how the public API would look like?

from tools.

Kelbie avatar Kelbie commented on May 10, 2024

@baryla I actually have a fork of rome which can be run in the browser which is demonstrated with the astexplorer for rome.

There is only one line of code I had to change to get Rome to run in the browser but the bundle output was a bit tricky so there is a script which I wrote which turns it into something the browser can understand (no doubt there is a better approach to do this within Rome itself).

from tools.

sebmck avatar sebmck commented on May 10, 2024

I don't think this is something we even want to consider at this time. I'm going to reopen if it becomes a larger concern in the future. For linting, which is currently the only thing we support, the public API should be the LSP server which we can more thoroughly document how to communicate with.

from tools.

Related Issues (20)

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.