Introducing InsForge Mobile SDKs: Native Support for Swift and Kotlin

03 Feb 20263 minute
Junwen Feng

Junwen Feng

Engineer

InsForge Mobile SDKs Launch

We're excited to announce the official release of the InsForge Swift and Kotlin SDKs. These native SDKs provide iOS/macOS and Android/JVM developers with a clean, type-safe way to integrate InsForge backend services.

Architecture

Design Principles

Both SDKs use a modular architecture with a facade pattern, providing a unified entry point:

text
┌─────────────────────────────────────────────────────┐
│              InsForgeClient (Entry Point)           │
├─────────┬─────────┬─────────┬─────────┬─────────────┤
│  Auth   │Database │ Storage │Functions│  Realtime   │
├─────────┴─────────┴─────────┴─────────┴─────────────┤
│                     Core Layer                      │
│            (HTTP Client, Logging, Error Handling)   │
└─────────────────────────────────────────────────────┘

Key benefits:

  • On-demand loading: Initialize only the modules you need
  • Separation of concerns: Each module has independent configuration and lifecycle
  • Extensibility: New modules won't affect existing code
  • Thread safety: Swift uses Actor isolation; Kotlin uses coroutines

Feature Modules

Both SDKs support all core InsForge features:

ModuleFeatures
AuthEmail/password, OAuth, email verification, password reset
DatabaseType-safe queries (PostgREST style)
StorageObject storage with S3-compatible backend, presigned URLs
FunctionsServerless function invocation
RealtimePub/sub messaging
AIChat completion, image generation

Platform Support

Swift SDK - Apple Platforms

PlatformMinimum Version
iOS13.0+
macOS10.15+
tvOS13.0+
watchOS6.0+
visionOS1.0+

Kotlin SDK - JVM & Android

The Kotlin SDK supports both JVM and Android:

  • Android: SharedPreferences session persistence, OAuth browser launch
  • JVM Server: Server apps, CLI tools, desktop apps

Technology stack:

ComponentChoiceNotes
HTTP ClientKtor + OkHttpOkHttp engine supports both JVM and Android
JSONKotlinx SerializationCompile-time code generation
AsyncKotlinx CoroutinesStructured concurrency
LoggingNapierCross-platform, auto-adapts to Logcat on Android
RealtimeSocket.IOAuto-reconnect, message acknowledgment

Open Source

Both SDKs are fully open source under the Apache License 2.0:

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push: git push origin feature/amazing-feature
  5. Open a Pull Request

We welcome contributions including:

  • New features
  • Documentation
  • Bug fixes
  • Performance improvements
  • Test coverage

Getting Started

Please refer to the official documentation for each SDK: