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

@morlay/session-rdb

v0.1.7

Published

RDB durable session backend for DeepSeek Harness: implements both session-persistence and session-branch (rewind / retry / fork) providers.

Readme

@morlay/session-rdb

会话持久化与分支回退的 RDB 后端(SQLite / PostgreSQL):提供 ctx.sessionPersistence(上游 SessionHandle 模型:create / open / flush / stat / list)与 ctx.sessionBranch(rewind / retry / fork 的 provider 面),并接管 ctx.sessionQuery(全文检索 disabled)与 $DSH_HOME/storages 的两个域 (workspace、投影 checkpoint)。

用法

配置就是这一行的 config(聚合层 @morlay/better-session 的 session-rdb 行、profile patch,或设置页改的 那份 entry config):

- id: session-rdb
  name: "@morlay/session-rdb"
  config:
    type: sqlite
    path: /absolute/path/to/sessions.sqlite # 自定义路径请用绝对路径;省略则由 bundle patch 的默认值兜底
    journalMode: wal
    busyTimeout: 5000

PostgreSQL 同理:type: postgres + connectionString(可加 schema,默认 public)。字段、默认值、装配默认值的 来源与「改配置由 Loader 重挂这一行生效」见设计总览的「配置门面」。

管理面的 HTTP 通道统一挂在 /api/morlay/v1/session 前缀下(均为 POST,body { sessionId } 或列表请求 { query?, includeSubagents?, page?, pageSize? }):/rows(完整语料,含归档)、/export、/import、 /delete、/gc、/usage(前缀与上游分家的理由见 ADR-管理面HTTP路由前缀与上游分家)。旧 $DSH_HOME/storages JSON 的导入是包内 API importStorages(src/import-storages.ts,不在包出口里)。