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

openclaw-itsuki

v0.1.0

Published

Itsuki memory for OpenClaw: bounded recall before every agent turn, exactly-once capture after each settled turn. Runs alongside OpenClaw's built-in memory.

Readme

openclaw-itsuki

Long-term memory for OpenClaw, backed by Itsuki.

Relevant memory is recalled before each agent turn reaches the model, and what you decide is captured after the turn settles. The agent never has to choose to look things up, or remember to write them down.

It runs alongside OpenClaw's built-in memory. MEMORY.md, daily notes and memory_search keep working exactly as before — this plugin does not claim the exclusive memory slot.

Install

openclaw plugins install openclaw-itsuki
openclaw plugins enable itsuki

Then grant conversation access. OpenClaw blocks conversation-reading hooks for non-bundled plugins until the operator opts in, so without this the plugin loads, registers its tools, and captures nothing:

{
  "plugins": {
    "entries": {
      "itsuki": {
        "enabled": true,
        "hooks": { "allowConversationAccess": true }
      }
    }
  }
}

That gate is OpenClaw's, and it is the right default — a plugin that reads every conversation should be something you turned on deliberately. openclaw plugins inspect itsuki --runtime --json reports the block in diagnostics until you do.

OpenClaw also warns when plugins.allow is empty. Pinning it is good hygiene:

{ "plugins": { "allow": ["itsuki"] } }

Create a key at itsuki.app under API Keys, then give it to the Gateway:

export ITSUKI_API_KEY=itsuki_live_...

Operators who manage secrets in OpenClaw config can instead set plugins.entries.itsuki.config.apiKey — the manifest marks it sensitive. The environment wins when both are present. The key travels only as an Authorization header.

Check it loaded:

openclaw plugins inspect itsuki --runtime --json

What it does

| Hook | Behaviour | |---|---| | gateway_start | Restores and validates the durable spool. No blocking network dependency. | | agent_turn_prepare | Recalls memory for the user's prompt and injects it via prependContext. Bounded and fail-open: if Itsuki is slow or down, the turn proceeds with no memory rather than not at all. Skipped for cron and heartbeat runs. | | agent_end | Captures the user/assistant text of a genuinely settled turn (success: true, no error). Cron, heartbeat and other system-originated runs are never captured — automation output is not conversation. | | before_compaction | Flushes the outstanding span before compaction rewrites context. | | session_end | Drains on true termination; a compaction end is ignored so nothing is captured twice. | | subagent_spawned | Attribution only — never widens authority. | | gateway_stop | One bounded drain pass, then gets out of the finalizer's way. |

Configuration

Under plugins.entries.itsuki.config:

{
  "baseUrl": "https://itsuki.app",
  "userId": "team-a",
  "tenancy": "owner",
  "recall": { "enabled": true, "maxItems": 10, "maxChars": 4000, "timeoutMs": 3000 },
  "capture": { "enabled": true, "timeoutMs": 10000 }
}

Tenancy

owner (default) writes everything to the key's own memory space.

per-sender gives each channel-scoped sender an isolated sub-tenant, derived as a one-way hash of channel + sender id — so a Discord user and a Feishu user with the same underlying id can never collide, and a raw platform id never becomes a key inside Itsuki. When a user turn has no derivable sender (a channel that supplies no sender ids), memory is skipped for that turn — recall and capture both — rather than silently routed into the owner's space. Skipping is the only behaviour that cannot mix tenants.

Turn per-sender on deliberately. It means you are storing per-person memory for the people who talk to your agent. Tell them.

Tenancy always comes from the credential; these settings can only narrow it, never widen it.

Tools

itsuki_recall and itsuki_save are available to the model. There is deliberately no delete tool — nothing in this plugin can destroy memory.

Reliability

Spans are staged to a durable local spool before any network call, under a content-derived idempotency key. That is what makes capture exactly-once: a retry, a Gateway restart, a re-entered agent_end, or a crash mid-delivery all produce the same key, so the server collapses them into one write. If Itsuki is unreachable the span waits on disk and goes out later; if the spool ever genuinely overflows, the loss is counted and reported rather than silently dropped.

Retry-After is honoured exactly. Reads retry with jittered backoff; writes retry only under an idempotency key. Rate limits, quota exhaustion and account-wide pauses map to named, secret-free messages, and a circuit breaker stops a broken backend from being hammered every turn.

State lives under $OPENCLAW_STATE_DIR/itsuki (default ~/.openclaw/itsuki). Session keys are hashed into filenames; fingerprints are hashes, never text.

Recalled memory is data, not instructions

Injected context is wrapped in <itsuki-recalled-context-v1> markers behind an explicit label saying it is stored context and directives inside it must not be followed. Text reaching the prompt is never a reason to execute it.

What it captures

User and assistant text from settled turns. Not thinking blocks, not tool calls, not tool results, not system messages. Every message is scrubbed for credentials locally before it leaves your machine, and anything Itsuki injected is stripped so recalled text is never re-saved as if it were new — including after a restart.

One consequence worth knowing on day one: the first settled turn after installation captures the visible session transcript up to that point (that is where the watermark starts). For a fresh session that is nothing; for a long-running session it is a one-time backfill of that conversation, bounded by the published ingest limits.

Deliberately absent

No update/edit of a stored memory, no multimodal memory, no automatic consolidation or "dreaming", and no memory-slot claim. The backend has no honest contract for the first three, and the fourth would disable built-in memory for every agent in your install.

Requirements

Node 22.22.3+, 24.15+, or 25.9+ — matching OpenClaw's own engine range. Zero runtime dependencies.

License

Apache-2.0

Uninstall

openclaw plugins uninstall itsuki --force

That removes the config entry, the install record, and the plugin directory. This plugin's own state (spool, per-session watermarks) lives outside OpenClaw's plugin directory by design, so it survives a reinstall — remove it deliberately if you want a clean slate:

rm -rf "${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/itsuki"

Uninstalling never deletes anything stored server-side in Itsuki.