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

session-archiver

v0.4.1

Published

Automatic session archiver for AI coding assistants with AI-powered analysis and categorization

Readme

session-archiver

🤖 AI-powered session summary and archiving system for AI coding assistants with multi-model support.

✨ Features

  • 🤖 Multi-AI Provider Support - Works with OpenAI (GPT-4), Google Gemini, GLM (智譒AI), and Ollama
  • 🔄 Smart Template System - Configurable templates with default, simple, and tech-focused options
  • 📁 Organized Archive Structure - Stores sessions in Obsidian vault with rich metadata
  • 🔍 Intelligent Search - Full-text search across all archived sessions
  • ⚙️ Flexible Configuration - YAML/JSON config support with shared template directories
  • 🎯 Smart Model Switching - Easy model switching with built-in tools

🚀 Installation

npm install -g session-archiver@latest

📖 Quick Start

# 1. Initialize the archiver
session-archiver init

# 2. Configure AI provider (optional - uses GLM by default)
node scripts/model-switcher.js switch glm glm-4.5-air

# 3. Generate session summary
session-archiver generate

🎨 Configuration

AI Provider Selection

# List available models
node scripts/model-switcher.js list

# Switch models
node scripts/model-switcher.js switch glm glm-4.5-air    # GLM (推薦)
node scripts/model-switcher.js switch openai gpt-4-turbo  # OpenAI
node scripts/model-switcher.js switch google gemini-1.5-pro # Google
node scripts/model-switcher.js switch ollama mistral       # Local

Template Configuration

Configure in .project-config/session-archiver.json:

{
  "templates": {
    "templateType": "default",
    "sharedTemplatesPath": "G:\\我的雲端硬碟\\2ndBrain\\範本 Templates"
  }
}

Available template types:

  • default - Full comprehensive template
  • simple - Minimalist format
  • tech - Tech-focused template
  • custom - Your own template

📚 Documentation

🔧 Supported AI Providers

| Provider | Models | Cost | Best For | |----------|--------|------|----------| | GLM | glm-4.5-air, glm-4.7-flash | Low | Daily development ⭐ | | OpenAI | gpt-4-turbo, gpt-4 | High | Complex analysis | | Google | gemini-1.5-pro, gemini-1.5-flash | Medium | Multimodal tasks | | Ollama | mistral, llama2, codellama | Free | Local testing |

📦 Project Structure

your-project/
├── .project-config/
│   └── session-archiver.json    # Project configuration
├── templates/
│   └── session-draft.md          # Custom template (optional)
└── scripts/
    ├── model-switcher.js         # Model switching tool
    └── edit-config.js           # Configuration editor

🎯 Usage Examples

# Generate session draft with current model
session-archiver generate

# Switch to faster model for quick drafts
node scripts/model-switcher.js switch glm glm-4.7-flash
session-archiver generate

# Use high-quality model for important sessions
node scripts/model-switcher.js switch openai gpt-4-turbo
session-archiver generate

# Edit configuration directly
node scripts/edit-config.js set ai.temperature 0.8
node scripts/edit-config.js show

🌐 Shared Templates

Place templates in your shared directory for use across projects:

G:\我的雲端硬碟\2ndBrain\範本 Templates\
├── session-draft.md           # Default template
├── session-draft-simple.md    # Simple template  
└── session-draft-tech.md      # Tech template

📄 License

MIT

🤝 Support

  • Issues: https://github.com/galaxy-luke/session-archiver/issues
  • Documentation: https://github.com/galaxy-luke/session-archiver/wiki
  • NPM: https://www.npmjs.com/package/session-archiver

🎉 Perfect for developers using AI coding assistants who want intelligent session tracking with flexible AI provider options!