OmegaEdit is an open-source library for building editors that can handle massive files and multiple viewports. The TypeScript client package (v0.9.58) provides gRPC client types and interfaces for interacting with the OmegaEdit server, generated from protobuf definitions. It supports Node.js and browser environments, with ESM and CJS builds. Key differentiators: designed for extremely large file editing with minimal memory overhead, uses a client-server architecture via gRPC, and provides type-safe TypeScript bindings. Alternates include Monaco Editor or CodeMirror but lack the large-file focus. Release cadence is irregular; latest stable version is 0.9.58.
npm install omega-editNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC client, establishes a session with a file, and prints the session ID.
Ensure you install the correct gRPC transport package: for Node.js use @grpc/grpc-js, for browser use @improbable-eng/grpc-web.
Use the provided serialization methods if needed, or keep the session reference alive.
Pass a File object with path property: createSession(client, { file: { path: '/path/to/file.txt' } }).Ensure the OmegaEdit server is the correct version and running the compiled proto definitions that match this client version.
Use the correct createSession signature: createSession(client, { file: { path: '/path/to/file.txt' } }).Run npm install omega-edit@0.9.58. Ensure the package is in your dependencies.