Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@editora/performance

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@editora/performance

Performance optimization utilities for Editora Rich Text Editor

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
11
-64.52%
Maintainers
1
Weekly downloads
 
Created
Source

@editora/performance

[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/
Storybook: https://editora-ecosystem-storybook.netlify.app/

Performance and memory utilities for Editora editors.

Installation

npm install @editora/performance @editora/core

Exports

From @editora/performance:

  • TransactionBatcher, createTransactionBatcher
  • Debouncer, createDebouncer, debounce
  • MemoryManager, createMemoryManager, getGlobalMemoryManager
  • PerformanceMonitor, createPerformanceMonitor, getGlobalPerformanceMonitor

Transaction Batching

import { createTransactionBatcher } from "@editora/performance";

const batcher = createTransactionBatcher({
  maxBatchSize: 10,
  maxBatchTime: 16,
  enabled: true,
});

batcher.setOnFlush((transactions) => {
  // apply grouped editor updates
});

Debouncing

import { createDebouncer, debounce } from "@editora/performance";

const debouncer = createDebouncer(120);
debouncer.execute(() => {
  // expensive update
});

const onResize = debounce(() => {
  // recalc layout
}, 150);

Memory Management

import { createMemoryManager } from "@editora/performance";

const memory = createMemoryManager({
  maxMemoryMB: 100,
  cleanupIntervalMs: 30000,
  autoCleanup: true,
});

const timeoutId = window.setTimeout(() => {}, 1000);
memory.registerTimeout(timeoutId);

Performance Monitoring

import { createPerformanceMonitor } from "@editora/performance";

const monitor = createPerformanceMonitor({
  enabled: true,
  sampleInterval: 5000,
  maxSamples: 100,
  logWarnings: true,
});

monitor.startOperation("render");
// render work
monitor.endOperation();

Notes

  • Utilities are browser-oriented (window, performance APIs).
  • Keep monitor enabled in dev/staging and tune in production.

Keywords

editora

FAQs

Package last updated on 08 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts