Node.js and IBM i: Bringing Modern JavaScript to Your Power System
For years, IBM i developers have relied on RPG, COBOL, CL, and SQL to build rock-solid business applications. These technologies remain incredibly powerful, but today’s development world also demands web services, APIs, browser applications, mobile integration, and real-time communication.
That is where Node.js comes into the picture.
What is Node.js?
Node.js is an open source project based on the Google Chrome JavaScript Engine: an open-source runtime environment built on Google’s V8 JavaScript engine. Instead of running JavaScript inside a web browser, Node.js allows JavaScript code to run directly on a server.
In simple terms:
Node.js lets you use JavaScript as a server-side programming language.
This means JavaScript can be used to create:
- REST APIs
- Web applications
- Real-time dashboards
- Integration services
- Microservices
- Data processing applications
- Automation tools
If you’ve only ever associated JavaScript with web pages and browser popups, Node.js opens an entirely new world.
What does Node.js do?
Node.js provides a platform for server-side JavaScript applications running without browsers.
Who can use Node.js?
IBM has fully embraced open-source technologies, and Node.js is one of the most popular open-source environments available on IBM i today.
Node.js can be run on the IBM i power system, a platform that provides enterprise-grade scalability and reliability for business applications. Node.js runs directly on your IBM i partition using the Portable Application Solutions Environment (PASE), allowing JavaScript applications to execute natively alongside your existing workloads.
This means you can:
- Access Db2 for i tables
- Call RPG programs
- Execute CL commands
- Read data areas
- Connect to IFS files
- Integrate with cloud services
- Build modern web applications
All while keeping your critical business data on IBM i.
Why is Node.js So Popular?
The secret lies in its architecture.
Traditional server applications often create separate threads or processes for each connection. Node.js takes a different approach using:
Event-Driven Processing
Node.js reacts to events as they happen.
Instead of constantly waiting for a task to finish, it continues processing other requests and returns to complete the task when the response arrives.
Non-Blocking I/O
When Node.js requests data from a database or external service, it doesn’t sit around twiddling its thumbs.
It continues working on other requests.
This approach makes Node.js:
- Fast
- Efficient
- Scalable
- Ideal for web applications
Particularly those handling hundreds or thousands of concurrent users.
Typical IBM i Use Cases
Many IBM i shops start with small Node.js projects and quickly discover bigger possibilities.
Building REST APIs
Expose Db2 data to mobile apps, websites, or external partners.
Example:
A customer portal requests order status through a Node.js API which retrieves data from Db2 for i.
Modern Web Applications
Build browser-based applications using:
- React
- Angular
- Vue
- Express.js
while IBM i remains the trusted database server behind the scenes.
RPG Integration
Node.js can communicate with existing RPG programs using IBM i database access methods and service interfaces.
Rather than replacing RPG, it complements it.
Scheduled Automation
Create automation scripts that:
- Process files
- Send emails
- Generate reports
- Update external systems
using familiar JavaScript syntax.
Cloud Integration
Connect IBM i applications to modern platforms such as:
- Microsoft 365
- Azure
- AWS
- Salesforce
- HubSpot
- Stripe
without needing complicated middleware solutions.
Accessing Db2 for i from Node.js
One of the biggest advantages of running Node.js on IBM i is the ability to access Db2 for i directly.
Using IBM-provided drivers and open-source libraries, developers can execute SQL statements and retrieve results quickly.
For example, a Node.js application could:
- Accept a web request.
- Query Db2 for customer information.
- Return JSON data.
- Display results in a browser or mobile app.
All within milliseconds.
The Best of Both Worlds
One of the biggest misconceptions is that learning Node.js means abandoning RPG.
Nothing could be further from the truth.
The most successful IBM i modernisation projects often combine:
- RPG for business rules
- Db2 for i for data storage
- Node.js for APIs and modern services
- Web frameworks for user interfaces
Each technology does what it does best.
Getting Started with Node.js on IBM i
Getting started is easier than ever thanks to IBM’s commitment to open-source technologies.
The typical journey looks like this:
- Install Node.js from the IBM i Open Source package repository.
- Use Access Client Solutions (ACS) or SSH.
- Create a simple JavaScript program.
- Connect to Db2 for i.
- Build your first web service.
- Start modernising one application at a time.
No big-bang project required.
No expensive application rewrite necessary.
Just practical, incremental modernisation.
Simply put – Node.Js lets you run JavaScript on your IBM i System

You can find out more about running Node.js applications on IBM i from the Node.js product Web page
Many developers are basing the architecture of their real-time applications on the Node.js framework because of its inherent event-driven architecture and non-blocking I/O API. But the power of that architecture can’t be realized unless the hosting environment provides enterprise-grade scalability and reliability, and that is where the IBM® i platform enters into the picture.
To find out everything about running Node.js applications on IBM i, see the IBM i Open Source Technologies support page.
Why Should IBM i Developers Care?
Modern businesses expect systems to communicate.
- Customers want mobile apps.
- Web developers want APIs.
- Management wants dashboards.
And somehow the IBM i always ends up in the middle of it all.
Node.js provides a modern way to expose business logic and data stored on IBM i without replacing the applications that already work perfectly well.
Rather than rewriting decades of RPG applications, you can extend them.
Think of Node.js as a modern front door connected to your trusted IBM i back office.
Final Thoughts
Node.js has become one of the most important modernisation technologies available on IBM i today. It gives developers a fast, flexible, and widely adopted platform for building APIs, web applications, automation tools, and cloud integrations while continuing to leverage the security, reliability, and scalability of IBM i.
If you’re an RPG developer looking to expand your skills, Node.js is one of the best technologies you can add to your toolbox.
After all, your IBM i already contains the valuable business logic and data.
Node.js simply helps you share it with the modern world.
And unlike some modern technologies that appear with much excitement and disappear six months later, Node.js is here to stay. Think of it as adding a turbocharger to your IBM i rather than replacing the engine.
IBM-i and Node.js : Modern JavaScript on your Power Business Server
Your IBM i has been running the business for decades, and it’s not going anywhere. While today’s world runs on JSON, REST APIs, and modern web apps, you don’t need to replace what already works. Node.js runs natively on IBM i alongside your RPG and Db2, making modernization easier than you might think. In this hands-on course, I’ll take you from the basics to building a working web application, step by step.
