SDKs
SDKs
Clients for the SeleID developer APIs. Each SDK has the same clients: Continue with SeleID (PKCE), storage, SQL, events and AI. Raw HTTP is always an option: see the API reference.
Install and quickstart
TypeScript @seletech/sele
ESM and CommonJS with types. Sign-in with PKCE, storage, SQL, events and AI clients.
TypeScript and JavaScript (Node 20+, edge, browsers). Version 0.1.1.
Download seleid-typescript-0.1.1.zip 43 KB. SHA-256 76f5b7b36e160b591afa521dc0ffbc0ca4e6f2eabbee1df60281be676cf66df7
Install from the download
unzip seleid-typescript-0.1.1.zip
npm install ./seleid-typescriptInstall from the registry
npm install @seletech/seleQuickstart
import { SeleStorage } from '@seletech/sele';
const storage = new SeleStorage({ apiKey: process.env.SELESTORAGE_KEY });
await storage.put('hello.txt', 'hello', 'text/plain');React Native and Expo @seletech/seleid-react-native
Sign-in with PKCE and clients for storage, SQL, events and AI.
TypeScript (React Native, Expo). Version 0.1.1.
Download seleid-react-native-0.1.1.zip 21 KB. SHA-256 cc75d3e24386e6023679aa17537b1d748c4a3349e68c433f76b51c321a21dc73
Install from the download
unzip seleid-react-native-0.1.1.zip
cd seleid-react-native && npm install && npm run build && cd ..
npm install ./seleid-react-nativeInstall from the registry
npm install @seletech/seleid-react-nativeQuickstart
import { SeleIdAuth } from '@seletech/seleid-react-native';
const auth = new SeleIdAuth({ clientId: 'YOUR_CLIENT_ID' });Python seletech
Sign-in with PKCE and clients for storage, SQL, events and AI.
Python 3.9+. Version 0.1.0.
Download seleid-python-0.1.0.zip 11 KB. SHA-256 53b639deb1346aa992a513ef38bf3abb5260381eaf450c2447d2b4b69ee37da8
Install from the download
unzip seleid-python-0.1.0.zip
pip install ./seleid-pythonInstall from the registry
pip install seletechQuickstart
import os
from seletech import SeleStorage
SeleStorage(os.environ["SELESTORAGE_KEY"]).put("hello.txt", "hello", "text/plain")PHP seletech/sele
Sign-in with PKCE and clients for storage, SQL, events and AI.
PHP 8.1+. Version 0.1.0.
Download seleid-php-0.1.0.zip 11 KB. SHA-256 322f75bf13de58f0691f9e36f1cab0445b0e1bef987c8a45db5120601c0a369b
Install from the download
unzip seleid-php-0.1.0.zip
composer config repositories.seletech path ./seleid-php
composer require seletech/sele:@devInstall from the registry
composer require seletech/seleQuickstart
use SeleTech\SeleStorage;
(new SeleStorage(getenv('SELESTORAGE_KEY')))->put('hello.txt', 'hello', 'text/plain');Flutter and Dart seleid
Sign-in with PKCE and clients for storage, SQL, events and AI.
Dart 3 and Flutter. Version 0.1.0.
Download seleid-flutter-0.1.0.zip 22 KB. SHA-256 8a6d3e6f6ead3fb20929e9d72c0f499174f911385f0d9578bd54a92178b4d8fc
Install from the download
unzip seleid-flutter-0.1.0.zip
# pubspec.yaml
dependencies:
seleid:
path: ./seleid-flutterInstall from the registry
dart pub add seleidQuickstart
import 'package:seleid/seleid.dart';
// see README.md in the package for the sign-in and storage clientsAndroid (Kotlin) dev.seleid:seleid-android
Sign-in with PKCE and clients for storage, SQL, events and AI.
Kotlin, Android 8+. Version 0.1.0.
Download seleid-android-0.1.0.zip 23 KB. SHA-256 1e88d4dfebe902a578a0f80f90041027ea03df36afa05d26dd4ab1e7f663d3f1
Install from the download
unzip seleid-android-0.1.0.zip
// settings.gradle.kts
include(":seleid")
project(":seleid").projectDir = file("seleid-android/seleid")Install from the registry
implementation("dev.seleid:seleid-android:0.1.0")Quickstart
// see README.md in the package for the sign-in (PKCE) and storage clientsiOS (Swift) SeleID
Sign-in with PKCE and clients for storage, SQL, events and AI.
Swift 5.9, iOS 15+. Version 0.1.0.
Download seleid-ios-0.1.0.zip 20 KB. SHA-256 f8a276e68308ca3fcb13b20fcfa7ef8b6c0fdbb7ebfc634114a2553ff93775bc
Install from the download
unzip seleid-ios-0.1.0.zip
# Xcode: File > Add Package Dependencies > Add Local... > seleid-iosInstall from the registry
.package(url: "<package repository>", from: "0.1.0")Quickstart
import SeleID
// see README.md in the package for the sign-in (PKCE) and storage clientsMobile sign-in client @seletech/seleid-client
Token storage, refresh and session checks for mobile apps.
TypeScript. Version 0.1.0. Documentation.
Install (works once published)
npm install @seletech/seleid-clientQuickstart
import { SeleIdClient, TokenManager } from '@seletech/seleid-client';
const seleid = new SeleIdClient({});Sign in with PKCE
import { SeleIdAuth, createPkce, buildAuthorizeUrl } from '@seletech/sele';
const { codeVerifier, codeChallenge } = await createPkce();
const { url, state } = buildAuthorizeUrl({ clientId, redirectUri, codeChallenge });
// redirect to url; on return check state, then:
const tokens = await new SeleIdAuth({ clientId }).exchangeCode({ code, redirectUri, codeVerifier });
Downloads and checksums
Registry publishing is pending, so every SDK can be downloaded here. Checksums are in SHA256SUMS and manifest.json; verify with sha256sum -c SHA256SUMS.
Sample apps
Four small apps (sign-in, storage upload, SQL query, webhook receiver) live in the examples/ folder of the SeleID repository.