v8go
dom-examples
v8go | dom-examples | |
---|---|---|
10 | 87 | |
3,065 | 3,206 | |
- | 3.5% | |
1.8 | 7.7 | |
9 months ago | 13 days ago | |
Go | JavaScript | |
BSD 3-clause "New" or "Revised" License | Creative Commons Zero v1.0 Universal |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
v8go
-
SSR React in Go
Firstly, I used rogchap/v8go to execute JavaScript in a Go environment. I listed other options below.
-
I built a local Laravel dev environment that doesn't require PHP at all
Now the only issue I see is that someone who can't be bothered to install PHP and composer will probably not want to install node and npm either. If you could somehow run WASM inside an executable file (maybe something written in Go with https://github.com/rogchap/v8go ? Or an Electron App ?), all you'd need to do is download the executable file on any computer and double click it to start serving a Laravel project.
-
Show HN: A Full-Stack Web Framework Written in Go
I only browsed for a wee bit, so take this with some salt, but it _looks_ like the framework is running a JS VM isolate alongside the Go server struct[1], which gets called with whatever script file is being rendered. Since it looks like the render files are, at least in the case of Svelte, individually compiled JS files that are SSR rendered via the V8 isolate, I _believe_ you're correct that there is no CSR (though there might still be JS-hydrated code if the Svelte component included something involving an interactive component).
I think the idea is to ingest a JS "template" and spit out the rendered HTML+JS, kind of like traditional SSR templates, but it could be possible to shoe-horn in an entire client-side router that gets initialized as a DOM object somewhere.
[1] https://github.com/rogchap/v8go
- QuickJS JavaScript Engine – Fabrice Bellard
-
Using Javascript plugins in Go
https://github.com/rogchap/v8go is a viable option these days as well.
- Execute JavaScript from Go - JS functions with Go callbacks, update JS objects from Go & more
- V8go v0.5.0 Execute JavaScript from Go
- v8go: JavaScript in Go - v0.5.0 released 🎉 Global Objects, Function Templates, Go callbacks and loads more!
-
Plenti — a Svelte SSG for people that don’t like web maintenance bullsh#t
Plenti is a simple open source Static Site Generator (SSG) with a Go backend and Svelte frontend. Jim picked Golang because it is simple, quick and has the ability to generate a binary that can be run on any machine; and Svelte, well, for one, “Svelte is so hot right now” and also because of the power it gives developers to write simple HTML and CSS to create websites. Merging these two technologies was not an easy task, but with V8Go binding the two together, it’s a marriage that works.
- Execute JavaScript from Go
dom-examples
-
Comparing Hattip vs. Express.js for modern app development
This is a problem! Ideally, your backend application should be platform-independent by following the standardized Web API. This way, you could run it across most JavaScript platforms.
- Web APIs
-
9 Web API's que fazem mágica ⚡🧙🏻♀️🧙🏾♂️✨
Fonte: MDN web docs
-
Web OTP Api - One byte Explainer
References MDN Chrome Docs
-
The Ladybird Browser Project
> if writing a browser today is in fact easier than both writing AND maintaining a browser a decade back.
Probably not. Yeah we have web standards and some idea of how to architect it, but the total set of APIs and HTML/CSS/JS features a browser supports is probably changing faster than the Ladybird team can actively implement it. The API surface is just impossibly large compared to 10 or 15 years ago. Look at all of these: https://developer.mozilla.org/en-US/docs/Web/API
-
SSR React in Go
I added polyfills for the Web APIs used in the React code.
-
At Least Skim The Manual
In addition to pure JavaScript, there are hundreds of Web APIs documented at MDN. These APIs cover everything from the DOM to Web Workers with great detail.
-
Help me understand Web APIs (specifications and interfaces)
I'm reading MDN Web Docs on Web APIs. There are two basic sections, specifications and interfaces.
-
Can you make your own JavaScript by implementing ECMAScript standard?
The biggest difference is usually found in what non-ECMAscript standard JS web apis or features are implemented in different browsers. Here's a list of typical web APIs, and for many of them there is a compatibility table at the bottom detailing which browser do or do not support it. https://developer.mozilla.org/en-US/docs/Web/API
-
Using Web APIs to Create a Camera Application
Documentation of Web APIs and interfaces is located on the MDN (Mozilla Developer Network) website. The term "Web API" can refer to browser or server APIs. In this article, it refers to Browser APIs.
What are some alternatives?
goja - ECMAScript/JavaScript engine in pure Go
wa-automate-nodejs - 💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
deno - A modern runtime for JavaScript and TypeScript.
just - A library of dependency-free JavaScript utilities that do just one thing.
txiki.js - A tiny JavaScript runtime
WHATWG HTML Standard - HTML Standard
quickjs - Public repository of the QuickJS Javascript Engine.
public-apis - A collective list of free APIs
bud - The Full-Stack Web Framework for Go
fuse - Multiplayer Online Standard
quickjs-emscripten - Safely execute untrusted Javascript in your Javascript, and execute synchronous code that uses async functions
vimium - The hacker's browser.