Skip to content

uni-dom: Feature ideas for browser API coverage #409

@xerial

Description

@xerial

uni-dom Feature Ideas

Tracking feature suggestions for expanding uni-dom's browser API coverage.

High Value — Commonly needed in real apps

  • Element Transitions — Enter/exit/move animations for elements (like Vue's <Transition> / <TransitionGroup>). Declarative CSS transition orchestration.
  • Click Outside Detection — Detect clicks outside an element (essential for dropdowns, modals, popovers).
  • Virtual Scroll / Windowing — Efficiently render large lists by only mounting visible items. Builds on IntersectionObserver + ResizeObserver.
  • Idle DetectionrequestIdleCallback wrapper for deferring non-critical work, plus user inactivity detection.
  • Debounce / Throttle utilities — Generic Rx-level debounce/throttle for input events.

Medium Value — Useful for richer apps

  • WebSocket client — Reactive WebSocket wrapper (Rx[Message], auto-reconnect, backoff).
  • Fullscreen API — Enter/exit fullscreen with reactive state tracking.
  • Web Share API — Native share sheet with fallback detection.
  • Selection API — Track text selection ranges reactively.
  • Canvas 2D wrapper — Declarative canvas drawing context.

Lower Priority — Niche but nice to have

  • MutationObserver bindings — Watch DOM subtree changes reactively.
  • Permission API — Query and watch browser permission states.
  • Page Lifecycle — Freeze/resume detection beyond just visibility.
  • IndexedDB wrapper — Reactive client-side database for larger/structured data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions