Install an SDK
How to install each Lucida SDK today: npm packages from npm, every other language from its public GitHub repo until the registry release.
These install from their registries: the browser and Node packages (@lucida-analytics/*) from npm, Go from the module proxy, Python from PyPI (lucida-analytics), Rust from crates.io (lucida-analytics, lucida-openfeature), Dart and Flutter from pub.dev, and Swift through Swift Package Manager. SDK install status lists what is on a registry today and what is not. The other languages are not on their registries yet unless that page says so. The commands you may remember from a registry (gem install lucida, composer require lucida/lucida without a repository entry, dotnet add package Lucida without a local source) do not work today. Use the commands below, which pull from the public repo github.com/lucidaanalytics/lucida-<lang> at its v0.1.0 release. They are GitHub installs until the registry release; the code is the same, and the commands change to the registry ones when it ships.
PyPI
lucidais someone else's package. Neverpip install lucida. Our distribution name islucida-analytics(the import name islucida), and it is on PyPI at 0.1.0. Check the author and repository of anything you install by name.
The commands pin the v0.1.0 tag. To track the repo's default branch instead, use main where the tag is.
Language | Install from GitHub (release |
|---|---|
Python |
|
Django | lucida-django: |
Go |
|
Rust |
|
Ruby | lucida-ruby: in the |
Rails | lucida-rails: the |
PHP | lucida-php: |
Laravel | lucida-laravel: add both repositories, then require both: |
.NET | lucida-dotnet: download the |
Elixir | lucida-elixir: in |
Java | lucida-java through JitPack: |
Android | lucida-android through JitPack: |
Kotlin Multiplatform | lucida-kmp through JitPack: |
Swift | Swift Package Manager: |
Unity | lucida-unity: Package Manager, add by git URL: |
Unreal | lucida-unreal: download |
Godot | lucida-godot: download |
Roblox | lucida-roblox: download |
C and C++ | lucida-cpp: download |
Google Tag Manager | lucida-gtm: download |
GitHub Action | lucida-release-gate: |
Flutter installs from pub.dev: flutter pub add lucida_flutter (pure Dart: dart pub add lucida_core).
JitPack builds the tag from GitHub on the first request, so the first resolve of a JVM coordinate can take a few minutes. Each repo's Releases page also carries the built files (gems, .nupkg, jars, aars, zips).
The OpenFeature providers depend on their core SDK. The Go provider (lucida-go/openfeature) and the Rust one (lucida-rust-openfeature) reach it by a local path in the repo, so clone them together with the core and build from the clone. The Ruby, PHP and Java providers need their core package installed next to them, as in the rows above; for PHP add the lucida-php and lucida-php-openfeature repositories and composer require "lucida/lucida:^0.1" "lucida/openfeature:^0.1".
JavaScript, from npm: npm install @lucida-analytics/node (servers) or @lucida-analytics/browser (pages). The framework wrappers (react, next, vue, nuxt, svelte, remix, astro, and others) are npm packages with the same prefix.
Each SDK's README has its configuration and API. The wire format they all speak is in Send events over HTTP.