npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-openibm

v0.1.7

Published

Create a new IBM i application — interactive scaffold with Express, NestJS, or plain Node.js

Readme

create-openibm

Scaffold a new IBM i application in seconds — interactive CLI that asks what you need and wires everything up.

npm create openibm@latest
# or
npx create-openibm
# or pass the project name directly
npx create-openibm my-ibmi-app

What it does

◆ create-openibm

◇ Project name
│  my-ibmi-app

◇ Framework
│  Express

◇ IBM i transport
│  HTTP  (SSH tunnel — recommended for development)

◇ Starter examples  (space to toggle, enter to confirm)
│  ◼ Program call
│  ◼ Table query

◇ Package manager
│  npm

◇ Initialize a git repository?
│  Yes

◇ Install dependencies now?
│  Yes

◆ Done! Next steps:

  cd my-ibmi-app
  cp .env.example .env
  # fill in IBMI_SYSTEM, IBMI_USER, IBMI_PASS
  npm run generate
  # if your schema has outbound declarations, deploy to IBM i:
  npm run setup:ibmi
  npm run dev

Options

| Question | Choices | |---|---| | Framework | None (plain Node.js), Express, NestJS | | Transport | HTTP (SSH tunnel), HTTPS, SSH (direct), ODBC (native DB2) | | Starter examples | Program call (XMLSERVICE *PGM), Table query (DB2 query builder) | | Package manager | npm, pnpm, Yarn | | Git init | Yes / No | | Install deps | Yes / No |


Generated structure

None (plain Node.js)

my-ibmi-app/
├── schema.ibmi          ← define your programs and tables here
├── src/
│   ├── index.ts         ← connect, call, query, disconnect
│   └── generated/ibmi/  ← created by: npm run generate
├── .env.example
├── tsconfig.json
└── package.json

Express

my-ibmi-app/
├── schema.ibmi
├── src/
│   ├── index.ts         ← Express server with IBM i routes
│   └── generated/ibmi/
├── .env.example
├── tsconfig.json
└── package.json

NestJS

my-ibmi-app/
├── schema.ibmi
├── src/
│   ├── main.ts
│   ├── app.module.ts
│   ├── ibmi/
│   │   ├── ibmi.module.ts      ← provides IBMiService
│   │   ├── ibmi.service.ts     ← wraps generated client, auto connect/disconnect
│   │   └── ibmi.controller.ts  ← HTTP endpoints
│   └── generated/ibmi/
├── .env.example
├── tsconfig.json
└── package.json

After scaffolding

cp .env.example .env

Fill in your IBM i credentials:

IBMI_TRANSPORT=http
IBMI_SYSTEM=your-ibmi-host
IBMI_USER=your-username
IBMI_PASS=your-password
IBMI_PORT=57700
IBMI_DATABASE=*LOCAL

Then generate the typed client from your schema:

npm run generate

This reads schema.ibmi and writes a fully typed TypeScript client to src/generated/ibmi/.

If your schema contains outbound declarations, run the setup script once per environment to upload RPG sources, compile SRVPGMs, and create DTAQs on IBM i:

npm run setup:ibmi

The script asks for SSH connection details and shows live progress per outbound.

Generated scripts

| Script | Description | |---|---| | generate | Run openibm generate — reads schema.ibmi, writes typed client | | setup:ibmi | Deploy outbound RPG sources and compile on IBM i (only needed if schema has outbound blocks) | | dev | Start the development server | | build | Compile TypeScript |


Transport notes

| Transport | Notes | |---|---| | HTTP | Recommended for development. Requires an SSH tunnel: ssh -L 57700:localhost:57700 user@ibmi-host | | HTTPS | Same as HTTP but TLS. Default port 47700. | | SSH | Direct connection. Install the ssh2 peer dep: npm install ssh2. Also install xmlservice-utils on IBM i. | | ODBC | Native DB2 pool. Best for production. Install odbc and the IBM i Access ODBC Driver. |


License

MIT