How to call Fortran routines from JavaScript with Node.js

This page summarizes the projects mentioned and recommended in the original post on dev.to

Civic Auth - Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. stdlib

    ✨ Standard library for JavaScript and Node.js. ✨

    For more details on how we author Node-API native add-ons and leverage macros and various utilities for simplifying the add-on creation process, the best place to start is by browsing stdlib source code. For the examples explored in this post, we've brushed aside some of the complexity in ensuring cross-platform configuration portability (looking at you Windows!) and in specifying compiler options for optimizing compiled code. For those interested in learning more, you'll find many more examples throughout the codebase, and, if you have questions, don't be afraid to stop by and say hi! 👋

  2. Civic Auth

    Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.

    Civic Auth logo
  3. npm

    We'll be using npm for installing Node.js dependencies, but you should be able to adapt any installation commands to your preferred JavaScript package manager (e.g., Yarn, pnpm, etc).

  4. node

    Node.js JavaScript runtime ✨🐢🚀✨

    In this post, we'll begin laying the groundwork for authoring high-performance Fortran bindings and explore how to call Fortran routines from JavaScript using Node.js. We'll start with a brief introduction to Fortran, followed by writing and compiling a simple Fortran program. We'll then discuss how to use Node-API to link a compiled Fortran routine to the Node.js runtime. And we'll conclude by demonstrating how to use stdlib to simplify the authoring of Node.js bindings.

  5. node-gyp

    Node.js native addon build tool

    node-gyp is a build system based on Google's GYP, which, in turn, is a meta-build system for generating other build systems. The key idea behind GYP is the generation of build files, such as Makefiles, Ninja build files, Visual Studio projects, and XCode projects, which are tailored to the platform on which a project is being compiled. Once GYP scaffolds a project in a manner tailored to the host platform, GYP can then perform build steps which replicate as closely as possible the way that one would have set up a native build of the project were one writing the project build system from scratch. node-gyp subsequently extends GYP by providing the configuration and tooling specific to developing Node.js native add-ons.

  6. gcc

    Docker Official Image packaging for gcc (by docker-library)

    In order to compile Fortran programs, you'll need a Fortran compiler. In this post, we'll be using GNU Fortran (GFortran) to compile Fortran code. GFortran is an implementation of the Fortran programming language in the widely used GNU Compiler Collection (GCC), an open-source project maintained under the umbrella of the GNU Project. To check whether GFortran is already installed

  7. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
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

  • Building a simple Real-Time Chat App with Socket.IO

    2 projects | dev.to | 24 Apr 2025
  • 4o chagpt Image Generator

    1 project | dev.to | 23 Apr 2025
  • NodeJS Intro..

    1 project | dev.to | 23 Apr 2025
  • Turn Your React App into a PWA That Works Offline, Installs Like Magic & Feels Native

    1 project | dev.to | 11 Apr 2025
  • Building a Live Streaming App with ZEGOCLOUD Live Streaming SDK and React JS: A Step-by-Step Guide

    1 project | dev.to | 10 Apr 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?