npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

blutic-webview

v1.0.3

Published

A simple WebView bridge that posts app context to web pages

Readme

Simple WebView Bridge - JS SDK (React Native + Expo)

A lightweight WebView bridge for React Native and Expo that automatically posts app context to web pages.

Installation

For Expo Projects

npx expo install react-native-webview expo-application
npm install blutic-webview

For React Native Projects

npm install react-native-webview expo-application blutic-webview

For iOS in React Native (non-Expo):

cd ios && pod install

Usage

JavaScript

import React from "react";
import { View, StyleSheet } from "react-native";
import SimpleWebViewBridge from "blutic-webview";

export default function App() {
  return (
    <View style={styles.container}>
      <SimpleWebViewBridge
        web_url="https://your-website.com"
        style={styles.webview}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  webview: {
    flex: 1,
  },
});

TypeScript

import React from "react";
import { View, StyleSheet } from "react-native";
import SimpleWebViewBridge from "blutic-webview";

export default function App() {
  return (
    <View style={styles.container}>
      <SimpleWebViewBridge
        web_url="https://your-website.com"
        style={styles.webview}
        onLoad={() => {
          console.log("WebView loaded");
        }}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  webview: {
    flex: 1,
  },
});

What It Does

When the WebView loads, it automatically sends this message to the web page:

{
  type: 'APP_CONTEXT',
  appId: 'com.example.yourapp',  // Your app's bundle identifier or package name
  platform: 'ios'                  // or 'android'
}

Receiving the Message in Your Web Page

In your web page, listen for the message like this:

window.addEventListener("message", (event) => {
  const data = event.data;

  if (data.type === "APP_CONTEXT") {
    console.log("App ID:", data.appId);
    console.log("Platform:", data.platform);

    // Now you can use this information to customize the web experience
    // or verify that the page is being loaded from your app
  }
});

Props

| Prop | Type | Required | Description | | --------- | ---------------------- | -------- | --------------------------------------- | | web_url | string | Yes | The URL to load in the WebView | | onLoad | () => void | No | Callback when the page finishes loading | | style | StyleProp<ViewStyle> | No | Style for the WebView |

SimpleWebViewBridge also accepts all other standard React Native WebView props. See the react-native-webview documentation for all available props.

License

MIT