Hacker GitHub

← All repos

dop251/goja

View on GitHub ↗ ★ 7,180 Go

ECMAScript/JavaScript engine in pure Go

18 mentions on Hacker News by 17 people: 3 stories, 15 comments · first 2020-05-18 · latest 2026-07-07

Mentions per year 18 mentions · busiest year 2023 (4)
20082026
  1. …wouldn't be a good fit for. It's not public yet, but is fairly rudimentary and based on Go + goja: https://github.com/dop251/goja You write rules in ESLint, it makes sure that they're followed. If it's a file in your repo, it can obviously…
  2. We recently switched from Node.js + Mathjax for rendering latex to Goja ( https://github.com/dop251/goja ) + Mathjax, and surprisingly it worked really well. We did this because the app is already 99% golang, and this allows us to…
  3. …and conventions, alongside something like Oxlint/Oxfmt and Ruff and so on), with Go and goja: https://github.com/dop251/goja Basically just a bunch of .js rules that are executed like: projectlint run --rules-at ./projectlint-rules ./src…
  4. …in Go would look like, you can look at https://pkg.go.dev/github.com/robertkrimen/otto and https://github.com/dop251/goja . Of course they aren't "ports", but I feel like having two fairly complete intepreters is probably enough to prove…
  5. JavaScript scripting by users inside frameworks / applications built in other languages. Similar to https://github.com/dop251/goja for Go or https://github.com/sebastienros/jint for .NET
  6. …support, but it is tailored for k6 and they don't have plans for making it easier to use. [2] [1] https://github.com/dop251/goja/issues/348 [2] https://github.com/grafana/sobek/issues/49
    comment by notanaverageman · 2025-03-24 · in Move on to ESM-Only
  7. …you’d find a lot of it is valid ES5 as well (and GoJa does actually support a lot of ES6, see https://github.com/dop251/goja/milestone/1?closed=1 ). Also, what features do you need to code in JavaScript to extend PocketBase functionality?
  8. …outstanding [3] So, Sobek seems to be the way forward... [1] https://github.com/grafana/sobek/ [2] https://github.com/dop251/goja/pull/430 [3] https://github.com/dop251/goja/milestone/1
    comment by nchmy · 2024-09-07 · in Goja: A Golang JavaScript Runtime
  9. …link to the project repos for the packages mentioned: < https://github.com/PuerkitoBio/goquery > < https://github.com/dop251/goja > (Please do not reply to this comment of mine—if you do, I won't be able to delete it once the previous post…
  10. …go a long way to matching ergonomics in other tools. This project uses both, but then also goes on to use github.com/dop251/goja, which is a JavaScript VM and it's accompanying nodejs compatability layer and even esbuild, in order to…
  11. python, Lua and JS These functions are implemented by these packages: github.com/dop251/goja github.com/yuin/gopher-lua go.starlark.net Go scripts (programs) are not subject to any restrictions. So there is no Go script support in the…
  12. …another templating language. Bud will eventually ship with it's own JS evaluator. Either through https://github.com/dop251/goja or through porting https://github.com/bellard/quickjs to Go (~25kloc of C)
    comment by matthewmueller · 2022-05-14 · in Show HN: A Full-Stack Web Framework for Go
  13. …implementations. For example, here's one I stumbled upon recently that's written in plain Go: https://github.com/dop251/goja Of course, it won't help you since it's not built into a web browser.
  14. …and so on. BTW, here is the project link: https://github.com/Snawoot/trusearch Pure-Go JS engine: https://github.com/dop251/goja
  15. …to come any time soon... We'd need support for that in the JS runtime we're using ( https://godoc.org/github.com/dop251/goja ) and then we'd need to figure out how to expose in in k6, while dealing with potentially hundreds of concurrent…