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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@d11/flash-client

v0.1.4

Published

Flash Client - React Native Server Driven UI library

Readme

⚡ Flash Client

npm version License: MIT

Flash Client is a powerful React Native Server Driven UI (SDUI) library that enables dynamic UI updates without app releases. It allows you to define, manage, and render UI components from server configurations while maintaining native performance.

Features

  • ⚡️ Dynamic Component Rendering
  • 🔄 Real-time UI Updates
  • 📱 Cross-Platform Support (iOS & Android)
  • 🎨 Customizable Component Registry
  • 🛠 Type-Safe Component Definitions
  • 📦 Easy Integration

📚 Documentation

Installation

npm install @d11/flash-client

or

yarn add @d11/flash-client

Quick Start

1. Initialize Flash Client in your app:

import { Flash } from '@d11/flash-client';

// Initialize with optional listeners and configuration
Flash.init({
  onError: (error) => console.error(error),
  onComponentUpdate: (component) => console.log('Component updated:', component),
});

2. Register Custom Components:

import { Flash } from '@d11/flash-client';
import { MyCustomComponent } from './components';

Flash.registerComponent({
  'MyCustomComponent': MyCustomComponent,
});

3. Set Component Data:

Flash.setComponentsData([
  {
    id: 'header_1',
    type: 'FlashView',
    props: {
      style: {
        backgroundColor: '#fff',
        padding: 16,
      },
    },
    children: [
      {
        type: 'FlashText',
        props: {
          text: 'Welcome to Flash!',
          style: {
            fontSize: 24,
            fontWeight: 'bold',
          },
        },
      },
    ],
  },
]);

4. Render Components:

- Rendering Lists with Inflater on Screen
import { Flash, FlatListInflater } from '@d11/flash-client';

function MatchListScreen() {
  const listLayout = Flash.getComponentLayout('match_list');

  return (
    <FlatListInflater
      components={listLayout.components}
  data={listLayout.data}
  style={listLayout.styles}
  overrides={listLayout.overrides}
  flatListProps={{
      keyExtractor: (item, index) => `match-${index}`,
      showsHorizontalScrollIndicator: false,
  }}
  />
);
}
- Fully Dynamic Rendering with FlashComponent
import { FlashComponent } from '@d11/flash-client';

function DynamicBlock({ layout }) {
  return (
    <FlashComponent
      name={layout.name}
      data={layout.data}
      components={layout.components}
      styles={layout.styles}
      overrides={layout.overrides}
    />
  );
}

Core Concepts

Component Structure

Components in Flash Client follow a specific structure:

Component = {
  name: string;
  components?: Array<Component>; // Nested children
  styles?: Style;
  overrides?: Overrides;
  data?: PropData;
  dataId?: string;
}

Built-in Components

Flash Client comes with several pre-built components:

  • FlashView: A basic container component
  • FlashText: Text rendering component
  • FlashImage: Image rendering component
  • ScrollInflater: Scrollable container
  • FlatListInflater: List rendering component

TypeScript Support

Flash Client is written in TypeScript and provides full type definitions out of the box.

⚡ Flash is Evolving Fast!

We’re actively working on powerful new features to make Flash even more dynamic and flexible:

  • 🧩 Events & Actions System — Trigger behaviors like navigation, deep links, and alerts directly from backend-defined JSON
  • 🌐 Remote Components — Render components dynamically using pre-transpiled JSX, enabling lightweight feature delivery without bundling into the app
  • 🧱 Enhanced Component Library — A richer set of reusable, Flash-compatible UI components out of the box

Community Discord

Join the DreamSportsLabs Community to chat about flash-client or other DreamSportsLabs libraries.

Created by DreamSportsLabs

DreamSportsLabs is committed to building open-source tools that empower developers and businesses. Learn more about us at our website.

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support