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

suveng-dsh-plugin-memory-provider-openviking

v0.5.10

Published

OpenViking Provider child for the Memory Spaces Source.

Downloads

572

Readme

suveng-dsh-plugin-memory-provider-openviking

An adapter for an existing OpenViking HTTP service and its filesystem-shaped memory resources.

Requires a reachable OpenViking endpoint supporting POST /api/v1/content/write with mode: "create" and wait: true; tags are set afterwards through POST /api/v1/content/set_tags when the server offers it. Agent-authored memories use unique Markdown files; the adapter verifies completed indexing and exact full-content readback before returning stored with a reversible id. It does not create extraction sessions.

The supported scope is viking://user/<user>/memories. Existing viking://user/memories settings resolve through the configured user or authenticated /api/v1/system/status identity, without rewriting the local registry. A failed response, timeout, or mismatched readback produces an error instead of a committed receipt. When the server refused the write (an HTTP 4xx other than 408 or 409), the error says nothing was stored; otherwise it includes the requested URI because remote content may remain, so inspect it before retrying. Existing memories remain readable, and downgrading does not remove files written by this adapter.

Text and attachment writes

The adapter currently accepts text through RememberRequest.content and stores it as a Markdown file. It does not upload images or file attachments, or send content_base64; a server's multimodal capabilities do not extend this adapter's input contract.

For content written through this adapter, use an embedding configuration that accepts text. A text embedding model is sufficient for this input format; an existing multimodal model can remain in use if it supports text in your OpenViking deployment. This limitation alone does not require changing embedding models or rebuilding an existing index.

Future image and attachment write support is tracked in issue #453.

Search

OpenViking keyword search uses POST /api/v1/search/grep for case-insensitive literal text, with regex metacharacters escaped. It scopes uri to the selected user memory root and bounds node_limit to the Source search budget (1–50; direct adapter default 10). Repeated lines in one file count as one result; only safe in-root memory Markdown files are hydrated through content/read, and no relevance score is invented. smart/basic keep search/find. A missing grep endpoint or invalid response is reported as an error rather than a semantic fallback; arbitrary regular-expression input is not exposed. The request uses the common fields of OpenViking 0.4.16 and 0.5.1.1.

Use

The default suveng-dsh-plugin-memory Starter already installs this package. Enable and configure the service on the suveng-dsh-plugin-memory page under Plugins, then inspect its synchronized Memory Spaces.

For a user API key without Admin API access, including managed OpenViking Service endpoints, fill endpoint, apiKey, account, and User key owner (skip admin) (discoveryUser) with the supplied account/user identifiers. The adapter validates viking://user/<discoveryUser>/memories through the read-only /api/v1/fs/ls data API and synchronizes that one space. It sends no account/user identity headers in this mode: the key determines the authenticated tenant, and account identifies the local projection rather than overriding that identity. Use an existing accessible memory root; an absent root, rejected key, invalid response, or denied owner fails the save and preserves previous settings. Health-only success is insufficient. This path does not verify write permission or certify a particular cloud deployment; exact writes still require the content API above.

Leave discoveryUser empty for the existing admin discovery flow. There is no automatic fallback after an admin error. Nonempty discoveryUser requires a safe user ID, an explicit account, and an API key; manually configured memory owners must match it. The new setting uses the existing service registry format. Before downgrading to an adapter without this field, clear it using the current version and use admin-capable configuration, or disable the service and restore an older compatible configuration. Reconnection and downgrade never delete remote memories.

For a custom composition, install this package alongside suveng-dsh-plugin-memory-source-memory-spaces and include it in that Source's config.providers:

providers:
  - use: suveng-dsh-plugin-memory-provider-openviking
    instanceId: openviking

This is a Memory Spaces child module, not a top-level Source or a complete Strategy. It registers through suveng-dsh-plugin-memory-source-memory-spaces/provider-sdk; each parent Source owns its child Fibers, connection settings and lifetime. Credentials stay on the Host.

Provider setup and capability matrix · 中文指南

Develop independently

From a source checkout with the declared dependencies installed, run pnpm verify. Tests, build and public exports belong to this package, without importing another package's controllers or repository configuration. Use the Source's public /testing fixtures for child registration and driver conformance; live service tests require a separately authorized environment.

To test a disposable local OpenViking service (never a personal store), run MNEMON_OPENVIKING_TEST_ENDPOINT=http://127.0.0.1:1933 pnpm exec vitest run tests/integration.spec.ts. Supply MNEMON_OPENVIKING_TEST_API_KEY when the service requires authentication. It creates one synthetic canary in the default user's namespace, reads/searches/browses it, and deletes its exact URI. Ordinary verification skips this optional integration test. Admin discovery requires a key allowed to enumerate users; ROOT keys cannot access tenant data in api_key mode. The user-key regression uses deterministic responses, not a live cloud account.

Plugin author guide