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

@deeptaai/klaritics-react-native-sdk

v1.0.0

Published

React Native Klaritics SDK

Readme

Description

React Native SDK for Klaritics. You write your integration once in JavaScript — the same code runs on both Android and iOS. You never write native Java/Kotlin or Swift/Objective-C.


🏁 Getting Started

Install the package:

npm install @deeptaai/klaritics-react-native-sdk
# or
yarn add @deeptaai/klaritics-react-native-sdk

React Native 0.60+ autolinks the native module, so there is no react-native link, no MainApplication edits, and no settings.gradle changes.

  • Android — ready after install. See Android.
  • iOS — run pod install; the Klaritics core is fetched and wired automatically. See iOS.

⚙️ Initialize

Wrap your app in KlariticsProvider — this is the only setup you write, and it initializes the SDK on both platforms:

import { KlariticsProvider } from '@deeptaai/klaritics-react-native-sdk'

export default function App() {
  return (
    <KlariticsProvider apiKey="YOUR_APP_ID" options={{ host: 'YOUR_HOST' }}>
      {/* your app */}
    </KlariticsProvider>
  )
}

Prefer to initialize imperatively? Call setup once, early in your app's lifecycle:

import { setup } from '@deeptaai/klaritics-react-native-sdk'

setup('YOUR_APP_ID', { host: 'YOUR_HOST' })

The app id and host are provided here at runtime — you do not put them in AndroidManifest.xml, Info.plist, or Gradle.


🤖 Android

The Klaritics Android SDK is pulled in automatically via autolinking — the AAR is declared as a dependency of this package and resolved from its Maven repository at build time. There are no manual steps: no MainApplication edits, no manifest meta-data, and no app id in Gradle.

If Android dependency resolution fails because your app uses Gradle's centralized dependencyResolutionManagement with RepositoriesMode.FAIL_ON_PROJECT_REPOS, add the Klaritics Maven repo to android/settings.gradle:

dependencyResolutionManagement {
  repositories {
    maven { url "https://asia-south1-maven.pkg.dev/org-infra-471907/klaritics-android-sdk" }
  }
}

🍎 iOS

iOS is zero-config — just run pod install:

npm install @deeptaai/klaritics-react-native-sdk
cd ios && pod install

React Native autolinking picks up this package's podspec, which fetches the prebuilt Klaritics core framework and wires up the headers, linking, and embedding for you. There are no Xcode steps, no Podfile edits, and nothing to add manually — this mirrors how the Android side pulls the core from Maven.

Then initialize from JavaScript exactly as shown in Initialize — the same KlariticsProvider / setup call drives iOS. No AppDelegate code is required.


🚀 API & Usage

Imports

// Import the SDK as a module
import Klaritics from '@deeptaai/klaritics-react-native-sdk'

// Or, import required functions
import { logAppEvent, trackScreen } from '@deeptaai/klaritics-react-native-sdk'

Set Custom User IDs

// Syntax
Klaritics.setUserIdentifier('user_id')

// Example
Klaritics.setUserIdentifier('[email protected]')

Set Custom User and Session Properties

// Syntax
Klaritics.setUserCustomInfo(properties)
Klaritics.setSessionCustomInfo(properties)

// Example
Klaritics.setUserCustomInfo({
  city: 'Hyderabad',
  age: 12,
})

Logging Events

// Syntax
Klaritics.logAppEvent(event_name, properties)

// Example
Klaritics.logAppEvent('ADD_TO_CART', {
  userId: '[email protected]',
  value: 1299,
  item: 'Sony Head Phone 1201',
})