From 0d93b7d09deaa27b74d5a936ee9fff79ccfb5840 Mon Sep 17 00:00:00 2001 From: sina_sajjadi Date: Tue, 14 Jul 2026 17:22:37 +0330 Subject: [PATCH] feat: implement in-memory storage for Figma extraction data with automated pruning --- bridge-server/src/storage.js | 2 +- bridge-server/src/storage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge-server/src/storage.js b/bridge-server/src/storage.js index 46be5dc..9409223 100644 --- a/bridge-server/src/storage.js +++ b/bridge-server/src/storage.js @@ -3,7 +3,7 @@ * Each extraction is stored with a unique ID, timestamp, and the full payload. */ /** Maximum number of extractions to keep in memory */ -const MAX_EXTRACTIONS = 10; +const MAX_EXTRACTIONS = 1; class ExtractionStore { constructor() { this.extractions = new Map(); diff --git a/bridge-server/src/storage.ts b/bridge-server/src/storage.ts index 4fcfbde..810a0f7 100644 --- a/bridge-server/src/storage.ts +++ b/bridge-server/src/storage.ts @@ -30,7 +30,7 @@ export interface Extraction { } /** Maximum number of extractions to keep in memory */ -const MAX_EXTRACTIONS = 10; +const MAX_EXTRACTIONS = 1; class ExtractionStore { private extractions: Map = new Map();