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

leeo-ios-sdk

v0.1.1

Published

Leeo iOS SDK – trip tracking and incident reporting (DriveKit + fleet-service). For React Native or CocoaPods apps.

Readme

Leeo iOS SDK

Swift package for trip tracking and incident reporting. Uses DriveQuant (DriveKit) and calls fleet-service for setup.

Installation (for clients)

The SDK is distributed via Swift Package Manager from your Git repository.

1. Add the package in Xcode

  • File → Add Package Dependencies…
  • Enter the package URL, e.g. https://github.com/leeoinsurance/leeo-ios-sdk.git (use your actual repo URL).
  • Choose Up to Next Major Version and set the minimum version (e.g. 0.1.0) or Exact for a specific tag.
  • Add the LeeoSDK library to your app target.

2. Or add to your own Swift package

In your Package.swift:

dependencies: [
    .package(url: "https://github.com/leeoinsurance/leeo-ios-sdk.git", from: "0.1.0"),
],
targets: [
    .target(name: "YourApp", dependencies: ["LeeoSDK"]),
]

3. Versioning for clients

Create Git tags for each release (e.g. 0.1.0, 0.1.1) so clients can pin versions. SPM resolves versions from tags.

# From repo root (or use the script)
./scripts/tag-release.sh 0.1.0
# Or manually:
git tag -a 0.1.0 -m "Release 0.1.0"
git push origin 0.1.0

App configuration

  • Capabilities: enable Background ModesLocation updates (and optionally Background fetch) for trip recording.
  • Info.plist: add location and motion usage descriptions (required by DriveKit), e.g.
    NSLocationWhenInUseUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSMotionUsageDescription.

Use the API

The SDK defaults to production base URL https://api.leeoinsurance.com. Override baseUrl only for dev/stage.

import LeeoSDK

// Omit baseUrl to use production (LeeoConfiguration.defaultBaseUrl)
let config = LeeoConfiguration(
    sdkKey: "your-sdk-key",
    driverId: "driver-123",
    driverAttributes: LeeoDriverAttributes(
        firstName: "Jane",
        lastName: "Doe",
        email: "[email protected]",
        phoneNumber: "+1234567890"
    )
)

let notification = LeeoTripNotification(title: "Trip", content: "Recording...", iconId: 0)

Leeo.setup(configuration: config, tripNotification: notification) { success, error in
    if success { /* ready for trips */ }
}

Leeo.startTrip(trackingId: "trip-456") { success, _ in /* ... */ }
Leeo.stopTrip { _, _ in }
Leeo.startShift(shiftId: "shift-1") { success, _ in /* ... */ }
Leeo.stopShift { _, _ in }
Leeo.openIncidentReportingWebPage { error in /* ... */ }
Leeo.teardown { }

Setup (backend)

  • Endpoint: POST {baseUrl}/fleet/v1/sdk/setup
  • Body: sdk_key, driver_id, first_name, last_name, email, phone_number, sdk_family: "leeo"

Flows

  1. Manual: startTrip(trackingId:) / stopTrip()
  2. Shift: startShift(shiftId:) / stopShift() (auto trip detection)

See LEEO_SDK_DESIGN.md for full design.


TestFlight (demo app)

The demo app is provided as an Xcode project that depends on the SDK via GitHub (same as clients), so you can test the full client flow and then ship to TestFlight.

1. Publish a version for the SDK (one-time or per release)

So the demo app can resolve the package, create and push a tag:

./scripts/tag-release.sh 0.1.0

Use the same version the demo project expects (it uses “Up to Next Major” from 0.1.0).

2. Open the demo project

  • Open Examples/LeeoSDKDemo/LeeoSDKDemo.xcodeproj in Xcode.
  • Xcode will resolve the LeeoSDK package from https://github.com/leeoinsurance/leeo-ios-sdk.git (ensure the repo and tag are available).

3. App Store Connect

  • Create an app record (e.g. Leeo SDK Demo) with bundle ID com.leeoinsurance.leeo-sdk-demo (or match whatever you set in the project).

4. Signing

  • Select the LeeoSDKDemo target → Signing & Capabilities.
  • Set Team to your Apple Developer team (and bundle ID to match App Store Connect).

5. Archive and upload

  • Select Any iOS Device (or a connected device).
  • Product → Archive.
  • In the Organizer: Distribute AppApp Store ConnectUpload → choose the archive.

6. TestFlight

  • In App Store Connect → your app → TestFlight, add internal testers (team) or external testers (review required). Install via the TestFlight app.

For automation, use Fastlane (match, upload_to_testflight) or a GitHub Action that archives and uploads on tag or push.