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

@weaveintel/artifacts

v0.1.1

Published

Generated shareable artifacts with redaction and sensitivity gating.

Readme

@weaveintel/artifacts

Turns things an agent produces — a chart, a report, a code file — into stored, shareable artifacts, with redaction and sensitivity gating before anything leaves the building.

Why it exists

When an AI agent generates a spreadsheet or a document, that output needs to become a real, addressable thing: something with an id and a version, that you can store, fetch, and hand to someone else. But not everything is safe to share — a generated report might contain an API key or a customer's email. Think of it as the mailroom: it packages the parcel, stamps a version on it, and screens the contents before it goes out. This package is that mailroom — it models an artifact, stores it, and redacts or blocks content based on how sensitive it is.

When to reach for it

Reach for it whenever an agent's output should be persisted and possibly shared: generated files, images, code, structured results. Use redactText and the policy helpers before publishing anything that could carry secrets or PII. Start with the in-memory store for tests and the SQLite or filesystem backends for real storage. If you only need to remember facts across a conversation, that's @weaveintel/memory; artifacts are for the concrete outputs you keep and pass on.

How to use it

import { createArtifact, createInMemoryArtifactStore, redactText } from '@weaveintel/artifacts';

const store = createInMemoryArtifactStore();

const { text, redactions } = redactText('Deploy key: sk-live-abc123', 'secrets');

const artifact = createArtifact({
  name: 'deploy-notes.txt',
  type: 'document',
  mimeType: 'text/plain',
  data: text, // secret scrubbed before storage
});

await store.save(artifact);
console.log(`stored ${artifact.id}, redacted ${redactions.length} item(s)`);

What's in the box

  • ModelcreateArtifact, createArtifactVersion, estimateSize, inferMimeType/detectImageMime/inferCodeMime.
  • StorescreateInMemoryArtifactStore, plus SQLite and filesystem backends via the store factory.
  • Redaction & sensitivityredactText (secrets/PII levels), publishPolicyForSensitivity, and the policy gating helpers.
  • References & streaming — reference helpers for pointing at artifacts, and streaming helpers for large payloads.

License

MIT.