Is there any way to interop with JS in Zig/RS/C/C++?

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

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. mach

    zig game engine & graphics toolkit

    Still experimental - I haven't had a chance to do a proper write-up, publish this as a standalone repository, or provide examples.. but we have mach/sysjs which is a library that enables calling JS from Zig.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. vecty

    Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.

    It draws on Go's syscall/js library as inspiration, which is pretty powerful (I wrote a pretty popular React-like framework using it a while back.)

  4. zig-nodejs-example

    Node.js Native Module written in Zig

    But if you want to interop with server side JS (nodejs) the easiest way would be to write a native add on. Node provides a c api which you can use from zig. Here's an example (not mine).

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

  • go-app V8 release

    3 projects | /r/golang | 25 Mar 2021
  • Ikemen-GO: open-source reimplementation of MUGEN

    4 projects | news.ycombinator.com | 19 Mar 2025
  • Modus: Serverless framework for intelligent functions and APIs using WebAssembly

    1 project | news.ycombinator.com | 31 Oct 2024
  • Leveraging Zig's Allocators

    2 projects | news.ycombinator.com | 15 Jun 2024
  • Wuffs: Wrangling Untrusted File Formats Safely

    6 projects | news.ycombinator.com | 16 May 2024

Did you know that Zig is
the 22nd most popular programming language
based on number of references?