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

@fougere/adapter-memory

v0.6.0-alpha.0

Published

Rows in a Map — the source a first run meets, and the one that ships no driver.

Readme

@fougere/adapter-memory

Rows in a Map — the source that ships no driver

What an app with no db runs on, and what a test runs on when the shape is the subject and the engine is not.

// fougere.config.ts
export default defineFougere({
  db: { source: 'memory' },
  sources: { cache: { source: 'memory', entities: ['Draft'] } },
});

Nothing else to wire: importing this package is what makes 'memory' an answered name. @fougere/app already depends on it, so the fallback needs no declaration at all.

It answers the whole port

The thirteen gestures, not six — and it reads the axes, which is the difference between a store and a stand-in. A primary(text()) with no generator is refused rather than given an invented id; created() is stamped; a second create on one key is refused instead of overwriting in silence.

That is not written here. storageOver (@fougere/core) derives the thirteen from the four below, so this package is the four:

const store = new Map<string, Row>();

return {
  client: store,
  get: async (key) => store.get(key),
  has: async (key) => store.has(key),
  set: async (key, row) => { store.set(key, row); },
  delete: async (key) => store.delete(key),
  all: async () => [...store.values()],
};

What it does not declare

No transacted: a Map has no unit of work. A frame reads the absence, compensates instead of transacting, and the boot says which of the two it built. No migrate either — a Map has no shape to bring up to date.

Rows live for the life of the process and go with it. Nothing is written anywhere; for rows that must survive a restart, see @fougere/adapter-file.