Eliminate the Friction Between Your Backend and Mobile Teams.

The gap between your backend data models and the native models your iOS and Android teams use is a constant source of bugs, delays, and duplicated effort. Pactum closes this gap, creating a single source of truth that turns your data layer from a liability into a reliable, automated asset.

Pactum answers your critical questions:

  • "How do we stop wasting weeks of developer time manually keeping Swift and Kotlin models in sync with our backend?"
  • "How can we prevent the simple act of renaming a backend property from breaking our mobile apps in production?"
  • "How do we empower our backend architects to define the mobile data contract without needing to know Swift or Kotlin?"

Key Business Values:

Eliminate a Whole Category of Bugs
By automatically generating the data models from the backend source, Pactum eradicates data parsing errors, decoding crashes, and other common issues caused by manual data contract drift.
Increase Developer Velocity
Frees up senior mobile and backend developers from the tedious, low-value work of writing and maintaining API client layers, allowing them to focus on building features.
Govern the Mobile Contract
The interactive UI provides a central "Governance Hub" for architects and leads to define exactly which backend types are exposed to mobile and how they are mapped.
Improve Cross-Team Collaboration
The `pactum/config.json` file becomes the version-controlled source of truth for the mobile data contract. Mobile developers simply `git pull` to receive the latest, type-safe client, eliminating miscommunications.

Define Your Mobile Contract, Don't Just Document It.

Stop maintaining three versions of the same data model. Pactum gives backend architects and engineers a powerful Governance Hub UI to define the "source of truth" once. The pipeline then handles the tedious, error-prone work of translating that truth into perfect, idiomatic Swift and Kotlin code.

The Workflow:

For the Backend Engineer: Define the Contract
In the local Governance Hub, select your backend DTOs. The UI automatically discovers all dependencies. Use the Inspector to define idiomatic mobile naming conventions and resolve any type mappings. Save your `config.json` and commit. Your work is done.
For the Mobile Engineer: Consume Native Code
Your workflow is radically simplified. Add the shared "contracts" Git repository as a package dependency. Pull the latest version. The CI pipeline has already generated and committed perfectly native, up-to-date models for you.
Preview Your Changes with a "Dry Run"
Within the Governance Hub, you can instantly generate and preview the Swift and Kotlin code for your entire scope without committing anything. This ensures your mapping rules and naming conventions produce the exact output your mobile teams are expecting.

An Automated Repository Synchronization Agent.

As an operator, your goal is to automate the handoffs between teams. The Mobile Adapter Generator is a containerized utility designed to run in a CI/CD pipeline, acting as an intelligent synchronization agent between your backend and mobile contract repositories.

Execution Modes:

  • execute: The primary CI mode. Loads `config.json`, analyzes the backend source, generates the native mobile models, and commits them to the target contracts repository.
  • interactive: The local interactive mode. Launches the Governance Hub web UI for architects to define the `config.json` rules.
  • serve-docs: The offline documentation mode. Serves the tool's full documentation in an air-gapped environment.

The Automated Synchronization Workflow

Triggered on a push to your backend repository, the `execute` mode runs a complete, automated workflow:

  1. Loads the `pactum/config.json` file from the backend repo.
  2. Runs a full discovery of the backend source code.
  3. Applies all mappings and overrides from the configuration.
  4. Generates the new Swift and Kotlin files in memory.
  5. Checks out the mobile contracts repository, writes the new files, and if changes are detected, commits and pushes them.

Licensing & Degraded Mode

If a valid license cannot be acquired, Pactum will fail with an error. Unlike purely informational tools, generating potentially stale or incomplete client code is dangerous, so the tool requires a valid license to perform its primary function.

×