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

@cassina/langgraphjs-checkpoint-firestore

v1.0.0

Published

LangGraph.js Checkpoint implementation for Firestore

Readme

LangGraphJS Firestore Checkpoint

npm version CI License: MIT

Introduction

LangGraphJS Firestore Checkpoint is a Firestore backed checkpoint saver for LangGraphJS. It allows you to persist and restore LangChain workflow state in Google Firestore, making it easy to resume executions or share state between processes.

Installation

npm install @cassina/langgraphjs-checkpoint-firestore

Usage

  1. Initialize Firebase Admin and Firestore

    import { initializeApp, cert } from 'firebase-admin/app';
    import { getFirestore } from 'firebase-admin/firestore';
    import { FirestoreSaver } from '@cassina/langgraphjs-checkpoint-firestore';
    
    initializeApp();
    
    const firestore = getFirestore();
    const saver = new FirestoreSaver({ firestore });
  2. Save and retrieve a checkpoint

    const config = { configurable: { thread_id: 'my-thread' } };
    
    // Save workflow state
    await saver.put(config, checkpointData, metadata);
    
    // Later restore
    const tuple = await saver.getTuple(config);
    if (tuple) {
      console.log('Restored checkpoint', tuple.checkpoint);
    }

FirestoreSaver uses two collections by default: checkpoints and checkpoint_writes. You can override them:

const saver = new FirestoreSaver({
  firestore,
  checkpointCollectionName: 'my_checkpoints',
  checkpointWritesCollectionName: 'my_writes',
});

The saver can be plugged directly into a LangGraph/LangChain workflow or used on its own to persist state between runs like so:

const workflow = new StateGraph(StateAnnotation)
        .addNode('agent', callModel)
        .addEdge(START, 'agent');

const app = workflow.compile({
   checkpointer: saver,
});
  • Please see test/FirestoreSaver.e2e.test.ts for a full example.

| Method | Purpose | Signature(key params only) | Return | |------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------| | constructor | Create a saver bound to Firestore collections. | new FirestoreSaver({ firestore, checkpointCollectionName? , checkpointWritesCollectionName? }, serde?) | FirestoreSaver | | put | Persist a checkpoint and its metadata. | put(config, checkpoint, metadata) | Promise<RunnableConfig> (points at the saved checkpoint) | | getTuple | Fetch the latest (or specific) checkpoint plus its pending writes. | getTuple(config) | Promise<CheckpointTuple \| undefined> | | list | Stream checkpoints that match a config, optionally filtered/limited. | list(config, options?) | AsyncGenerator<CheckpointTuple> | | putWrites | Record pending-write entries for a task. | putWrites(config, writes, taskId) | Promise<void> | | deleteThread | Remove every checkpoint and write belonging to a thread. | deleteThread(threadId) | Promise<void> |

License

This project is licensed under the MIT License. See LICENSE.md for the full text.