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

@unvired/turboforms-rn-embed-sdk

v0.0.3

Published

Cross-platform HTML form bundled for React Native, Web, and Android

Readme

TurboForms React Native Embed SDK

A robust React Native wrapper for the TurboForms SDK, providing a seamless bridge between your mobile application and powerful dynamic forms.

Features

  • Embedded WebView: Renders complex forms using a high-performance WebView.
  • Native Bridges: Direct integration with device features like Camera, Barcode Scanning, and Location.
  • Attachment Management: Centralized utility for handling file attachments and IndexedDB persistence.
  • Form Lifecycles: Full support for form rendering, saving, submission, and validation events.
  • Theming & Customization: Pass theme data and configuration options directly from React Native.
  • Smart Storage Initialization: Event-driven initialization ensures storage is immediately available.

Installation

npm install @unvired/turboforms-rn-embed-sdk

Automation (Asset Linking)

This library includes a postinstall script that automatically copies the required HTML assets:

  • Android: Automatically copied to android/app/src/main/assets/.
  • iOS: Bundled automatically via the React Native asset system.

Peer Dependencies

Ensure you have the following dependencies installed in your project:

  • react-native-webview
  • react-native-safe-area-context

Basic Usage

import React, { useRef } from 'react';
import { SDKFormWrapper, FORM_EVENTS } from '@unvired/turboforms-rn-embed-sdk';

const MyFormScreen = () => {
  const webViewRef = useRef(null);

  const handleEvent = (event) => {
    switch (event.type) {
      case 'smartStorageReady':
        // Storage is immediately initialized 
        console.log('SmartStorage ready.');
        break;
      case FORM_EVENTS.SUBMIT:
        console.log('Form Submitted:', event.data.formData);
        break;
      case 'FORM_SAVE_ATTACH':
        // Intercepted physically separated attachment data
        console.log('Attachment Data:', event.data.attachments);
        break;
      case "GET_ATTACHMENT":
        // Handle missing attachments
        break;
    }
  };

  return (
    <SDKFormWrapper
      ref={webViewRef}
      formsData={formTemplateJson}
      submissionData={existingDataJson}
      eventCallback={handleEvent}
      options={{
        platform: 'ios',
        themeData: myTheme,
      }}
    />
  );
};

Attachment Management Workflow

The SDK utilizes a robust, event-driven attachment synchronization system to handle heavy files asynchronously without blocking the UI.

1. Outgoing Flow (Save/Submit)

When saving or submitting, the SDK automatically intercepts FORM_SAVE and FORM_SUBMIT events. It resolves file IDs from IndexedDB and dispatches the submission data and physical attachment data back to the app as separate events (FORM_SAVE/FORM_SUBMIT and FORM_SAVE_ATTACH), keeping the UI responsive.

2. Incoming Flow (Pre-load)

When the HTML SDK requests a missing attachment via the GET_ATTACHMENT event, use the AttachmentManager to resolve and persist it into the WebView's IndexedDB.

import { AttachmentManager } from '@unvired/turboforms-rn-embed-sdk';

// Inside your event handler
if (event.type === "GET_ATTACHMENT") {
  const attachments = event.data.missingFiles.map(file => ({
    fileId: file.fileId,
    name: "resolved_file.png",
    size: 1024,
    type: "image/png",
    url: "data:image/png;base64,..."
  }));

  AttachmentManager.saveMultipleToIndexedDB(webViewRef, attachments);
}

// When resolution is complete, refresh the form
if (event.type === "ATTACHMENT_SAVED") {
  webViewRef.current.reloadForm();
}

API Reference

SDKFormWrapper Props

| Prop | Type | Description | | :--- | :--- | :--- | | formsData | string \| object | The form template JSON. | | submissionData | object | Initial data for the form fields. | | eventCallback | function | Handlers for SDK events. | | options | object | Configuration (theme, permissions, etc.). |

Exposed Methods via Ref

  • reloadForm(): Re-injects the current payload into the WebView, useful for refreshing after data updates or attachment resolution.

© 2026 Unvired Inc. All rights reserved.