Skip to content

mimikgit/cocoapod-EdgeService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ClientGatewayAccess

One-stop, static API entry point for integrating with both microservices that run on the mim OE runtime (Runtime) and backend microservices (Backend) that run in the traditional cloud.


ClientGatewayAccess organizes APIs into two categories:

  • Runtime β€” microservices that run on the mim OE runtime.
    These can run locally on devices or on cloud instances (e.g., AWS/GCP VMs) that host the runtime and act like runtime-enabled nodes.
  • Backend β€” traditional backend microservices that run in the cloud.
    These do not use the mim OE runtime.

This API is used by the mimik Access app and is available for integration in third-party applications.


Usage

All functions are static and called directly:

// Runtime microservice call (mim OE-based)
let nodes = try await ClientGatewayAccess.Runtime.discoverNodes()

// Traditional backend microservice call (no mim OE)
let profile = try await ClientGatewayAccess.Backend.fetchUserProfile()

Notes

  • All APIs are asynchronous (async) and safe to call from concurrent contexts.
  • Some operations require authentication or prior runtime initialization.

Runtime

APIs for interacting with runtime microservices from a mimik Access client or third-party apps.

Runtime microservices run on the mim OE runtime.
They may run:

  • On devices (typical case)
  • On cloud instances (e.g., AWS/GCP VMs) that host the runtime and behave as runtime-enabled nodes

Examples include:

  • Content sharing via beams (mBeam)
  • Node discovery (mSuperdrive)
  • File storage (mDrive)

Each runtime microservice provides a namespace of static methods for endpoint calls.


Backend

APIs for integrating with traditional mimik backend microservices.

Backend microservices run in the mimik cloud and do not use the mim OE runtime.
They provide user- and app-centric functionality such as:

  • User profile management (mPO)
  • Friend relationships (mFD)
  • Thumbnail storage (mTS)

Each backend microservice exposes a namespace of static methods for API operations.


πŸš€ Getting Started

The fastest way to get started:

  1. Follow the onboarding tutorial
    πŸ“˜ Step-by-Step Tutorial

  2. Add the required pods to your Podfile:

    platform :ios, '16.0'
    source 'https://github.com/CocoaPods/Specs.git'
    source 'https://github.com/mimikgit/cocoapod-edge-specs.git'
    
    use_frameworks!
    inhibit_all_warnings!
    
    def mimik
      pod 'EdgeCore'
      pod 'mim-OE-ai-SE-iOS-developer'
      pod 'EdgeService'
    end
    
    target 'YourAppTarget' do
      mimik()
    end
    
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['VALID_ARCHS'] = '$(ARCHS_STANDARD_64_BIT)'
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
          config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
        end
      end
    end
  3. Get your mim OE license key from the mimik Developer Console


πŸ’‘ Key Concepts

mim OE (Operating Environment) is the runtime platform powering edge microservices and AI workloads. It can run on iOS devices, simulators, or macOS using Catalyst. The Client Library gives you direct control over:

  • Service deployment
  • Runtime lifecycle
  • AI model execution
  • Secure communication and auth

✨ Features Overview

The mimik Client Library provides a unified API to:

πŸ”§ Initialize and Control mim OE

  • Start, stop, and monitor the mim OE runtime
  • Configure logging, runtime health, and startup parameters

πŸ” Authenticate Developers and Users

  • OAuth2-compliant developer and user login
  • Support for token exchange, scopes, signup/login flows
  • Handle account recovery, password changes, and deletions

🌍 Discover & Orchestrate Edge Nodes

  • Auto-discover available edge nodes
  • Route requests across hybrid clusters
  • Register and manage services

πŸ“¦ Deploy & Manage Microservices

  • Deploy microservices or full use-case workflows
  • Package using container-style config and update dynamically
  • Scale, tear down, or update services via API

πŸ€– Unified AI Model Integration

  • List available AI models across device, edge, and cloud
  • Use a single interface to prompt vision and language models

πŸ” Stream AI Prompts & Responses

  • Send prompts and receive streaming replies
  • Handle user-initiated prompt cancellations cleanly

πŸ“‹ Standardized AI Outputs

  • Unified output handling via AssistantOutput
  • Supports chat UI, system automation, and batch processing

πŸ“¦ Pod Distribution

Use the table below to choose the CocoaPods that best match your use case:

Pod Includes AI Support Recommended For
EdgeCore Core Always include
mim-OE-SE-iOS-developer Core + mim OE ❌ Lightweight, non-AI apps
mim-OE-ai-SE-iOS-developer Core + mim OE + AI βœ… Vision/Language AI support
EdgeService Deployment tools For managing custom microservices

βœ… Recommended Default: Add EdgeCore and mim-OE-ai-SE-iOS-developer to your Podfile.


πŸ“± Supported Platforms

  • iOS Devices: iOS 16.0+
  • iOS Simulators: iOS 16.0+
  • Mac Catalyst: macOS 14.0+

πŸ“„ Documentation


πŸ§ͺ Tutorials by Use Case

▢️ Get Started

πŸ› οΈ Build Apps

βš™οΈ Work with Runtime

πŸ“¦ Manage Microservices


πŸ“œ Licensing

To initialize mim-OE-ai-SE-iOS-developer, obtain a license key at:
πŸ” mimik Developer Console

For enterprise projects or commercial distribution, contact:
πŸ’Ό mimik Support


πŸ‘€ Author

mimik
Learn more at mimik Developer Documentation