Respectlytics Respect lytics
Sign In Start Free Trial
Menu
Replace Segment (Twilio) Open-source SDK + server

Replace Segment (Twilio) with an open-source analytics stack

Migrate from Segment (Twilio) to open-source Respectlytics. MIT SDK, AGPL-3.0 server. Helps developers avoid collecting personal data.

β–ΈExample Segment (Twilio) call (the "before")

kotlin Respectlytics
import com.segment.analytics.kotlin.android.Analytics
val analytics = Analytics("YOUR_WRITE_KEY", context) {
 collectDeviceId = true
 flushAt = 20
}
analytics.identify(userId, traitsOf("email" to email, "plan" to "pro"))
analytics.track("Paywall Purchase", buildJsonObject {
 put("value", price)
 put("currency", "USD")
})

Closed-source analytics SDKs require you to trust vendor claims about behaviour. Open-source SDKs let your security team verify those claims from source. For regulated industries this is often a procurement-gating requirement. Respectlytics's SDKs are MIT-licensed and fully open; the server is AGPL-3.0.

β˜‘Remove Segment (Twilio) cleanly

  1. 1

    Remove the Segment Analytics SDK from your build (Analytics-Swift / analytics-android / @segment/analytics-react-native / segment_analytics_flutter)

  2. 2

    Remove Analytics.client(writeKey: ...) and analytics.track(...) call sites β€” replace with Respectlytics.track("event_name")

  3. 3

    Critically: review your Segment destinations and decide which destinations you still need data flowing to from Respectlytics (most don't β€” that's the point)

  4. 4

    Delete the Segment workspace's mobile source once events have stopped flowing

  5. 5

    Audit and remove the downstream destination SDKs that Segment was the only reason to forward to (e.g., Facebook Pixel, Google Ads)

⇋Segment (Twilio) vs Respectlytics β€” open-source sdk + server

Segment (Twilio)Respectlytics
SDK source publicly availableβ€” see tool note aboveYes (MIT)
Server source publicly availableβ€” typically noYes (AGPL-3.0)
Reproducible builds from sourceβ€” variesYes (CI publishes from same commit)
Fork-and-modify allowedβ€” varies by licenseYes
Public commit historyβ€” typically noYes (GitHub)

❓Frequently asked questions

Where can we audit the source?

GitHub: github.com/respectlytics. Each SDK has its own repository with source, tests, CI configuration, and release tags. The server lives in a separate repo with the same conventions.

Are the published binaries reproducible from source?

Yes β€” CI builds use deterministic build commands. The artifacts published to CocoaPods / SPM / Maven Central / npm / pub.dev are produced by the same pipeline that runs against each commit. Reproducible builds are a goal we test against; report any discrepancy as an issue.

Can we modify the SDK and ship our fork?

Yes β€” MIT permits modification and redistribution with attribution. Many enterprises fork to adjust logging, add internal tracing, or vendor the SDK into their build.

Why MIT for SDK and AGPL for server?

Standard split for source-available SaaS (GitLab, Sentry, MinIO, Plausible). MIT on the SDK maximises consumer freedom β€” your app picks up the dependency without obligation. AGPL on the server prevents competing closed-source SaaS forks while allowing internal self-hosting freely.

β‡’Related migration guides

Replace Segment (Twilio): no att prompt Same tool, No ATT prompt Replace Segment (Twilio): no pii collected Same tool, No PII collected Replace Segment (Twilio): no phi collected Same tool, No PHI collected Replace Segment (Twilio): 5-field event schema Same tool, 5-field event schema Replace Segment (Twilio): ram-only event queue Same tool, RAM-only event queue Replace Segment (Twilio): fewer third-party sdks Same tool, Fewer third-party SDKs Replace Segment (Twilio): smaller app binary Same tool, Smaller app binary Replace Segment (Twilio): faster cold start Same tool, Faster cold start Replace Segment (Twilio): eu data residency Same tool, EU data residency Replace Segment (Twilio): self-hosted deployment Same tool, Self-hosted deployment Replace Firebase Analytics: open-source sdk + server Same outcome, Firebase Analytics Replace Google Analytics for Firebase: open-source sdk + server Same outcome, Google Analytics for Firebase

Track what matters. Collect nothing you don't.

Five-field event schema, RAM-only event queue, no IDFA, no AAID, no persistent user IDs. Helps developers avoid collecting personal data in the first place.

Get started with the SDKs See pricing

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /