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

@arnilo/prism-work-tools

v0.3.0

Published

Optional identity-scoped Microsoft 365 and Google Workspace work connector tools for Prism.

Readme

@arnilo/prism-work-tools

Optional identity-scoped Microsoft 365 / Google Workspace connectors for Prism.

Install

npm install @arnilo/prism-work-tools

Host must install CLIs separately (@pnp/cli-microsoft365, @googleworkspace/cli) and pass pinned absolute binary paths (path.isAbsolute; relative/empty/NUL values fail at construction). Prism never shells model-built commands.

Isolated subprocess environment (0.2.0): children never inherit the host environment. They receive a fixed allow-listed base (PATH, LANG, LC_ALL, TZ, SYSTEMROOT/SystemRoot, TEMP, TMP, PATHEXT, COMSPEC), your explicit non-secret env map, and the late-bound per-identity token env. HOME is forced to the isolated configDir and CLIMICROSOFT365_DISABLETELEMETRY to "1"; overrides, duplicates, NUL, and over-cap (64 names / 64 KiB) env fail closed before spawn. configDir must also be absolute. See Subprocess environment isolation for the migration from 0.1.7 ambient-env behavior.

Microsoft 365

import { createWorkTools, createMicrosoft365CliAdapter, createMemoryIdempotencyStore } from "@arnilo/prism-work-tools";
// or: import { createMicrosoft365CliAdapter } from "@arnilo/prism-work-tools/microsoft365";

const microsoft365 = createMicrosoft365CliAdapter({
  binary: "/usr/local/bin/m365",
  configDir: "/var/prism/m365/tenant-a/user-1",
  identity,
});

Google Workspace

import { createGoogleWorkspaceCliAdapter } from "@arnilo/prism-work-tools/google-workspace";

const googleWorkspace = createGoogleWorkspaceCliAdapter({
  binary: "/usr/local/bin/gws",
  configDir: "/var/prism/gws/tenant-a/user-1",
  identity,
});

const tools = createWorkTools({
  microsoft365,
  googleWorkspace,
  idempotencyStore: createMemoryIdempotencyStore(),
  approval: { isApproved: async ({ draftId }) => hostApproved(draftId) },
  externalRecipients: { allow: (addr) => addr.endsWith("@contoso.com") },
});

Hard-coded GWS ops (docs-verified): Gmail list/get/+send, Calendar list/insert, Drive list/create/permissions, Tasks list/insert/patch; Docs/Sheets/Slides create gated. --page-all NDJSON strictly parsed. auth/schema/anonymous share rejected.

Shared normalizers map both providers onto WorkMailMessage / WorkCalendarEvent / WorkFileItem / WorkTaskItem.

Mutations create drafts first; CLI side effects run only after approval.isApproved. Credentials never appear in argv. Optionally pass a tokenProvider (0.0.14, e.g. createOAuthWorkTokenProvider() from @arnilo/prism-credentials-node) to inject a late-bound per-identity token via env var per call — never argv/model context; a missing/expired/revoked/cross-identity token fails the call closed before any exec.

Durable idempotency (0.0.23)

createMemoryIdempotencyStore() is a single-process/test adapter. For replicas, pass createPostgresEnterpriseState({ pool }).workIdempotency to createWorkTools. It atomically claims before connector dispatch and exposes begincomplete / fail / markUnknown transitions guarded by claim token plus version. Only completed mutations replay their bounded summary. unknown is an ambiguous external effect and must be reconciled with resolveUnknown; never auto-replay it. This is deduplication, not exactly-once delivery.

See Work tools and Enterprise PostgreSQL state.

Limits

Defaults / hard caps match Phase 8 freeze (pagination 20/100, stdout 2/16 MiB, timeout 60s/10min, concurrency 2/8).