
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@bun-win32/core
Advanced tools
Shared base class, runtime extensions, and fundamental Win32 types for @bun-win32 packages.
Shared base class, runtime extensions, and fundamental Win32 types for @bun-win32 packages.
@bun-win32/core provides the foundation that all @bun-win32 DLL packages build on:
Win32 base class — Abstract class that handles lazy dlopen loading and symbol memoization. Every DLL package (kernel32, user32, etc.) extends this class..ptr getter on all ArrayBuffer, Buffer, DataView, and typed array prototypes, giving direct access to native pointers for Bun FFI calls.HANDLE, DWORD, LPVOID, BOOL, etc.) that map Win32 C types to their TypeScript equivalents.bun add @bun-win32/core
You typically do not need to install this directly — it is pulled in as a dependency of each DLL package.
Win32 for a new DLLimport { FFIType, type FFIFunction } from 'bun:ffi';
import { Win32 } from '@bun-win32/core';
class MyDll extends Win32 {
protected static override name = 'mydll.dll';
protected static override readonly Symbols = {
MyFunction: { args: [FFIType.u32], returns: FFIType.i32 },
} as const satisfies Record<string, FFIFunction>;
public static MyFunction(value: number): number {
return MyDll.Load('MyFunction')(value);
}
}
import '@bun-win32/core';
const buffer = new Uint8Array([1, 2, 3]);
nativeFunction(buffer.ptr, buffer.length);
import type { DWORD, HANDLE, BOOL } from '@bun-win32/core';
@bun-win32 DLL packages.FAQs
Shared base class, runtime extensions, and fundamental Win32 types for @bun-win32 packages.
The npm package @bun-win32/core receives a total of 111 weekly downloads. As such, @bun-win32/core popularity was classified as not popular.
We found that @bun-win32/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.