Run single JS func in Go app

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • go-cshared-examples

    Calling Go Functions from Other Languages using C Shared Libraries

  • I think i found a solution: https://github.com/vladimirvivien/go-cshared-examples/blob/master/client.js

  • chromedp

    A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.

  • Is it node specific? Could you just use https://github.com/chromedp/chromedp and run it as an actually webpage and get the value from that?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • goja

    ECMAScript/JavaScript engine in pure Go

  • Where are your benchmarks showing github.com/dop251/goja, v8go and otto are slow? by my own testing they are sufficiently fast enough.

  • esbuild

    An extremely fast bundler for the web

  • Rewrite in Go, add a JS wrapper like ESBuild: https://github.com/evanw/esbuild/blob/master/Makefile

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts