awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jaredpalmer avatar

jaredpalmer/react-fns

0
View on GitHub↗
3,705 stars·98 forks·TypeScript·MIT·2 views

React Fns

react-fns is a suite of declarative components and utilities designed to wrap imperative browser APIs for use in React applications. It provides a set of components and higher-order components that integrate browser environment data, device sensors, network status, and native application launchers into a reactive user interface.

The library enables declarative access to hardware sensors for tracking accelerometer, gyroscope, and orientation data in real time. It also includes native app launchers that trigger the default system mail and SMS applications using pre-filled links.

Additional capabilities cover network status monitoring for online and offline connectivity, geolocation tracking for latitude and longitude, and user locale detection. The project also provides utilities for monitoring browser viewport dimensions and page scroll positions to trigger layout updates.

Features

  • Browser API Wrappers - Provides a suite of declarative React components and higher-order components that wrap imperative browser APIs.
  • Browser API Integrations - Provides declarative interfaces for accessing hardware and media capabilities directly through web platform APIs.
  • Device Sensors - Integrates native hardware sensors for motion and orientation directly into the React reconciliation loop.
  • Browser Sensor Monitoring - Provides hooks for tracking real-time data from web-accessible hardware sensors like accelerometers and gyroscopes.
  • Imperative-to-Declarative Bridges - Provides an architectural bridge that maps imperative browser APIs to a declarative, state-driven React interface.
  • Motion Data Streaming - Monitors accelerometer and gyroscope data in real time to detect physical movement and acceleration.
  • Browser Geolocation Interfaces - Provides a declarative React component to track the device's global latitude and longitude coordinates.
  • Device Orientation APIs - Provides interfaces for detecting the physical tilt and rotation of a device via native browser APIs.
  • Network Connectivity Monitoring - Implements hooks and components to detect and monitor the online or offline status of the browser environment.
  • Browser Location Retrievers - Retrieves geographic coordinates specifically through web browser location APIs and permission flows.
  • Viewport Resize Observers - Monitors browser viewport dimensions and resize events to trigger responsive layout recalculations.
  • Browser Connectivity State Tracking - Tracks the online and offline state of the device to adapt the application experience based on network availability.
  • Browser Environment Detection - Provides utilities for identifying the user's locale, viewport dimensions, and browser environment.
  • Event-Driven State Synchronizers - Synchronizes browser event listeners with React state to trigger UI re-renders based on external system changes.
  • Higher-Order Components - Uses higher-order components to inject browser-level capabilities into functional components without altering their internal logic.
  • Responsive Viewport Monitoring - Provides utilities for tracking window dimensions and media queries to adapt UI layouts dynamically.
  • Scroll-Offset Tracking - Tracks the current scroll offset of the page to trigger reactive layout updates and UI changes.
  • Viewport Dimension Tracking - Tracks browser viewport dimensions and scroll offsets to drive reactive layout updates.
  • Event Listener Managers - Manages the registration and cleanup of browser event listeners tied to component mount and unmount cycles.
  • Geolocation Services - The library retrieves current latitude and longitude coordinates using system location services to identify the device's global position.
  • URI Scheme Launchers - Enables launching the default system mail and SMS applications with pre-filled recipient and subject data.

Star history

Star history chart for jaredpalmer/react-fnsStar history chart for jaredpalmer/react-fns

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does jaredpalmer/react-fns do?

react-fns is a suite of declarative components and utilities designed to wrap imperative browser APIs for use in React applications. It provides a set of components and higher-order components that integrate browser environment data, device sensors, network status, and native application launchers into a reactive user interface.

What are the main features of jaredpalmer/react-fns?

The main features of jaredpalmer/react-fns are: Browser API Wrappers, Browser API Integrations, Device Sensors, Browser Sensor Monitoring, Imperative-to-Declarative Bridges, Motion Data Streaming, Browser Geolocation Interfaces, Device Orientation APIs.

What are some open-source alternatives to jaredpalmer/react-fns?

Open-source alternatives to jaredpalmer/react-fns include: streamich/react-use — react-use is a collection of reusable state and effect hooks for managing common logic in React applications. It… samdutton/simpl — Simpl is an HTML, CSS, and JavaScript example library that provides a collection of minimal functional demonstrations… chalarangelo/30-seconds-of-react — This project is a comprehensive collection of reusable code snippets, custom hooks, and implementation patterns for… contra/react-responsive — react-responsive is a set of utility tools and hooks for evaluating CSS media queries within React components. It… juliencrn/usehooks-ts — usehooks-ts is a comprehensive collection of reusable TypeScript-based hooks designed for managing state, DOM events,… aljullu/react-lazy-load-image-component — This library provides a set of React components designed to improve initial page load performance by deferring the…

Open-source alternatives to React Fns

Similar open-source projects, ranked by how many features they share with React Fns.
  • streamich/react-usestreamich avatar

    streamich/react-use

    43,974View on GitHub↗

    react-use is a collection of reusable state and effect hooks for managing common logic in React applications. It serves as a comprehensive library for implementing state management patterns and wrapping various browser APIs into consistent hook interfaces. The project provides a specialized toolkit for DOM interaction and browser API integration, allowing components to track element dimensions, manage cookies, and monitor hardware sensors. It includes a suite of animation and timing utilities for physics-based numeric interpolation and frame-synced state updates. Beyond basic state managemen

    TypeScript
    View on GitHub↗43,974
  • samdutton/simplsamdutton avatar

    samdutton/simpl

    5,191View on GitHub↗

    Simpl is an HTML, CSS, and JavaScript example library that provides a collection of minimal functional demonstrations of core web technologies and native browser APIs. It serves as a reference implementation and pattern gallery for frontend development, offering practical examples of how to implement common web features. The project showcases a wide range of browser capabilities, including real-time web communication via WebSockets and WebRTC, responsive web design techniques for adaptive layouts, and the implementation of offline workflows using service workers. It also provides demonstratio

    HTMLcsshtmljavascript
    View on GitHub↗5,191
  • chalarangelo/30-seconds-of-reactChalarangelo avatar

    Chalarangelo/30-seconds-of-react

    5,081View on GitHub↗

    This project is a comprehensive collection of reusable code snippets, custom hooks, and implementation patterns for building user interfaces with React. It serves as a library of short examples designed to solve common development tasks, ranging from state management to DOM integration. The collection provides a wide array of specialized utilities for interacting with browser APIs, including window dimension tracking, media query evaluation, and online status monitoring. It also includes practical guides and snippets for performance optimization, such as memoization, lazy loading, and state c

    JavaScripteducationjavascriptlearn-to-code
    View on GitHub↗5,081
  • contra/react-responsivecontra avatar

    contra/react-responsive

    7,172View on GitHub↗

    react-responsive is a set of utility tools and hooks for evaluating CSS media queries within React components. It functions as a viewport state manager that detects screen dimensions and triggers user interface changes based on defined breakpoints. The project includes a helper for server-side rendering and automated testing that allows device properties to be overridden via context. This ensures consistent rendering when browser-native detection is unavailable. The library covers adaptive component rendering, viewport change monitoring, and responsive layout detection. It uses the native ma

    TypeScript
    View on GitHub↗7,172
  • See all 30 alternatives to React Fns→