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

syncrona

v0.9.0

Published

Next-gen file syncer

Readme

syncrona

| npm: not yet published | node | license | CI | coverage | TypeScript | |:--:|:--:|:--:|:--:|:--:|:--:|

This module contains the core of SyncroNow AI. It is required to use SyncroNow AI at all. It can interact with other plugins after you configure them.

Credential resolution order

Commands resolve ServiceNow credentials in this order (first match wins):

  1. --instance-profile <name>SN_INSTANCE_<NAME> / SN_USER_<NAME> / SN_PASSWORD_<NAME> environment variables;
  2. plain SN_INSTANCE / SN_USER / SN_PASSWORD environment variables (a .env in the project root is loaded into the environment at startup);
  3. the global encrypted credential store (syncrona login, syncrona use).

Project-local sources deliberately beat the global store, and the MCP server follows the same precedence (see the mcp-server README).

Push recovery and locking

syncrona push maintains two state files in the project root (next to sync.config.js); both are safe to delete when no push is running:

  • sync.push.checkpoint.json — written after you confirm a push, updated with the per-record outcome, and removed when every record succeeds. If a push is interrupted or partially fails, the next push offers to resume only the failed records. Declining a confirmation prompt leaves no checkpoint behind.
  • sync.collaboration.lock.json — an atomically-created lock that prevents two concurrent pushes against the same workspace. A crash cannot leave it behind for long: locks older than 30 minutes are treated as stale and replaced automatically.

Push retries only network errors and retryable HTTP statuses (5xx/408/429); authentication failures fail fast instead of being retried.

Update notifications

The CLI performs a best-effort check for a newer published version at most once per day and, when one is available, prints a single notice to stderr (it never writes to stdout, so piped output stays clean). The check is non-blocking, swallows all failures, and never prevents a command from running.

The notifier is automatically skipped when:

  • running in CI (CI is set) or under tests (JEST_WORKER_ID is set), or
  • stderr is not an interactive terminal (e.g. output is piped).

To opt out explicitly, set either of these environment variables to 1 or true:

  • SYNCRONA_NO_UPDATE_NOTIFIER
  • NO_UPDATE_NOTIFIER

The last check is cached in ~/.syncrona/update-check.json.

Environment variables

Authentication method selection

SN_AUTH_METHOD selects the ServiceNow inbound REST auth method: basic (default), oauth-password, oauth-client-credentials, oauth-jwt-bearer, or api-key. When unset it is inferred for backward compatibility (OAuth password when a client id/secret pair and a password are present, otherwise Basic). Every variable below also accepts a per-profile _<NAME> suffix.

| Variable | Method | Purpose | | --- | --- | --- | | SN_OAUTH_CLIENT_ID / SN_OAUTH_CLIENT_SECRET | oauth-* | OAuth client id/secret (reused by password, client-credentials, jwt-bearer). | | SN_API_KEY | api-key | Inbound REST API key value. | | SN_API_KEY_HEADER | api-key | Header name override (default x-sn-apikey). | | SN_JWT_KEY | oauth-jwt-bearer | Path to (or inline) RS256 private-key PEM used to sign the assertion. | | SN_JWT_KID / SN_JWT_ISS / SN_JWT_SUB / SN_JWT_AUD | oauth-jwt-bearer | Optional JWT header kid and iss/sub/aud claim overrides (defaults derived from client id + user + instance). | | SN_CLIENT_CERT / SN_CLIENT_KEY | mTLS | Client certificate + private-key PEM paths (mutual TLS, combinable with any method). | | SN_CLIENT_KEY_PASSPHRASE | mTLS | Passphrase for an encrypted client key. |

SN_JWT_KEY, SN_CLIENT_CERT and SN_CLIENT_KEY are file paths — the key material is read at request time and never copied into the credential store.

Other variables

Besides the credential variables above (SN_INSTANCE / SN_USER / SN_PASSWORD and their named SN_*_<NAME> forms), the auth-method variables, and the update-notifier opt-outs, the core CLI reads:

| Variable | Purpose | | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | SYNCRONA_DATA_TABLES | Comma-separated allowlist of table names whose data records are materialized into the manifest (e.g. x_my_table,sys_choice). Empty/unset materializes none by default. | | SYNCRONA_INCLUDE_DATA_FIELDS | Materialize data fields for all tables. Truthy (1/true/yes/on) enables it; falsey (0/false/no/off) disables. Unset falls back to the allowlist above. | | SYNCRONA_MCP_SERVER_PATH | Explicit path to the MCP server entry (dist/index.js) used by syncrona mcp. Overrides the built-in workspace/node_modules lookup; useful for local development. |