js_browser

    browser-specific js bindings (DOM, canvas, indexeddb, ...)

    js
    browser
    dom
    Download zip
    Author
    Version
    0.13.1
    License
    MIT
    Last updated
    3 days ago
    Downloads
    6K

    #mizchi/js_browser

    Browser-specific API bindings for MoonBit, providing type-safe access to browser DOM operations and browser-specific features.

    #Packages

    PackageStatusNote
    mizchi/js_browser/dom🧪 TestedDocument, Element, Node, HTMLElement, SVGElement, Window, Events, CSS
    mizchi/js_browser/canvas🧪 TestedCanvas 2D, OffscreenCanvas
    mizchi/js_browser/history🧪 TestedHistory API
    mizchi/js_browser/location🧪 TestedLocation API
    mizchi/js_browser/navigator🧪 TestedNavigator API
    mizchi/js_browser/storage🤖 AI GeneratedlocalStorage, sessionStorage
    mizchi/js_browser/indexeddb🧪 TestedIndexedDB
    mizchi/js_browser/observer🤖 AI GeneratedMutationObserver, IntersectionObserver, ResizeObserver
    mizchi/js_browser/serviceworker🧪 TestedServiceWorker, ServiceWorkerRegistration

    #Status Legend

    • 🧪 Tested: Has test coverage
    • 🤖 AI Generated: FFI bindings created, needs testing

    #Overview

    This package provides comprehensive bindings to browser-specific APIs, including:

    • DOM: Document, Element, Node, HTMLElement, SVGElement, Window, Text, DocumentFragment
    • Events: Mouse, Keyboard, Pointer, Focus, Drag event handling
    • Canvas: 2D rendering context, OffscreenCanvas
    • Storage: localStorage, sessionStorage, IndexedDB
    • Navigation: History, Location
    • Browser Info: Navigator
    • Workers: ServiceWorker

    All APIs are aligned with TypeScript's standard DOM type definitions.

    #See Also