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

@kitakitsune/memoria

v0.1.1

Published

Structured memory system for AI agents with local markdown vault and Notion sync

Downloads

200

Readme

Memoria

Structured memory system for AI agents with local markdown vault and two-way Notion sync.

Local-first. Markdown-first. Notion-synced.

Requirements

  • Node.js 18+

Install

npm install -g @kitakitsune/memoria

Or run locally:

git clone <repo-url>
cd memoria
npm install
npm run build

Quick Start

# Initialize a vault
memoria init ~/memory --name my-brain

# Store memories
memoria remember decision "Use PostgreSQL" --content "Chosen for JSONB and reliability"
memoria remember lesson "Cache invalidation" --content "TTL-based is simpler than event-driven"
memoria store inbox "meeting-notes" --content "Discussed Q2 roadmap" --tags "meetings,planning"

# Search
memoria search "postgresql"

# List documents
memoria list
memoria list decisions

# Session lifecycle
memoria wake
memoria checkpoint --working-on "auth module" --focus "token refresh"
memoria sleep "finished auth module" --next "deploy to staging"

# Check vault status
memoria status

Notion Integration

Memoria syncs your local vault to Notion, giving you a rich UI for browsing and editing memories while keeping local markdown files as the source of truth.

Setup

  1. Create a Notion integration and copy the token.
  2. Create a root page in Notion and share it with your integration.
  3. Copy the page ID from the URL (the 32-character hex string).
memoria setup-notion --token ntn_your_token_here --page abc123def456...

Sync

# Push local changes to Notion
memoria sync --push

# Pull Notion changes to local
memoria sync --pull

# Two-way sync (default)
memoria sync

# Preview changes without modifying anything
memoria sync --dry-run

# On conflict, prefer Notion's version over local
memoria sync --pull --prefer-notion

How Sync Works

  • Push: Local documents are compared against the last sync state. New or updated files are created/updated in Notion.
  • Pull: Notion databases are queried for pages modified since the last sync. Changes are written back to local markdown.
  • Conflicts: When both sides have changed, local is preferred by default. Use --prefer-notion to override.
  • Databases: One Notion database is created per category (decisions, lessons, facts, etc.) under the root page.

CLI Reference

| Command | Description | |---------|-------------| | memoria init <path> | Initialize a new vault | | memoria remember <type> <title> | Store a typed memory | | memoria store <category> <title> | Store in explicit category | | memoria search <query> | Search by text query | | memoria list [category] | List documents | | memoria get <id> | Retrieve a document | | memoria wake | Start a session | | memoria sleep <summary> | End session with handoff | | memoria checkpoint | Mid-session snapshot | | memoria status | Vault stats and session state | | memoria setup-notion | Configure Notion integration | | memoria sync | Sync with Notion |

Memory Types

Used with memoria remember <type>:

  • fact -- raw information, data points
  • decision -- choices made with reasoning
  • lesson -- insights, patterns learned
  • commitment -- promises, goals, obligations
  • preference -- likes, dislikes, how you want things
  • relationship -- people, connections
  • project -- active work, ongoing efforts

Each type maps to a category folder in the vault.

Vault Structure

~/memory/
  .memoria.json           # vault configuration
  .sync-state.json        # Notion sync tracking
  decisions/
    use-postgresql.md
  lessons/
    cache-invalidation.md
  facts/
    ...
  sessions/
    current.md            # active session state
    handoffs/
      2026-02-21.md       # session handoff documents

Each document uses YAML frontmatter:

---
title: Use PostgreSQL
type: decision
tags:
  - database
  - infrastructure
created: 2026-02-21T10:00:00Z
updated: 2026-02-21T10:00:00Z
---
Chosen for JSONB support and reliability. Evaluated against MySQL and SQLite.

AGENTS.md Integration

Add these to your agent's instructions for session-aware, proactive memory:

## Memoria

- Set `MEMORIA_VAULT=~/memory` (or pass `-v ~/memory` on every command).
- Run `memoria wake` at session start to restore context.
- Run `memoria checkpoint --working-on "<task>"` during long tasks.
- Run `memoria sleep "<summary>" --next "<next steps>"` before ending.
- Before complex decisions, run `memoria search "<query>"` first.
- Store important information immediately -- do not wait to be asked:
  - Facts the human shares (name, location, health, settings, credentials context)
  - Decisions made and why
  - Preferences expressed ("I prefer...", "I always...", "I never...")
  - Lessons learned from mistakes or discoveries
  - Commitments, goals, or deadlines
  - People mentioned with context
  - Projects being worked on
  - Use: `memoria remember <type> "<title>" --content "<details>"`
  - Types: `fact`, `decision`, `preference`, `lesson`, `commitment`, `relationship`, `project`
- After storing, always sync: `memoria sync --push`
- If in doubt whether something is worth storing, store it.

License

MIT