Build ultra fast, tiny, and cross-platform desktop apps with Typescript.
127 matches across 5 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | templates/wgpu-threejs/src/bun/index.ts | 93 | function makeShaderModuleDescriptor(nextInChainPtr: number) { |
| LOW | templates/wgpu-threejs/src/bun/index.ts | 189 | function makeRenderPipelineDescriptor( |
| LOW | templates/wgpu-threejs/src/bun/index.ts | 267 | function makeBindGroupEntrySampler(binding: number, samplerPtr: number) { |
| LOW | templates/wgpu-threejs/src/bun/index.ts | 281 | function makeBindGroupEntryTexture(binding: number, textureViewPtr: number) { |
| LOW | templates/wgpu-threejs/src/bun/index.ts | 320 | function makeTexelCopyBufferLayout(bytesPerRow: number, rowsPerImage: number) { |
| LOW | templates/wgpu-threejs/src/bun/index.ts | 338 | function makeCommandEncoderDescriptor() { |
| LOW | templates/wgpu-threejs/src/bun/index.ts | 352 | function makeRenderPassColorAttachment(viewPtr: number) { |
| LOW | templates/wgpu/src/bun/index.ts | 67 | function makeShaderModuleDescriptor(nextInChainPtr: number) { |
| LOW | templates/wgpu/src/bun/index.ts | 175 | function makeRenderPipelineDescriptor( |
| LOW | templates/wgpu/src/bun/index.ts | 208 | function makeCommandEncoderDescriptor() { |
| LOW | templates/wgpu/src/bun/index.ts | 222 | function makeRenderPassColorAttachment(viewPtr: number, clear: { r: number; g: number; b: number; a: number }) { |
| LOW | kitchen/src/tests/wgpu-ffi.test.ts | 117 | function makeShaderModuleDescriptor(nextInChainPtr: number) { |
| LOW | kitchen/src/tests/wgpu-ffi.test.ts | 189 | function makeRenderPipelineDescriptor( |
| LOW | kitchen/src/tests/wgpu-ffi.test.ts | 209 | function makeCommandEncoderDescriptor() { |
| LOW | kitchen/src/tests/wgpu-ffi.test.ts | 223 | function makeRenderPassColorAttachment(viewPtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 69 | function makeRequestAdapterOptions(surfacePtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 81 | function makeRequestAdapterCallbackInfo(callbackPtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 93 | function makeRequestDeviceCallbackInfo(callbackPtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 116 | function makeShaderModuleDescriptor(nextInChainPtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 230 | function makeRenderPipelineDescriptor( |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 266 | function makeCommandEncoderDescriptor() { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 318 | function makeTexelCopyBufferLayout(bytesPerRow: number, rowsPerImage: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 356 | function makeBindGroupEntrySampler(binding: number, samplerPtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 370 | function makeBindGroupEntryTexture(binding: number, textureViewPtr: number) { |
| LOW | kitchen/src/tests/interactive/wgpu-view.test.ts | 400 | function makeRenderPassColorAttachment( |
| LOW | kitchen/src/bun/wgpuTagRenderer.ts | 289 | function makeShaderModuleDescriptor(nextInChainPtr: number) { |
| LOW | kitchen/src/bun/wgpuTagRenderer.ts | 395 | function makeRenderPipelineDescriptor( |
| LOW | kitchen/src/bun/wgpuTagRenderer.ts | 429 | function makeCommandEncoderDescriptor() { |
| LOW | kitchen/src/bun/wgpuTagRenderer.ts | 443 | function makeRenderPassColorAttachment( |
| LOW | package/build.ts | 279 | function getWindowsCefWrapperLibPath() { |
| LOW | package/build.ts | 2243 | async function generateTemplateEmbeddings() { |
| LOW | package/scripts/update-cef-version.ts | 27 | async function getLatestStableCEFVersion(): Promise<StableVersion> { |
| LOW | package/scripts/update-bun-version.ts | 22 | async function getLatestStableBunVersion(): Promise<string> { |
| LOW | package/src/native/win/nativeWrapper.cpp | 960 | class ElectrobunResourceRequestHandler : public CefResourceRequestHandler { |
| LOW | package/src/native/win/nativeWrapper.cpp | 978 | class ElectrobunRequestHandler : public CefRequestHandler { |
| LOW | package/src/shared/rpc.ts | 180 | function missingTransportMethodError( |
| LOW | package/src/shared/naming.ts | 44 | export function getMacOSBundleDisplayName( |
| LOW | package/src/shared/naming.ts | 136 | export function sanitizeVolumeNameForHdiutil(name: string): string { |
| LOW | package/src/cli/index.ts | 1403 | async function downloadAndExtractCustomCEF( |
| LOW | package/src/cli/index.ts | 1782 | async function createLinuxInstallerArchive( |
| LOW | package/src/cli/index.ts | 1895 | function generateUsageDescriptions( |
| LOW | package/src/cli/index.ts | 5107 | async function createWindowsSelfExtractingExe( |
| LOW | package/src/cli/index.ts | 5214 | async function wrapWindowsInstallerInZip( |
| LOW | package/src/bun/webgpuAdapter.ts | 302 | function makeTextureViewDescriptor(options?: { |
| LOW | package/src/bun/webgpuAdapter.ts | 532 | function makeRenderPipelineDescriptor( |
| LOW | package/src/bun/webgpuAdapter.ts | 554 | function makeProgrammableStageDescriptor( |
| LOW | package/src/bun/webgpuAdapter.ts | 569 | function makeComputePipelineDescriptor( |
| LOW | package/src/bun/webgpuAdapter.ts | 583 | function makeComputePassDescriptor() { |
| LOW | package/src/bun/webgpuAdapter.ts | 593 | function makeBufferMapCallbackInfo( |
| LOW | package/src/bun/webgpuAdapter.ts | 609 | function makeQueueWorkDoneCallbackInfo( |
| LOW | package/src/bun/webgpuAdapter.ts | 666 | function makeBindGroupLayoutDescriptor(entriesPtr: number, count: number) { |
| LOW | package/src/bun/webgpuAdapter.ts | 714 | function makePipelineLayoutDescriptor(layoutsPtr: number, count: number) { |
| LOW | package/src/bun/webgpuAdapter.ts | 727 | function makeCommandEncoderDescriptor() { |
| LOW | package/src/bun/webgpuAdapter.ts | 741 | function makeRenderPassColorAttachment( |
| LOW | package/src/bun/webgpuAdapter.ts | 764 | function makeRenderPassDepthStencilAttachment(options: { |
| LOW | package/src/bun/webgpuAdapter.ts | 2818 | function makeShaderModuleDescriptor(nextInChainPtr: number) { |
| LOW | package/src/bun/webgpuAdapter.ts | 2844 | function makeTexelCopyBufferLayout( |
| LOW | package/src/bun/proc/native.ts | 89 | function ensureWebviewRuntimeConfigured() { |
| LOW | package/src/bun/preload/events.ts | 116 | export function initSPANavigationInterception() { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | kitchen/src/tests/session.test.ts | 61 | // // Just test that the call doesn't throw |
| LOW | kitchen/src/tests/session.test.ts | 81 | // category: "Session", |
| LOW | kitchen/src/tests/session.test.ts | 101 | |
| LOW | kitchen/src/tests/interactive/permissions.test.ts | 1 | // Interactive Permission Prompt Tests |
| LOW | package/src/native/macos/nativeWrapper.mm | 1 | /* |
| LOW | package/src/native/macos/nativeWrapper.mm | 21 | static int cached = -1; |
| LOW | package/src/native/macos/nativeWrapper.mm | 41 | #include "include/cef_client.h" |
| LOW | package/src/native/macos/nativeWrapper.mm | 61 | #include <atomic> |
| LOW | package/src/native/macos/nativeWrapper.mm | 5921 | // CefRegisterSchemeHandlerFactory("views", "", new ElectrobunSchemeHandlerFactory(assetFileLoader, 0)); |
| LOW | package/src/native/win/nativeWrapper.cpp | 1 | #include <winsock2.h> // Must come before Windows.h |
| LOW | package/src/native/win/nativeWrapper.cpp | 21 | #include "dawn/webgpu.h" |
| LOW | package/src/native/win/nativeWrapper.cpp | 41 | #include <dxgi1_2.h> // For DXGI 1.2 (CreateSwapChainForComposition) |
| LOW | package/src/native/win/nativeWrapper.cpp | 61 | #include "../shared/json_menu_parser.h" |
| LOW | package/src/native/win/nativeWrapper.cpp | 361 | #include "include/cef_scheme.h" |
| LOW | package/src/native/win/nativeWrapper.cpp | 381 | #pragma comment(lib, "comctl32.lib") |
| LOW | package/src/native/win/nativeWrapper.cpp | 3441 | // WebView2 uses GPU-accelerated Direct3D rendering through an "Intermediate D3D Window" |
| LOW | package/src/native/win/nativeWrapper.cpp | 12421 | // Not supported on Windows |
| LOW | package/src/native/win/dcomp_compositor.h | 1 | // dcomp_compositor.h — DirectComposition GPU surface compositor for Windows |
| LOW | package/src/native/shared/cef_response_filter.h | 1 | // cef_response_filter.h - Cross-platform CEF response filter for preload script injection |
| LOW | package/src/native/shared/json_menu_parser.h | 1 | // json_menu_parser.h - Cross-platform simple JSON menu parser |
| LOW | package/src/native/shared/thread_safe_map.h | 1 | // thread_safe_map.h - Cross-platform thread-safe map template |
| LOW | package/src/native/shared/download_event.h | 1 | // download_event.h - Cross-platform download event structures |
| LOW | package/src/native/shared/permissions.h | 1 | // permissions.h - Cross-platform permission cache management |
| LOW | package/src/native/shared/navigation_rules.h | 1 | // navigation_rules.h - Cross-platform navigation rules checking |
| LOW | package/src/native/shared/asar.h | 1 | // asar.h - Cross-platform ASAR archive C FFI declarations |
| LOW | package/src/native/shared/shutdown_guard.h | 1 | // shutdown_guard.h - Cross-platform shutdown state management |
| LOW | package/src/native/shared/permissions_cef.h | 1 | // permissions_cef.h - CEF-aware permission helpers |
| LOW | package/src/native/shared/ffi_helpers.h | 1 | // ffi_helpers.h - Cross-platform FFI helper utilities |
| LOW | package/src/native/shared/webview_storage.h | 1 | // webview_storage.h - Cross-platform webview content storage |
| LOW | package/src/native/shared/cache_migration.h | 1 | // cache_migration.h - One-shot CEF cache folder wipe on Electrobun upgrades. |
| LOW | package/src/native/shared/cache_migration.h | 21 | // "old layout" that needs wiping. |
| LOW | package/src/native/shared/cache_migration.h | 41 | #include <exception> |
| LOW | package/src/native/shared/partition_context.h | 1 | // partition_context.h - Cross-platform CEF partition (CefRequestContext) management. |
| LOW | package/src/native/shared/partition_context.h | 21 | // per call, never cached. Closing and reopening a webview that uses |
| LOW | package/src/native/shared/mime_types.h | 1 | // mime_types.h - Cross-platform MIME type detection |
| LOW | package/src/native/shared/glob_match.h | 1 | // glob_match.h - Cross-platform glob pattern matching utility |
| LOW | package/src/native/shared/chromium_flags.h | 1 | // chromium_flags.h - Cross-platform Chromium CLI flag passthrough |
| LOW | package/src/native/linux/nativeWrapper.cpp | 1 | #include <gtk/gtk.h> |
| LOW | package/src/native/linux/nativeWrapper.cpp | 21 | #include <iostream> |
| LOW | package/src/native/linux/nativeWrapper.cpp | 41 | #include <set> |
| LOW | package/src/native/linux/nativeWrapper.cpp | 101 | // adds CEF into their bundles |
| LOW | package/src/native/linux/nativeWrapper.cpp | 1601 | |
| LOW | package/src/native/linux/nativeWrapper.cpp | 3041 | |
| LOW | package/src/cli/index.ts | 2681 | join(appBundleFolderContentsPath, "Info.plist"), |
| LOW | package/src/cli/index.ts | 2701 | // ./bun ../Resources/app/bun/index.js >"$LOG_FILE" 2>&1 |
| LOW | package/src/cli/index.ts | 3981 | // For Linux, the app bundle is already in the correct directory structure |
| LOW | package/src/cli/index.ts | 4481 | }); |
| LOW | package/src/bun/proc/native.ts | 2201 | const { quit } = require("../core/Utils"); |
| LOW | package/src/bun/__tests__/ffi-contract.test.ts | 1 | // Contract tests for the bun:ffi APIs that electrobun depends on. |
| LOW | package/src/bun/preload/index-sandboxed.ts | 1 | // Electrobun Sandboxed Preload Script (for untrusted webviews) |
| LOW | package/src/bun/preload/index.ts | 1 | // Electrobun Full Preload Script (for trusted webviews) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | package/scripts/build-and-upload-artifacts.js | 99 | // Step 1: Build the release artifacts |
| LOW | package/scripts/build-and-upload-artifacts.js | 108 | // Step 2: Check if the artifacts exist |
| LOW | package/scripts/build-and-upload-artifacts.js | 127 | // Step 3: Check if release exists |
| LOW | package/scripts/build-and-upload-artifacts.js | 161 | // Step 4: Upload artifacts |
| LOW | package/scripts/build-and-upload-artifacts.js | 192 | // Step 5: Clean up local artifacts |
| LOW | package/src/native/win/nativeWrapper.cpp | 8244 | // Step 1: Init DComp compositor (visual tree) on main thread |
| LOW | package/src/native/win/nativeWrapper.cpp | 8257 | // Step 2: Get Dawn's DX12 device to find the DXGI adapter |
| LOW | package/src/native/win/nativeWrapper.cpp | 8264 | // Step 3: Create dedicated presentation D3D11 device on Dawn's adapter |
| LOW | package/src/native/win/nativeWrapper.cpp | 8307 | // Step 4: Create swap chain on the presentation device |
| LOW | package/src/native/win/nativeWrapper.cpp | 8317 | // Step 5: Create DX12 staging texture with shared access |
| LOW | package/src/native/win/nativeWrapper.cpp | 8340 | // Step 6: Create DXGI shared handle |
| LOW | package/src/native/win/nativeWrapper.cpp | 8349 | // Step 7: Set up cross-device sync |
| LOW | package/src/native/win/nativeWrapper.cpp | 8370 | // Step 8: Open shared handle on presentation device for CopyResource |
| LOW | package/src/native/win/nativeWrapper.cpp | 8383 | // Step 9: Import into Dawn via SharedTextureMemory |
| LOW | package/src/native/win/nativeWrapper.cpp | 8407 | // Step 10: Create WGPUTexture from SharedTextureMemory |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | package/src/cli/index.ts | 2690 | // # Define the log file path |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | package/src/cli/index.ts | 4138 | // Run it as a separate process to leverage multi-threadedness |