Skip to main content
Lovable now supports importing and using any npm package directly. The standard Despia npm installation works without any special Lovable-specific setup - just follow the regular documentation here https://setup.despia.com/introduction

Overview

Despia bridges the gap between web and native mobile development. Build your React web app using Lovable’s AI-powered platform, then deploy it as a truly native application to the App Store and Google Play - complete with hardware acceleration, offline support, and deep OS integration. Lovable generates the React codebase through natural language prompts, while Despia provides 25+ native device APIs and automated app store deployment. You get the best of both worlds: rapid AI-driven development and full native capabilities.

Installation

Simply ask Lovable to add native features to your app, or install manually:
Then import in your Lovable-generated React components:
Important: This SDK is required for TypeScript/React apps. It provides type safety, command queuing, and variable watching that vanilla JavaScript implementations lack.

Key Capabilities

Automated Publishing Pipeline

Despia manages the complete app store deployment process:
  • Automatic build generation for iPhone, iPad, Vision Pro, and Android devices
  • Automated code signing and certificate management
  • Direct submission to App Store and Google Play
  • One-click deployment with built-in CI/CD pipelines
  • Over-the-air updates without app store review

25+ Native Device Features

Access comprehensive native functionality through simple JavaScript commands: Core Native Features:
Advanced Native Features:

Native Safe Area Support

Automatic CSS variables for device-specific layouts:

Implementation Process

1. Build with Lovable

Use natural language to create your React web app:
  • “Create a task management app with user authentication”
  • “Add a dashboard with charts and data visualization”
  • “Include a settings page with dark mode toggle”

2. Add Native Features via AI

Ask Lovable to integrate Despia native capabilities:
  • “Add haptic feedback when users complete a task”
  • “Enable push notifications for task reminders”
  • “Add biometric authentication for app security”
  • “Include background location tracking for delivery features”
Lovable will automatically generate the proper despia() function calls in your React components.

3. AI-Enhanced Native Integration

Lovable intelligently generates native feature implementations:

4. Environment Detection

Lovable can generate proper environment handling:

5. Deploy Everywhere

  • Web: Deploy your Lovable app to any hosting platform
  • Mobile: Use Despia’s one-click deployment to app stores
  • Updates: Push changes instantly with OTA updates

AI-Powered Mobile Development

Natural Language Native Features: Request any native functionality in plain English and Lovable generates the implementation:
  • “Add camera access for profile photos”
  • “Add home screen widgets showing user stats”
  • “Include in-app purchase for premium features”

Complete Ownership

  • Source Code Export: Get complete Xcode and Android Studio projects
  • No Vendor Lock-in: Full access to generated code with no restrictions
  • GitHub Integration: Lovable syncs your code to GitHub automatically
  • Extensible: Add any npm packages or custom native code

Performance & Reliability

  • 60fps GPU-accelerated rendering on native devices
  • Command queuing ensures sequential execution
  • Variable watching for async native responses
  • Type safety with full TypeScript support
  • Automatic timeout handling and error management

Need Help?

  • Lovable Support: Use the built-in AI assistant for development guidance
  • Despia Support: Contact support@despia.com for native integration questions

Ready to transform your web app? Start building with Lovable, add native features with a simple npm install despia-native, and deploy to app stores in a weekend.