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

@smileid/kamera

v0.1.0

Published

Smile ID's purpose-built camera SDK for React Native. Thin wrapper embedding the native kamera cores — pixels never cross the bridge.

Readme

kamera-react-native

The React Native SDK for kamera — a thin, faithful wrapper that embeds the native kamera cores (kamera-android, kamera-ios). It replaces react-native-vision-camera used by the production Smile ID RN SDK today.

What this is

  • An RN library (@smileid/kamera) targeting the New Architecture: a Fabric native component (KameraPreviewView) for preview and a TurboModule (NativeKamera) for the control plane — configuration, lifecycle, capture, zoom/torch/focus — with analysis results and session state as direct events.
  • Pixels never cross the bridge. Frame analysis (ML Kit / Vision through the frozen Analyzer pattern) runs natively; JS receives events and capture file paths. No frame-processor worklets in v1 — raw pixel access in JS is explicitly out of scope until a product case demands it.
  • A real still-capture pipeline for RN. The production RN SDK today captures by grabbing an analysis frame; kamera gives RN the same ZSL / MaxQuality / Ultra-HDR capture path as native Android and iOS.

Goals

  1. Behavioral parity with the native SDKs: same KameraConfig fields, same defaults, same events, same capture result schema (../SPEC.md §3–4).
  2. Low-end performance by construction: preview is a native view, analysis is native, JS thread stays idle apart from lightweight events.
  3. Serve as the ML staging ground for RN: sample/ renders native analysis events live so ML experiments validate here before the production RN SDK.

Layout

src/               TS API — KameraPreviewView (Fabric), NativeKamera (TurboModule spec), types
sample/            Sample app — preview, analysis event overlay, capture

ML backend toggle

The Android glue defaults to the ML Kit adapter; switch with one flag (docs/design/20 D4): -PkameraMlBackend=huawei (or KAMERA_ML_BACKEND=huawei) puts com.usesmileid:kamera-huawei on the host classpath and injects the HMS repo — none adds no adapter. iOS pairs with Vision (KameraVision); HMS ML is Android-only, a documented platform divergence.

Local development

Wire the glue to locally built cores — Android via publishToMavenLocal, iOS via locally built xcframeworks. Walkthrough: ../docs/local-dev.md.

Why this package still has a podspec

Stable RN autolinking is podspec-driven; SPM autolinking is an RFC/prototype (react-native-community/discussions-and-proposals #994). kamera-rn.podspec is the minimum CocoaPods surface — it ships inside the npm package (never published to the CocoaPods trunk, so the Dec 2026 trunk read-only date doesn't affect it) and vendors the same xcframeworks the SPM-only Flutter glue uses. Drop it when RN ships SPM autolinking in stable. Details: docs/design/18.

Requirements

React Native ≥ 0.76 (New Architecture) · minSdk 24 · iOS 15.0 (matches the production Smile ID RN SDK floors)

Status

Bootstrapping — TS API stubs and codegen specs in place. See ../SPEC.md §6.4 and milestones §9.