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

@remnic/import-weclone

v9.7.15

Published

Import WeClone-preprocessed chat exports to bootstrap Remnic memory

Readme

@remnic/import-weclone

Bootstrap a Remnic memory store from WeClone-preprocessed chat exports (Telegram, WhatsApp, Discord, Slack) instead of waiting for memory to accumulate through daily AI-tool usage.

This is an optional companion package, installed separately. Importing it registers the WeClone adapter with Remnic's core bulk-import registry as a side effect — no explicit setup needed.

Install

npm install @remnic/import-weclone

WeClone already handles the hard parts of chat ingestion — platform-specific export parsing, PII detection and redaction, and deduplication. Rather than duplicate that, this package consumes WeClone's preprocessed JSON and maps it into the bulk-import contract defined by @remnic/core.

CLI usage

WeClone import runs through the orchestrator-backed bulk-import command in @remnic/core, exposed under the openclaw engram command namespace (Remnic's hosted CLI surface):

# Dry-run: parse, validate, and report counts without persisting.
openclaw engram bulk-import \
  --source weclone \
  --file ./preprocessed_telegram.json \
  --platform telegram \
  --dry-run

# Persist: run extraction over the export and write memories to disk.
openclaw engram bulk-import \
  --source weclone \
  --file ./preprocessed_telegram.json \
  --platform telegram

Persistence flows through the Remnic orchestrator's extraction pipeline, so each batch is extracted the same way an organic conversation would be. Memories land under the orchestrator's default-namespace root (memoryDir/facts/ by default) tagged trustLevel: "import". Use --dry-run to validate an export before committing to the extraction cost.

The generic remnic import --adapter <name> command covers the ChatGPT, Claude, Gemini, Mem0, and Supermemory importers. WeClone uses the core bulk-import source registry instead, which is why it runs through bulk-import rather than remnic import.

Supported platforms

| Platform | --platform value | |-----------|--------------------| | Telegram | telegram | | WhatsApp | whatsapp | | Discord | discord | | Slack | slack |

The parser defaults to telegram when no platform is given. Unknown platforms are rejected.

Input schema

The parser accepts either a wrapper object with a messages array or a raw array of messages. Required per-message fields: sender, text, timestamp (ISO-8601); optional: message_id, reply_to_id.

{
  "platform": "telegram",
  "messages": [
    { "sender": "Alice", "text": "hello", "timestamp": "2025-01-10T08:00:00.000Z" }
  ]
}

Programmatic use

The adapter registers automatically on import; look it up from the core registry, or drive the pipeline stages directly:

import { readFileSync } from "node:fs";
import { parseWeCloneExport } from "@remnic/import-weclone";
import { getBulkImportSource, runBulkImportPipeline } from "@remnic/core";

const adapter = getBulkImportSource("weclone");
const source = parseWeCloneExport(
  JSON.parse(readFileSync("./export.json", "utf8")),
  { platform: "telegram" },
);

// dryRun never calls the batch callback; real persistence supplies an
// ingest callback wired to the orchestrator (see `openclaw engram bulk-import`).
const result = await runBulkImportPipeline(
  source,
  { batchSize: 20, dryRun: true, dedup: true, trustLevel: "import" },
  async () => ({ memoriesCreated: 0, duplicatesSkipped: 0 }),
);

Tests that call clearBulkImportSources() can re-register the adapter via ensureWecloneImportAdapterRegistered().

Further reading

License

MIT