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

@profoundlogic/pjscodermake

v0.2.1

Published

Sync & build tool for Profoundjs IBM i development

Readme

pjscodermake

Internal tool. Published publicly on npm for installation convenience, but intended for use by Profound Logic Software and authorized customers only. See LICENSE.txt.

Sync & build tool for ProfoundJS IBM i development. Lets you edit profoundjs-ibmi and profoundui-ibmi checkouts on a Unix-like workstation, then sync changed sources and rebuild on a remote IBM i over SSH.

Two binaries:

  • pjsCoderMakeInstances — sync & build. On the first run (no .pjscodermake/state.json) it does a full setup: allocates libraries, restores savefiles, unpacks tarballs, runs initial build. On subsequent runs it does an incremental rebuild: detect changed files → tar+ssh sync → stop service → make → start service. Repos run in parallel.
  • pjsCoderRemoveInstances — tear down the remote workspace (stop services, drop libraries, remove rootFolder, delete state).

To re-initialize, run pjsCoderRemoveInstances then pjsCoderMakeInstances.

Installation

npm install -g @profoundlogic/pjscodermake

Requires Node.js >= 22 and an SSH client.

Project layout

pjsCoderMakeInstances is run from a workspace directory that contains the two repo checkouts as siblings:

my-project/
├── profoundjs-ibmi/        # git checkout
├── profoundui-ibmi/        # git checkout
├── proddev/                # written by first-run setup (.env, runtime config)
├── tmp/                    # ssh control sockets, transient
└── .pjscodermake/
    └── state.json           # written on first run; consumed by subsequent runs

Connection

pjscodermake connects to the remote IBM i via the SSH host alias pjscodermake. You must have a Host pjscodermake block in ~/.ssh/config with HostName, User, and IdentityFile set. In a coderflow workspace this is materialized automatically from an external_connection named pjscodermake.

pjsCoderMakeInstances writes setup state to ./.pjscodermake/state.json and reuses it on subsequent runs:

  • rootFolder — remote workspace root (e.g. /home/<user>/<suffix>)
  • libraries.pui, libraries.pjs — newly allocated IBM i libraries
  • repos.<name>.commit — tarball baseline commit per repo (used for first-build SHA diff)
  • repos.<name>.syncedAt — last successful sync timestamp per repo (used for incremental mtime mode), null until the first successful build

Usage

pjsCoderMakeInstances
pjsCoderMakeInstances --debug

First run (no state.json)

  1. SSH to the remote and call BUILDTOOLS/CRTLIBS to allocate PUIWRKLIB / PJSWRKLIB.
  2. Verify each local *-ibmi repo is at-or-ahead of the tarball commit (refuses to clobber newer with older).
  3. In parallel: unpack profoundjs.tgz, profoundjs_node_modules.tgz, proddev.tgz, profoundui-ibmi.tgz, profoundjs-ibmi.tgz; restore PUI and PJS savefiles into the new libraries.
  4. Write proddev/.env (locally and remotely).
  5. Persist setup state to ./.pjscodermake/state.json.
  6. Run an initial make for each repo as soon as its prereqs land — does not wait for node_modules unpack.

Subsequent runs (state.json exists)

Per repo, in parallel:

  1. Detect changes — first incremental run uses git diff <tarballCommit>..HEAD + dirty + untracked. Subsequent runs use mtime > <repo>SyncedAt over tracked + untracked files.
  2. Synctar the changed files, pipe over SSH, tar -x on the remote into $ROOTFLR/<repo>.
  3. Stop serviceENDTCPSVR for *HTTP (PUI) or *PJS (PJS instance).
  4. Makemake in the remote repo dir with PUIWRKLIB / PJSWRKLIB exported.
  5. Start serviceSTRTCPSVR.
  6. On success, persist <repo>SyncedAt (the run's start time, so edits during the sync get caught next build).

Final stdout line of every run is a single JSON object with per-repo results ({name, files, synced, stopped, made, started, durationMs}) — easy to consume programmatically.

Development

npm test         # node --test test/unit/**/*.test.js
npm run lint

See ARCHITECTURE.md for module layout and design notes.