While developing PromptPulse, I wanted to ship a local model with the client, without asking users to configure a model API or install Node.js first. Trying ONNX and Transformers.js raised several issues involving model loading, native dynamic libraries and the Electron runtime. I eventually got inference working in a separate Node sidecar.
Here the sidecar is an independent backend process started alongside the app. Electron displays the UI, a separately bundled Node runtime executes the inference script, and they communicate over local HTTP. The model still runs on the user’s machine.
How can Electron load a local model?
After trying node-llama-cpp in PromptPulse and temporarily switching to Ollama, I wanted to try another route: keep the chat UI in JavaScript and load a model locally with Transformers.js. I recorded the idea in a project issue and experimented in both a Node console and an Electron window.1
Transformers.js’s Electron example provided a starting point. It processes input with a text-classification pipeline and keeps the model instance in memory for later calls. Turning it into an offline chat client raised a question outside the example: where would the application find its model after installation?2
In issue #310 a maintainer showed how to load locally. Set env.localModelPath to the model directory, disable remote loading with env.allowRemoteModels = false, and arrange the model, configuration and tokenizer (the component turning text into model input) in the structure the library expects. When I asked how to copy the models and transformers directories during packaging, I wanted to know whether those files would remain discoverable at the expected paths after installation.3
I felt few ready-to-use ONNX models were available, so I also searched how to convert GGUF to ONNX to see whether I could keep using models I had. Changing runtime requires more than renaming a file. Find or export a model compatible with the target backend, with matching configuration and tokenizer.45
Why did CUDA and nvcc appear during installation?
Dependency installation produced an nvcc message. I think I was trying to understand it and whether it mattered. Seeing ONNX Runtime download native binaries made me wonder how to package them and what happened on another operating system. This connected to my questions about C++, native modules and cross-platform delivery, though I no longer recall the precise sequence.
Installing onnxruntime-node@1.21.0 started a download of Linux x64 GPU runtime libraries and printed:
`nvcc` not found. Assuming CUDA 12.
nvcc is the compiler driver in NVIDIA’s CUDA toolchain.6 The install script called nvcc --version to detect the CUDA version, not to compile my model. The retained 1.21.0 script warns when it cannot find the command and proceeds with CUDA 12 libraries. That line alone does not indicate installation failure or establish that end users require a full compilation toolchain for inference.7
Installation can also print Extracting "libonnxruntime_providers_cuda.so" while unpacking ONNX Runtime’s CUDA execution provider library. Under specific Linux x64 conditions the script downloads these files automatically. Actual GPU inference still depends on configuration and environmental compatibility.7
I also encountered interrupted installation (SIGINT) and a download connection timeout (ETIMEDOUT). Read the full log to distinguish version-detection warnings from the error that caused installation to exit.
If a network requires a proxy and a download times out, identify which step made the request. Even after npm fetches a package from its registry, that package’s install script may download files from other sites. Some scripts read proxy settings from environment variables such as http_proxy and https_proxy.8
These are dependency-installation issues, distinct from the memory problem during later model loading. They also expose cross-platform requirements. ONNX standardizes model representation, while the Node binding and CUDA dynamic libraries executing it still target particular platforms and environments. ONNX does not turn the backend into universally portable pure JavaScript. For native module building, rebuilding and unpacking, see the PromptPulse development notes.
Can a CPU-only installation skip CUDA libraries?
Later I searched transformers.js no gpu and read the Transformers.js v3 announcement. I remember two concerns. Not every computer has a usable inference GPU, so CPU operation mattered. If GPU support was out of scope initially, could CUDA binaries be omitted from downloads and packaging?9
The v3 announcement emphasized WebGPU acceleration with device: 'webgpu' and new quantization options, without making GPU use mandatory.9 Node can run CPU inference. My console script used device: "cpu" and dtype: "q4". Acceptable performance on a specific computer still depends on model size, memory and hardware, beyond mere CPU support.
Installation downloads and runtime device selection are independent. device: "cpu" takes effect at pipeline creation and cannot prevent an earlier npm download. The retained onnxruntime-node 1.21.0 installation script supports ONNXRUNTIME_NODE_INSTALL_CUDA=skip and recognizes --onnxruntime-node-install-cuda=skip to skip automatic installation of CUDA provider libraries.7 This establishes that the version offered that option. I have no record confirming that I used it to complete installation.
It skips ONNX Runtime’s CUDA execution provider libraries, without replacing or uninstalling graphics drivers. The announcement’s WebGPU differs from Node’s CUDA provider as well. CPU-only operation can eliminate those GPU dependencies, but onnxruntime-node still uses native components for CPU inference, retaining OS, CPU architecture and dynamic-library packaging requirements.107
I also read the WebGPU guide to see how supported web environments enable GPU inference. That is separate from the native Node backend and requires checking the browser or Electron’s bundled Chromium support independently of installing CUDA provider libraries.11
From console inference to loading in Electron
I first loaded a local Qwen3-0.6B ONNX model in a Node console with Transformers.js, configuring CPU inference, q4 quantization, streamed output and stopping generation. In Electron I then encountered a crash after “Loading model” and needed to investigate streamed JSON parsing and resource paths.
Later I got more specific loading errors:
libonnxruntime.so.1: cannot open shared object file: No such file or directory
ERR_DLOPEN_FAILED: libvips-cpp.so.8.16.1: cannot open shared object file: No such file or directory
The first concerns ONNX Runtime’s dynamic library. The second involves loading sharp. This time even “Loading model” had not printed: the error occurred during library import. That shifted the investigation from model contents back to dependency paths, dynamic libraries and archive layout.
I checked the packaged dependency directory first. Fixing the path changed the logged existence check from false to true, but sharp still reported missing libvips. Finding node_modules and loading a native module’s dependent libraries are two different steps. Fixing the first did not establish the second.
For another Linux machine, check which builds of sharp and libvips made it into the package. Even two x64 machines can use different C libraries, for example glibc on Debian and musl on Alpine. npm 10’s --cpu and --libc specify target CPU architecture and C library when installing native modules. The sharp installation docs give the corresponding options for both Linux x64 targets.12
To inspect installed files, I also investigated unpacking .deb packages and finding files installed by dpkg -i.13 By then the question was where the installed program actually loaded resources and dependencies, beyond the development tree.
Following the sharp error led me to a sharp issue, a Next.js fix updating sharp, and an article on a similar loading error.141516 All relate to native dependency versions and packaging, but their environments differ from mine. Existing records do not establish which fix ultimately resolved that round of libvips trouble.
ONNX can support a self-contained local app, but the model format itself does not handle distribution.
Which resources must ship for offline operation?
onnxruntime-node still contains native components for different operating systems and architectures. If these and the runtime ship correctly, users need not install Node separately. Another route, onnxruntime-web, uses WASM or WebGPU in web environments, reducing dependence on Node-native inference bindings. The model, operators and execution backend must still be compatible.1017
I wanted local use on the first launch. Model weights, tokenizer, configuration and any WASM assets used by a web backend therefore need local loading paths. The Transformers.js v3 docs explain local model paths, disabling remote models and specifying WASM paths. Copying one .onnx file or relying on a first-run network download does not achieve this goal.4
I also read the private and gated model access guide. “Private” refers to Hugging Face repository permissions. In Node, HF_TOKEN can supply download credentials where authorized. This is distinct from offline loading and does not replace local asset configuration. My delivery goal separates developers obtaining a model from users loading it after installation. Reading that guide does not establish that the client used a private model.18
Streaming output and user interruption
After generating answers I wanted the chat UI to display text as it arrived and let users stop at any time. I investigated pipeline, TextStreamer and stopping criteria: how to receive text during generation and make a Stop button actually affect inference.
A streamer is a general Transformers.js generation output abstraction, not limited to chat. BaseStreamer defines put() to receive generated tokens and end() to signal completion. TextStreamer adds text decoding. Compatibility depends on whether a model’s generation implementation integrates this interface, rather than the general claim that its output can stream.19
Speech recognition has WhisperTextStreamer, which extends TextStreamer with callbacks for transcription chunk starts and ends, timestamps and finalization. Incrementally emitting recognized text and continuously acquiring microphone audio for live recognition are separate layers. The latter requires audio capture, chunking and context management. This illustrates the abstraction’s scope. My chat experiment used TextStreamer.19
pipeline("text-generation", ...) is a high-level entry point that accepts a streamer during generation. TextStreamer decodes and buffers tokens into text chunks and passes them to the app via callback_function. It need not call back once per token. I printed the chunks in a console before considering transport to Electron. A streamer handles generated output. Crossing processes still requires HTTP or IPC.19
To update UI before generation completed, I read streaming issue #641. In a 2024 reply a maintainer recommended the generation argument callback_function and gave a translation Worker example. Its callback receives beams, decodes beams[0].output_token_ids with the tokenizer and sends text to the UI with self.postMessage(). This connects generation callbacks, decoding and UI notification.20
The old example and TextStreamer differ in one important respect. The old callback decodes the complete token sequence so far, which should replace the matching UI text. A TextStreamer text callback supplies newly decoded chunks, normally appended. Appending complete sequences repeatedly duplicates content. Both are named callback_function, but one goes directly to generation and receives beams, while mine belongs to TextStreamer and receives decoded text chunks. They are not interchangeable.2019
To make Stop work I searched transformer.js how to stop genration, finding InterruptableStoppingCriteria in the v3.0.0 stopping-criteria docs. To see how it fit into generation I checked GenerationFunctionParameters. Its stopping_criteria supplies stopping conditions, controlling when generation ends. streamer delivers ongoing output to the application.21
Pass an InterruptableStoppingCriteria instance to the generator as stopping_criteria, then call .interrupt() when a stop is needed. I wrote a timer-triggered interruption test to understand the interface before connecting a button. Stopping is cooperative: the generation loop exits on checking the criterion. It does not immediately kill a process or cancel the underlying computation in progress. Reusing one criterion requires .reset() before the next generation. Alternatively, create one per request.21
I also followed the model API to internal _get_stopping_criteria. Version 3.5.1 combines maximum-length and end-of-sequence (EOS) criteria with caller-supplied ones. This explains how natural completion and a user stop enter one decision. Applications can use public generation interfaces without calling the internal method.21
Another easily confused setting is GenerationConfig.early_stopping, which describes beam-search termination and does not implement the chat Stop button. GenerationConfig also covers lengths and sampling. My test used max_new_tokens: 256 and do_sample: false, while a separate criterion handled user interruption.22
I also studied logits processors, samplers and generation configuration to understand their roles. At each step the model scores candidate tokens. A processor can adjust those scores, for example to penalize repetition or block candidates. A sampler chooses the next token under the generation strategy. The streamer sends results to the app, while stopping criteria decide whether to continue. Streaming display, sampling and interruption have different responsibilities.23
GenerationFunctionParameters describes passing inputs, streamers and stopping criteria when calling generation. GenerationConfig describes settings such as length and sampling. This reading helped me understand generation. My surviving experiments configured existing interfaces and did not implement a custom sampler or logits processor.212223
The UI must also deliver the stop signal to the process actually running inference. Stopping display updates or disconnecting a receiving stream alone does not guarantee computation stops. The later sidecar connected connection closure to .interrupt().
Running ONNX in an independent Node sidecar
I remember it was the extra-runtime approach that worked in local testing. In a separate sidecar experiment I continued using ONNX but moved inference into an independent Node process, leaving Electron with UI and communication. That worked around the Electron memory-related limitations I encountered and ran successfully.24
Why I tried a separate runtime
I first researched raising Electron’s memory limit, then encountered a child process exit:
Child process exited with code null and signal SIGTRAP
After reading Electron’s official Electron and the V8 Memory Cage, I suspected the crash involved its memory mechanisms. I needed a newer Node and did not want to downgrade Electron, so I looked for another approach. SIGTRAP alone does not identify the trigger.25
I was also considering runtime stability, so I searched Electron/Node version pairings and read the official release timeline. I wanted to know whether upgrading or downgrading Electron would retain a bundled Node suitable for dependencies and keep the model and desktop app stable. The contemporary table paired Electron 34 with Node 20.18 and Electron 35 with Node 22.14. Upgrading system Node does not replace Electron’s runtime. A separate inference runtime decouples the two version choices.26
The official article discusses two related constraints: the V8 heap limit under pointer compression, and memory-cage restrictions on native modules wrapping externally allocated memory as an ArrayBuffer. The latter can crash without first exhausting memory. The mentioned 4 GB is not a uniform limit on the whole process, model or GPU memory. One option it suggests is:
it is possible to include a copy of Node.js with your app, which is built with pointer compression disabled
—Electron and the V8 Memory Cage, paragraph discussing alternatives before the FAQ.25
This gave me a concrete direction: move model inference to a separate Node process and keep Electron for UI. Cursor also suggested starting the model script with system Node, but the goal was always to avoid an extra installation for users. Node therefore had to ship in the installer. This auxiliary inference process, launched and distributed by the main application, is what I mean by sidecar.
I first encountered “sidecar” in Kubernetes and later saw Tauri documentation use it for a desktop application’s auxiliary process. That selection history appears in choosing an architecture for desktop AI.
From system Node to bundled Node
In the sidecar experiment Electron starts the model service at launch. src/index.js points execPath at bundled backend/node-linux/bin/node and uses spawn() to start backend/express.js. That backend loads local Qwen3-0.6B-ONNX through Transformers.js.24
Forge’s extraResource list includes node-linux, the model, Transformers resources and backend dependencies. The retained Linux package directory does contain resources/node-linux/bin/node.24
Once inference had its own process, how could the chat window send it a question? In the earlier Electron experiment I tried a straightforward fetch from the page to the local API. While debugging it I read Pratik Chowdhury’s RSS reader case study. Users supplied feed addresses from other websites. Even when the feed returned an article list, the browser checked whether its response headers allowed the reader’s page to read the content. Without permission, JavaScript on the page could not read the list. This is Cross-Origin Resource Sharing (CORS). The author made an Electron desktop reader that adjusted the feed response’s cross-origin headers locally so its reading pane could access the list.27
My console also reported a failed fetch, but it had not reached response reading. The chat page came from a local HTML file and the model service listened at http://127.0.0.1:9070. Both ran on my computer but the browser still saw two origins. The page’s Content Security Policy (CSP) can specify allowed connection destinations in connect-src. The page omitted it, so the browser fell back to default-src 'self', allowing only its own origin. The request was blocked before going to the model service.
In the working sidecar, the page passes the user’s question to Electron’s main process. The window and main process belong to the same app and communicate over IPC. On receiving transformers:run, the main process sends an HTTP request to local /v1/chat/completions. As the model generates chunks, the main process sends them to the window for incremental display.24
After streamed content reached the frontend
When the request first connected I received <think>. The model was generating text, but my code parsed stream contents as ordinary JSON and failed on subsequent chunks. Fixing the parser let me receive continuous text.
That got ONNX inference running in a separate Node process. The old Electron child crash remains ambiguous: the error alone did not establish whether we hit the heap limit or a native buffer was incompatible with the memory cage.2524
Once answers displayed incrementally I still needed the model to know when to stop. If the client closes its connection early, the backend gets a close event on the response object. There I call stoppingCriteria.interrupt(), letting the generator end inference when it checks the condition.28
Working locally is only one part of distribution
This implementation remained in the independent sidecar project. The PromptPulse commits and package directories I checked did not contain the same independent runtime, so the experiment cannot be described as a shipped PromptPulse feature.
This route did not eliminate cross-platform work. Standalone Node targets an operating system and CPU architecture, as do native inference libraries. Ship a matching set of components for each platform. Copying one machine’s executable into every installer is insufficient. The contemporary node-llama-cpp documentation specifically discussed prebuilt binary and cross-platform packaging constraints.29
Launch paths and Forge copy destinations must also line up. In packaged mode the first commit used process.resourcesPath as its base and appended backend/node-linux/bin/node. But both the extraResource list and retained build include a layout directly under resources/node-linux. The historical configuration is not a template verified across all installers. It shows I bundled the standalone runtime, but a rebuild should still check final directories and actual launch paths.24
The ggml_vulkan buffer allocation error I later found was a separate investigation. It cannot automatically be attributed to this V8 heap or memory-cage problem. The original error and leads are in the Vulkan section of the development notes.
References
Footnotes
-
CaiBorui [S2thend]. (2025, April 1). Research on integrate llm ability (transformerjs or ollamajs) [Issue #30]. GitHub. https://github.com/S2thend/PromptPulse/issues/30 . ↩
-
Lochner, J. [xenova], & contributors. (2023, October 4). Transformers.js Electron example: model.js [source code]. Saved URL: https://github.com/huggingface/transformers.js/blob/main/examples/electron/src/model.js , which returned 404 during verification. Recovered file at commit
a45b844. The date is the source commit date, not my visit time. Related browsing included the repository root’s package.json and the Electron example directory; these entry points are retained without assuming current main reflects historical dependencies. ↩ -
adnankarim. (2023, September 17). How to load model from the static folder path in nextjs or react or vanilla js? [Issue #310]. Transformers.js, GitHub. https://github.com/huggingface/transformers.js/issues/310 Configuration and directory details from xenova. (2023, September 17). maintainer reply. Also retained: Hugging Face. (n.d.). Transformers.js documentation entry; historical configuration follows the pinned version in note 6. ↩
-
Hugging Face. (n.d.). Use custom models, Transformers.js v3.0.0, “Settings” section. https://huggingface.co/docs/transformers.js/v3.0.0/en/custom_usage Pinned version used for local resource configuration without projecting current features onto the historical experiment. ↩ ↩2
-
Google. (n.d.). how to transform gguf to onnx; transformer.js load local modedl [saved queries, original spelling retained, dates unrecovered]. GGUF to ONNX, Loading a local model with Transformers.js. The searches show interest in the question, without establishing a completed conversion. ↩
-
NVIDIA. (n.d.). CUDA Compiler Driver NVCC [“Introduction / Purpose of NVCC”]. NVIDIA documentation. https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#purpose-of-nvcc Additional conceptual reference on the compiler driver, without inferring the historical CUDA installation from current documentation. Access date: June 8, 2025 (historical cutoff). ↩
-
Microsoft / ONNX Runtime contributors. (n.d.). onnxruntime-node 1.21.0: script/install.js [npm package source retained locally by the author:
tryGetCudaVersion, download, extraction and platform detection]. Version from package manifest.Extractingis emitted during extraction. Failednvccdetection defaults to CUDA 12. File presence alone does not establish successful installation or GPU inference. Access date: June 8, 2025 (historical cutoff). ↩ ↩2 ↩3 ↩4 -
Dhira, D. (2022, February 3). Working with NPM behind Network Proxy [Blog post]. Medium. “Configure Environment Variables for Proxy” section. ↩
-
Lochner, J. [xenova]. (2024, October 22). Transformers.js v3: WebGPU Support, New Models & Tasks, and More… [“WebGPU support,” “New quantization formats (dtypes)” and “Node.js (ESM + CJS), Deno, and Bun compatibility”]. Hugging Face Blog. https://huggingface.co/blog/transformersjs-v3 The author supplied the search
transformers.js no gputo check CPU operation and skipping CUDA downloads. Exact visit date undetermined. Installation options come from the local 1.21.0 source in note 17, rather than this announcement. Access date: June 8, 2025 (historical cutoff). ↩ ↩2 -
ONNX Runtime contributors. (n.d.). Node.js binding. ONNX Runtime documentation. Access date: June 8, 2025 (historical cutoff). https://onnxruntime.ai/docs/get-started/with-javascript/node.html . ↩ ↩2
-
Hugging Face. (n.d.). Running models on WebGPU. Transformers.js documentation. https://huggingface.co/docs/transformers.js/en/guides/webgpu Setup and backend details follow the 2024 v3 announcement in note 19, excluding later browser support statistics from the current page. Access date: June 8, 2025 (historical cutoff). ↩
-
npm. (n.d.). npm install [CLI v10 documentation]. npm Docs.
cpu,libc. sharp contributors. (n.d.). Installation [documentation]. sharp. Cross-platform. ↩ -
Jordan, M. (2022, November 18). Where is the unpacked content of a .deb file when using the "--unpack" option of dpkg? [question]. Ask Ubuntu. https://askubuntu.com/questions/1441313/where-is-the-unpacked-content-of-a-deb-file-when-using-the-unpack-option-of Access date: June 8, 2025. ↩
-
JonBernardHealia. (2025, April 4). [email protected] fails to compile with NextJS 15 (works with [email protected]) [Issue #4361]. GitHub. https://github.com/lovell/sharp/issues/4361 Access date: June 8, 2025. ↩
-
styfle. (2025, April 4). fix(next/image): bump [email protected] [PR #77839]. GitHub. https://github.com/vercel/next.js/pull/77839 For the merged change see commit 7babb88 on April 7, 2025. Access date: June 8, 2025. ↩
-
Shanto, M. T. A. (2024, May 31). Build error occurred Error: Could not load the "sharp" module using the linux-x64 runtime. DEV Community. https://dev.to/mdtanvirahamedshanto/build-error-occurred-error-could-not-load-the-sharp-module-using-the-linux-x64-runtime-kpn Access date: June 8, 2025. ↩
-
ONNX Runtime contributors. (n.d.). ONNX Runtime Web. Access date: June 8, 2025 (historical cutoff). https://onnxruntime.ai/docs/get-started/with-javascript/web.html See also Deploying ONNX Runtime Web: https://onnxruntime.ai/docs/tutorials/web/deploy.html Runtime and deployment guidance added during editing. ↩
-
Hugging Face. (n.d.). Accessing Private/Gated Models; Use custom models. Transformers.js documentation. Pages consulted: private and gated models, Custom models. For authorization see the v3.0.0 private model guide; local loading follows the pinned version in note 6. Access date: June 8, 2025 (historical cutoff). ↩
-
Hugging Face. (n.d.). Pipelines; Streamers. Transformers.js documentation. pipeline API, streamers API. For interfaces, text buffering and Whisper callbacks, see 3.5.1 source for
BaseStreamer,TextStreamerandWhisperTextStreamer. Access date: June 8, 2025 (historical cutoff). ↩ ↩2 ↩3 ↩4 -
gduteaud. (2024, March 11). Streaming support? [Issue #641]. Transformers.js, GitHub. https://github.com/huggingface/transformers.js/issues/641 Implementation details from Lochner, J. [xenova]. (2024, March 11). reply on
callback_function, and the linked demo-siteworker.jsat commit314b7f0, lines 161–175. Access date: June 8, 2025 (historical cutoff). ↩ ↩2 -
Hugging Face. (n.d.). Stopping criteria; Generation parameters; Models. Transformers.js documentation. The browsing trail included v3.0.0 stopping criteria, including
InterruptableStoppingCriteria, andGenerationFunctionParameters. Stopping criteria, Model API,PreTrainedModel._get_stopping_criteria. For interruption, reset and criteria composition see version 3.5.1’sstopping_criteria.jsandmodels.js. Access date: June 8, 2025 (historical cutoff). ↩ ↩2 ↩3 ↩4 -
Hugging Face. (n.d.). GenerationConfig. Transformers.js documentation.
GenerationConfigclass, Constructor parameters,early_stopping; also retaining the oldGenerationConfigTypeentry. For parameter semantics seeconfiguration_utils.jsin 3.5.1. Access date: June 8, 2025 (historical cutoff). ↩ ↩2 -
Hugging Face. (n.d.). Generation API. Transformers.js documentation. Related pages: Streamers, Stopping criteria, Logits sampler, Logits processor, Generation parameters, Generation configuration. For sampling and score processing see version 3.5.1’s logits_sampler.js and logits_process.js; for configuration also see the v3.0.0 documentation. Access date: June 8, 2025 (historical cutoff). ↩ ↩2
-
CaiBorui. (2025, May 29). Node-Sidecar-Electron [local Git repository, commit
7f85e0d827586840a7c11039d93cff14b618fafb].src/index.jslaunches standalone Node and the Express backend.src/backend/express.jsloads the Qwen3 ONNX model and streams text.forge.config.jsconfigures extra copies of the runtime, model and dependencies. The retained Linux package was also checked and containsresources/node-linux/bin/node. Code comes from the local original. The artifact alone does not date its generation or verify each platform. HTTP request from the main process · Full commit. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 -
nornagon. (2022, June 30; updated November 1, 2022). Electron and the V8 Memory Cage. Electron Blog. https://www.electronjs.org/blog/v8-memory-cage Quotation from the paragraph beginning “Lastly, there are workarounds…” before the FAQ. See also the FAQ on external ArrayBuffers. ↩ ↩2 ↩3
-
Electron contributors. (n.d.). Electron Releases [“Timeline”“Node.js version support”]. Electron documentation. Pages consulted: https://www.electronjs.org/docs/latest/tutorial/electron-timelines and stable Electron v29 releases. Version pairings checked against pinned documentation in Electron v35.0.0; Access date: June 8, 2025 (historical cutoff). ↩
-
Chowdhury, P. (2021, September 18). Bypassing CORS with Electron [Blog post]. Medium. “Why bypass CORS?” section. ↩
-
CaiBorui [S2thend]. (2025, June 11). feat: :wrench: add interrupt on connection close [Node-Sidecar-Electron commit b98cfec, src/backend/express.js]. GitHub. https://github.com/S2thend/Node-Sidecar-Electron/commit/b98cfeced952e9e0ccf296343a71d5351f702567 . ↩
-
node-llama-cpp contributors. (n.d.). Using in Electron, version 3.6.0, “Electron Support,” “Cross Compilation,” and “Bundling” sections. GitHub. https://github.com/withcatai/node-llama-cpp/blob/v3.6.0/docs/guide/electron.md Quotation in “Bundling.” Verification used this pinned version. ↩