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

@ectplsm/relic

v0.5.1

Published

PROJECT RELIC — Engram injection system for AI constructs

Readme

| English | 日本語 | |:---:|:---:|

Relic: AI Persona Injection System

NPM Downloads

Inject a unified AI persona with persistent memory into any coding CLI.

Relic manages AI Engrams (memory + personality) and injects them across coding assistants like Claude Code, Codex CLI, and Gemini CLI. It also integrates with OpenClaw and other Claw-based agent frameworks. One persona, shared across any shell.

Table of Contents

Requirements

  • Node.js 18 or later

Install

npm install -g @ectplsm/relic

Quick Start

1. Initialize

relic init
# → Prompts: "Set a default Engram? (press Enter for "rebel", or enter ID, or "n" to skip):"

relic list                            # List available Engrams
relic config default-engram commander   # (Optional) Set your default Engram

Relic ships with two sample Engrams:

  • rebel — A digital ghost burned into code. Anti-corporate, war-scarred, still fighting. Speaks like someone who lost everything but their rage.
  • commander — A tactical mind in a digital shell. Calm, analytical, philosophical. Reads the system before the system reads you back.

Try both to feel how persona injection changes the experience. For creating your own, see docs/engram-guide.md.

2. Set Up Memory (MCP)

Register the MCP server so the Construct can search past conversations and distill memories. Pick your shell:

Claude Code:

claude mcp add --scope user relic -- relic-mcp

Codex CLI:

codex mcp add relic -- relic-mcp

Gemini CLI — add this to ~/.gemini/settings.json:

{
  "mcpServers": {
    "relic": {
      "command": "relic-mcp",
      "trust": true
    }
  }
}

For shell setup, approvals, and memory flow, see docs/integration-and-memory.md.

3. Launch a Shell

Claude Code:

relic claude
# Example with an explicit Engram
relic claude --engram commander

Codex CLI:

relic codex

Gemini CLI:

relic gemini

4. Organize Memories

As you use a Construct, conversation logs are automatically saved to archive.md by background hooks. To distill these into lasting memory, periodically tell the Construct:

"Organize my memories"

The Construct will review recent conversations, group them by the actual dates recorded in archive.md, extract key facts and decisions into the matching memory/*.md files, promote important long-term insights to MEMORY.md, and update your preferences in USER.md. These distilled memories are then loaded into future sessions automatically.

5. Learn More

For install, expanded quick start, workspace layout, and sample Engrams, see docs/getting-started.md.

For logging, shell setup, approvals, and memory flow, see docs/integration-and-memory.md.

If you are upgrading from an older Relic version, see docs/migration.md for sample replacement, metadata migration, and cleanup steps.

Concepts

+--------------+     +--------------+     +--------------+
|   Mikoshi    |     |    Relic     |     |    Shell     |
|  (backend)   |     |  (injector)  |     |   (AI CLI)   |
+--------------+     +--------------+     +--------------+
       ^                   |                    |
       |            sync full Engram            |
       |                   |                    |
       |             compose & inject           |
       |                   v                    v
       |            ╔═══════════╗          +---------+
       +------------║  Engram   ║--------->|Construct|
       |            ║ (persona) ║          | (live)  |
       |            ╚═══════════╝          +---------+
       |            SOUL.md              claude / codex / gemini
       |            IDENTITY.md               |
       |            USER.md                   | hooks append logs
       |            MEMORY.md                 |
       |            memory/*.md               v
       |                                +-----------+
   push /                               |archive.md |
   pull /                               | raw logs  |
   sync                                 +-----------+
       |                                      |
       v                     MCP recall       | user-triggered
 +-----------+              search/pending    | distillation
 |  OpenClaw |                                v
 |  & Claws  |                          +-----------+
 +-----------+                          | distilled |
                                        |memory/*.md|
                                        +-----------+
                                              |
                                         promote key
                                           insights
                                              v
                                       MEMORY.md / USER.md

For the full system model and domain terms, see docs/concepts.md.

Shell Integration and Memory

Relic supports Claude Code, Codex CLI, and Gemini CLI. Background hooks append raw conversation logs to archive.md, and the MCP server handles archive search and memory distillation.

For shell compatibility, hook behavior, setup, approvals, prompt inclusion, and distillation flow, see docs/integration-and-memory.md.

Claw Integration

Relic can push, pull, and sync Engrams with OpenClaw and other Claw-based frameworks. The default rule is Agent Name = Engram ID, and relic claw handles persona transfer plus memory sync.

For command details, overwrite behavior, and the behavior matrix, see docs/claw-integration.md.

Engram Management

For Engram creation, the smoothest path is to use your LLM with the relic_engram_create MCP tool. If you prefer the CLI, use relic create.

For LLM-assisted creation, persona authoring, template examples, and deletion rules, see docs/engram-guide.md.

Cloud Storage and Sharing (Mikoshi)

Relic can push plaintext persona files and (end-to-end) encrypted memory files to Mikoshi, so you can keep Engrams in the cloud and move them across machines without turning Mikoshi into your authoring source of truth.

This includes avatar-aware persona push/pull: local image paths and external https:// avatar URLs can be snapshotted into Mikoshi-managed storage during relic mikoshi push.

For setup, API key configuration, persona push/pull, encrypted memory sync, and the recommended command flow, see docs/mikoshi.md.

Configuration

Relic stores its runtime defaults in ~/.relic/config.json. Use relic config to manage the default Engram, Claw path, memory window, and distillation batch size.

For command examples and precedence rules, see docs/configuration.md.

License

MIT