Neo-cowsay
v8go
Our great sponsors
Neo-cowsay | v8go | |
---|---|---|
6 | 10 | |
287 | 3,004 | |
- | - | |
3.1 | 1.8 | |
3 months ago | 7 months ago | |
Go | Go | |
Artistic License 2.0 | BSD 3-clause "New" or "Revised" License |
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.
Neo-cowsay
v8go
-
SSR React in Go
Firstly, I used rogchap/v8go to execute JavaScript in a Go environment. I listed other options below.
-
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.
- QuickJS JavaScript Engine – Fabrice Bellard
-
Using Javascript plugins in Go
https://github.com/rogchap/v8go is a viable option these days as well.
- 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.
What are some alternatives?
goja - ECMAScript/JavaScript engine in pure Go
deno - A modern runtime for JavaScript and TypeScript.
txiki.js - A tiny JavaScript runtime
quickjs - Public repository of the QuickJS Javascript Engine.
bud - The Full-Stack Web Framework for Go
quickjs-emscripten - Safely execute untrusted Javascript in your Javascript, and execute synchronous code that uses async functions
plenti - Static Site Generator with Go backend and Svelte frontend
gpg - A client to gpg-agent for Go
examples - Goliveview examples
Gokapi - Lightweight selfhosted Firefox Send alternative without public upload. AWS S3 supported.
htmx - </> htmx - high power tools for HTML
Buffalo - Rapid Web Development w/ Go