pastdotdev
v0.0.1
Published
Official SDK for the past.dev Memory API
Downloads
37
Readme
pastdotdev
Official SDK for the past.dev Memory API.
This package is the reserved official JavaScript client published by Past Corp.
Install it as pastdotdev — the brand is past.dev (with the dot), never a
bare "past".
Install
npm i pastdotdevUsage
import { PastClient } from "pastdotdev";
const client = new PastClient({
apiKey: process.env.PAST_API_KEY,
baseUrl: "https://api.past.dev",
});
await client.ingest({
content: "Nadia confirmed the pilot ships March 14. Budget is 32k.",
timestamp: "2026-02-03T09:00:00Z",
group: "acme-pilot",
});
const evidence = await client.recall({ query: "what is the Acme pilot budget?" });
const result = await client.answer({ query: "what is the Acme pilot budget?" });ingest POSTs /api/v1/ingest. Pass an ingestion id (or { id } without
content) to GET /api/v1/ingest/{id} and poll until settled is true.
recall and answer POST /api/v1/recall and /api/v1/answer.
Homepage: https://past.dev
This 0.0.1 release is the reserved official package. The Memory API is in early access; request a key at https://past.dev.
