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

@limbar/ui

v0.3.0

Published

UI components for embedding Limbar products such as remote control of Android emulators in web applications.

Downloads

54

Readme

@limbar/ui

UI components for embedding Limbar products such as remote control of Android emulators in your web applications. All components are built with React and written in TypeScript, exported as ES modules and can be used in any modern JavaScript environment.

Installation

npm install @limbar/ui

Examples

Embed an Android emulator in your web application

See a full example of how to embed an Android emulator in your web application in the examples/simple directory.

Components

RemoteControl

The RemoteControl component allows you to stream the screen of an Android emulator to your application as well as control it with your mouse and keyboard.

Some of the features include:

  • Multiple users can connect to the same instance simultaneously which is super useful for demos and presentations.
    • You can build and deploy your app in a cloud editor that has lim connect android running and see your app in the browser.
  • The component is optimized for low latency and high performance by using WebRTC as the transport layer for both video and the control signals.

Usage

The URL of the instance and a token to authenticate the connection are required. You can create a new instance programmatically using the Limbar API or manually in the Limbar Console. For the full API reference, see the Limbar API Reference.

Here is a quick example of instance creation using the Limbar API:

ORGANIZATION_ID=your-organization-id
LIMBAR_API_KEY=your-api-key
REGION=eu-north1
NAME=your-instance-name

curl -X PUT "https://$REGION.limbar.net/apis/android.limbar.io/v1alpha1/organizations/$ORGANIZATION_ID/instances?wait=true" \
  -H "Authorization: Bearer $LIMBAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"instance\": {\"metadata\": {\"name\": \"$NAME\", \"organizationId\": \"$ORGANIZATION_ID\"}}, \"wait\": true}"

The response will contain the instance's WebRTC URL:

{
    "metadata": {
        "createdAt": "2024-12-05T12:49:01Z",
        "name": "<name>",
        "organizationId": "<org id>"
    },
    "status": {
        "connectionUrl": "https://eu-hel1-3-2585842.limbar.net/apis/android.limbar.io/v1alpha1/organizations/<org id>/instances/<name>/connect",
        "state": "ready",
        "webrtcUrl": "https://eu-hel1-3-2585842.limbar.net/apis/android.limbar.io/v1alpha1/organizations/<org id>/instances/<name>/webrtc"
    },
    "token": "<instance-specific-token>"
}

The status.webrtcUrl is the URL of the WebRTC endpoint and can be used to connect to the instance.

import { RemoteControl } from '@limbar/ui';

function MyRemoteControl() {
  return (
    <RemoteControl 
      url="https://your-webrtc-url" 
      token="your-auth-token"
    />
  );
}

Props

| Prop | Type | Description | |------|------|-------------| | url | string | The URL of the instance to connect to | | token | string | Token used to authenticate the connection to the instance | | className | string? | Optional class name to apply to the component on top of the default styles | | sessionId | string? | Optional unique identifier for the WebRTC session to prevent conflicts between users connected to the same source. If not provided, a random one will be generated | | openUrl | string? | Optional URL to open in the instance when the component is ready, such as an Expo URL |

Contributing

To get the demo working, edit src/demo.tsx to use your own instance URL and token.

npm install
npm run dev

Releasing

To release a new version, follow these steps:

  1. Bump the version in package.json and run npm install.

  2. Push the changes to the repository.

  3. Create a new release on GitHub with the same name as the new version.

  4. Run the following commands:

    npm run build
    npm publish

License

MIT