goja
bud
Our great sponsors
goja | bud | |
---|---|---|
25 | 34 | |
4,914 | 5,500 | |
- | 0.4% | |
6.3 | 4.3 | |
about 2 months ago | 5 months ago | |
Go | JavaScript | |
MIT License | MIT 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.
goja
- Goja: ECMAScript/JavaScript engine in pure Go
-
SSR React in Go
dop251/goja
-
Show HN: Flyscrape – A standalone and scriptable web scraper in Go
Your comment was posted 4 minutes ago. That means you still have enough time to edit your comment to change it so it contains real URLs:
<https://github.com/PuerkitoBio/goquery>
<https://github.com/dop251/goja>
(Please do not reply to this comment—I won't be able to delete it once the previous post is fixed if it contains replies.)
- Goja: ECMAScript 5.1 implementation in pure Go
-
TySON: TypeScript as an embeddable configuration language, without depending on Node or V8
Apparently "not depending on Node or V8" means depending on some random Go JS engine instead.
-
Examples of using task scheduler with Go?
Goja https://github.com/dop251/goja
-
Running a Js file inside Go
Either call a JavaScript interpreter like node with exec.Command and read its stdout, or use a pure Go JavaScript interpreter like goja or otto.
-
easytemplate - Go's text/template library with JS Super Powers
Just to also say this is implemented in pure Go we aren't including V8 or any external dependencies we instead use https://github.com/dop251/goja which is a JS VM written completely in Go.
-
how to JSON Marshal a struct if one of its fields is a fucntion
If you want to serialize a function to JSON one idea may be to embed a scripting language like JavaScript into your program. The goja package is a very good solution: a native ES5 JavaScript (with some ES6 syntax support as well) natively implemented in Go so you can get tight data bindings to your Go types and funcs. For your JSON marshalling you could serialize a JavaScript function source (text) and when reloading that, parse that text with goja to be able to run it dynamically in your Go program. Basically you'd need to get away from pure Go for this and towards something that is JSON compatible to (de)serialize to text.
-
Anyone experienced in golang ssr?
Not really. It was built in-house and I don't know of anything about it that went public. I recall it using Goja for the JS runtime. Code was embedded into the binary (think embed package). There was some kind of sorcery to convert what would be HTTP network calls in the browser into local function calls during SSR, but I'm hazy on how it worked I'm afraid.
bud
-
Sveltekit with golang
Yeah. It seems like Bud is the best option I have to get what I want: https://github.com/livebud/bud/
-
Is there a framework out for go that rivals Laravel as far as out of the box features and tools?
Hit me up if you have a longer time horizon and want to give https://github.com/livebud/bud a shot!
-
Purego – A library for calling C functions from Go without Cgo
Awesome!
This would be such a game-changer for server-side rendering Javascript in Go with V8.
I'd love to integrate this into Bud[1].
-
Best front-end stack for Golang backend
I've also been seeing updates on this project, which is kind of preferring Svelte https://github.com/livebud/bud
-
How to develop a Web app in go
https://github.com/livebud/bud - similar idea, but uses Svelte (a JS framework) to do the front end stuff. It’s smart enough to render the JS stuff on the server when possible, so you end up with the best of both worlds.
-
Anyone experienced in golang ssr?
https://github.com/livebud/bud this framework is achieving SSR in go. Not Vue specifically last I saw, but maybe you can draw inspiration from what they did https://www.reddit.com/r/golang/comments/uoxocj/bud_the_fullstack_web_framework_for_go_developers/i8ke92h/?utm_source=reddit&utm_medium=web2x&context=3
-
Does Go have an equivalent to Python's Flask and Django?
See https://github.com/livebud/bud to learn more.
-
Python Web Framework: Converting Svelte Code into HTML, CSS and JS with Python
Just to clarify: Fymo is taking the same approach as Bud. See: https://github.com/livebud/bud/discussions/248 for details 🙂
-
Converting Svelte Code into HTML, CSS and JS with Python
An open-source GoLang project also took the same approach, livebud/bud.
-
Modern Monolith Framework for Solo Developers?
I know how to create APIs. I actually don't wanna do an API link with the front end. You can check a framework built in GoLang, livebud/bud in Github. Seeking something like that, 'cause the project is still being developed.
What are some alternatives?
otto - A JavaScript interpreter in Go (golang)
Buffalo - Rapid Web Development w/ Go
v8go - Execute JavaScript from Go
quickjs - Public repository of the QuickJS Javascript Engine.
go-lua - A Lua VM in Go
gomarvin - Generate Go REST servers with custom endpoints & typescript fetch clients
gopher-lua - GopherLua: VM and compiler for Lua in Go
tengo - A fast script language for Go
sqlc - Generate type-safe code from SQL
go-python - naive go bindings to the CPython2 C-API
live - Live views and components for golang