Bindings
Typed bindings for the JavaScript ecosystem
Hand-written, strongly typed F# and C# wrappers for the libraries and browser APIs you already use. Each package targets a specific upstream version, so the types match the JavaScript you actually ship.
Binding versions are refreshed from NuGet. Library versions show the latest stable release on npm.
Why typed bindings
Declare a JavaScript API once, use it as typed code everywhere
The WebSharper Interface Generator (WIG) turns a JavaScript API into a typed, machine-readable definition. From that single definition WebSharper generates idiomatic F# and C# — plus the interop glue — so you call JavaScript with the same confidence as native code.
-
Type-safe across the boundary
Every method, option and return type is checked by the F# or C# compiler. A renamed function, a missing required option or the wrong argument is a build error — not a runtime crash.
-
Machine-readable and AI-friendly
A WIG definition is structured metadata, not prose. Tools and AI agents can read it to generate complete, consistent bindings — and to pinpoint exactly what changed when the upstream API moves.
-
Pinned to the library you ship
Each binding records the upstream release it targets, so its types match the JavaScript you actually load. The freshness badge on every card shows when you are current — or behind.
-
No hand-written interop
No
obj, nodynamic, no stringly-typed escape hatches and no manual marshalling — generated bindings compile straight down to the underlying JavaScript calls.
Anatomy of a binding card
Every card is generated from the binding's metadata. Here is what each part tells you.
Generating bindings with AI
Hand this skill file to your coding agent — Claude Code, Cursor, Codex or any tool that reads agent skills. It carries the WIG patterns, the project layout and the checks to run, so the agent can scaffold a complete, type-safe binding for you.
websharper-binding-skill.md · drop it into your agent's skills folder
JavaScript libraries
Typed wrappers for charting, maps, editors, documents, UI frameworks and more.
Charts & visualization
7Chart.js
4.6.1+WebSharper.ChartJs 10.1.0.713Dev
Canvas charts — line, bar, radar, doughnut and more — configured through a typed model.
D3
7.9.2+WebSharper.D3 10.1.0.667Dev
Data-driven documents: selections, scales, shapes, transitions and geo projections.
Highcharts
13.1.1+WebSharper.Highcharts 10.1.0.718Dev
Interactive charts, Highstock and Highmaps, generated from the official Highcharts API.
Highstock
13.1.1+WebSharper.Highstock 10.1.0.718Dev
Time-series and financial charts with navigator, range selector and data grouping.
Highmaps
13.1.1+WebSharper.Highmaps 10.1.0.718Dev
Geographic maps and map series, generated from the official Highcharts API.
Plotly.js
4.3.0+WebSharper.Plotly 10.1.0.712Dev
Interactive scientific and statistical charts with a typed trace and layout model.
Editors & documents
7Ace
1.45.2+WebSharper.Ace 10.1.0.706Dev
The embeddable code editor — sessions, documents, ranges, selections, search, markers and themes.
CodeMirror
6.0.2+WebSharper.CodeMirror 10.1.0.716Dev
The modular CodeMirror 6 editor, with typed language extensions and themes.
highlight.js
11.12.0+WebSharper.HighlightJS 10.1.0.715Dev
Client-side syntax highlighting with the core build and typed language registration.
jsPDF
4.2.1+WebSharper.JsPDF 10.1.0.710Dev
Client-side PDF generation — text, images, tables and page breaks.
Remarkable
2.0.1+WebSharper.Remarkable 10.1.0.667Dev
Markdown parsing and rendering with configurable options.
SlickGrid
6.0.0+WebSharper.SlickGrid 10.1.0.714Dev
Fast virtualized data grids with sorting, formatting and editing.
UI components
10React
19.3.1+WebSharper.React 10.1.0.720Dev
React components and hooks with typed props and state.
FluentUI React
9.75.2+WebSharper.FluentUI.React.Components 10.1.0.721Dev
Fluent UI React components — buttons, dialogs, inputs and layout primitives.
FluentUI Icons
2.0.345+WebSharper.FluentUI.React.Icons 10.1.0.722Dev
The full Fluent UI icon set exposed as typed React components.
SweetAlert2
11.26.25+WebSharper.SweetAlert 10.1.0.723Dev
Accessible modal dialogs and alerts with a small, typed API.
jQuery
4.0.0+WebSharper.JQuery 10.1.0.717Dev
jQuery selections, events, Ajax and Deferred, plus sitelet router helpers.
GoldenLayout
2.6.0+WebSharper.GoldenLayout 10.1.0.730Dev
A multi-pane, dockable layout manager for complex web applications.
FullCalendar
6.1.22+WebSharper.FullCalendar 10.1.0.744Dev
Drag-and-drop event calendars with day, week, month, list and timeline views.
Swiper
14.4.0+WebSharper.Swiper 10.1.0.744Dev
Touch-enabled sliders and carousels with modules, effects, navigation and pagination.
SortableJS
1.15.7+WebSharper.SortableJs 10.1.0.739Dev
Reorderable drag-and-drop lists with multi-drag, swap and spill plugins.
Maps & geo
2Leaflet
1.9.4+WebSharper.Leaflet 10.1.0.667Dev
Interactive maps, markers, popups and tile layers from F#.
Utilities & dates
5Anime.js
4.5.0+WebSharper.AnimeJs 10.1.0.708Dev
A lightweight animation engine with a declarative API for CSS, SVG and DOM animations.
date-fns
4.4.0+WebSharper.DateFNS 10.1.0.706Dev
Immutable date manipulation with a large set of small, composable functions.
Moment.js
2.31.0+WebSharper.Moment 10.1.0.711Dev
Date parsing, formatting, durations and time zones.
Day.js
1.11.23+WebSharper.DayJs 10.1.0.744Dev
A tiny, immutable date library with formatting, parsing, durations and plugins.
Math & typesetting
2math.js
15.2.0+WebSharper.MathJS 10.1.1.724Dev
Arbitrary-precision numbers, expression parsing, matrices, vectors and units.
Machine learning
13D & graphics
3Babylon.js
9.36.0+WebSharper.BabylonJs 10.1.0.744Dev
A complete 3D engine — scenes, meshes, materials, cameras, lights and animation.
Three.js
0.187.0+WebSharper.ThreeJs 10.1.0.750Dev
The 3D library — scenes, geometries, materials, loaders, renderers and animation.
Databases & storage
2PouchDB
9.0.0+WebSharper.PouchDB 10.1.0.743Dev
A JavaScript database that syncs — local storage with CouchDB-compatible replication.
Mobile & native
3Capacitor
8.6.2+WebSharper.Capacitor 10.1.0.726Dev
Typed bindings for the official Capacitor plugins — camera, filesystem, browser, haptics and more.
Capacitor Community
8.0.2+WebSharper.Capacitor.Community 10.1.0.727Dev
Community Capacitor plugins, including Bluetooth LE, text-to-speech, native audio and camera preview.
Browser APIs
Typed access to modern browser APIs — no third-party library, no hand-written interop.
Graphics & compute
2Devices
8WebUSB
Native APIWebSharper.WebUSB 10.1.0.667Dev
Communicate with USB devices directly from the browser.
Web Serial
Native APIWebSharper.WebSerial 10.1.0.667Dev
Read from and write to serial devices.
WebMIDI
Native APIWebSharper.WebMIDI 10.1.0.667Dev
MIDI input, output and device discovery.
Web Bluetooth
Native APIWebSharper.WebBluetooth 10.1.0.701Dev
Connect to Bluetooth Low Energy devices and GATT services.
Gamepad
Native APIWebSharper.Gamepad 10.1.0.700Dev
Gamepad discovery, button, axis and rumble state.
Battery Status
Native APIWebSharper.BatteryStatus 10.1.0.700Dev
Battery charge level and charging state.
Screen Wake Lock
Native APIWebSharper.ScreenWakeLock 10.1.0.700Dev
Keep the screen awake while a task is running.
Media & communication
8WebRTC
Native APIWebSharper.WebRTC 10.1.0.700Dev
Camera and microphone streams, plus peer-to-peer media types.
Web Speech
Native APIWebSharper.WebSpeech 10.1.0.667Dev
Speech synthesis and speech recognition.
WebCodecs
Native APIWebSharper.WebCodecs 10.1.0.701Dev
Low-level audio and video encoding and decoding.
WebVTT
Native APIWebSharper.WebVTT 10.1.0.701Dev
Parse and manipulate WebVTT subtitle and caption tracks.
Media Session
Native APIWebSharper.MediaSession 10.1.0.700Dev
Expose playback to OS media controls and the media notification.
Media Capabilities
Native APIWebSharper.MediaCapabilities 10.1.0.700Dev
Query decoding and encoding capabilities and smoothness.
Picture-in-Picture
Native APIWebSharper.PictureInPicture 10.1.0.700Dev
Float a video element into a system Picture-in-Picture window.
Storage & state
4Web Locks
Native APIWebSharper.WebLocks 10.1.0.667Dev
Coordinate access to resources across tabs and workers.
IndexedDB
Native APIWebSharper.IndexedDB 10.1.0.700Dev
Structured client-side storage with typed object stores.
Cookie Store
Native APIWebSharper.CookieStore 10.1.0.700Dev
Asynchronous cookie read and write, with change events.
Input & UI
6Touch Events
Native APIWebSharper.TouchEvents 10.1.0.700Dev
Touch and pointer events for mobile interactions.
Popover API
Native APIWebSharper.Popover 10.1.0.704Dev
Native HTML popovers anchored to elements.
Clipboard
Native APIWebSharper.Clipboard 10.1.0.700Dev
Asynchronous clipboard read and write of text and arbitrary items.
Drag and Drop
Native APIWebSharper.DragDrop 10.1.0.700Dev
HTML5 drag-and-drop with typed data transfer.
Intersection Observer
Native APIWebSharper.IntersectionObserver 10.1.0.700Dev
Observe element visibility and viewport intersections.
Performance
3Performance API
Native APIWebSharper.PerformanceAPI 10.1.0.700Dev
Navigation and resource timing, plus custom performance marks.
Task Scheduling
Native APIWebSharper.TaskScheduling 10.1.0.700Dev
Prioritized, yielding work with the scheduler API.
Networking & runtime
4Service Worker
Native APIWebSharper.ServiceWorker 10.1.0.700Dev
Offline-capable background scripts for caching, push and sync.
Network Information
Native APIWebSharper.NetworkInformation 10.1.0.700Dev
Connection type, effective bandwidth and downlink.
Push
Native APIWebSharper.Push 10.1.0.700Dev
Web push notifications via a service worker subscription.
Payments
1Security & identity
3Web Crypto
Native APIWebSharper.WebCrypto 10.1.0.701Dev
Cryptographic primitives: keys, encryption, signing and hashing.
Credential Management
Native APIWebSharper.CredentialManagement 10.1.0.700Dev
Store and retrieve credentials through the browser's credential store.