|
Download lang/lang-0008.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/lang/lang-0008.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm/lang/lang-0008.jsonl
-
curl -L -o lang-0008.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/lang/lang-0008.jsonl
1.25 kB
| {"type": "session", "harness": "opencode", "id": "lang-0008", "name": "Electron Architecture"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain Electron's architecture"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Electron combines Chromium and Node.js for desktop apps.\n\nProcess model:\n- Main process: Node.js + Chromium, runs once per app, manages windows\n- Renderer process: Chromium, one per window/BrowserWindow, runs web content\n- Preload scripts: bridge between main and renderer, isolated context\n\nIPC communication:\n- ipcMain/ipcRenderer for synchronous and asynchronous messaging\n- contextBridge for secure context exposure\n- MessagePort/MessageChannel for channel-based communication\n\nBrowserWindow lifecycle:\n- creation -> ready-to-show -> show -> close -> closed\n- webContents manages the renderer process\n- session for network, storage, cookies\n\nSecurity:\n- contextIsolation: true (default), nodeIntegration: false\n- session.setPermissionRequestHandler for permission control\n- Content Security Policy (CSP) headers\n- sandbox: true for renderer process isolation"}} | |