How x2ydevs/web2droid-x2y-api works
Web2Droid x2y is a Node.js API for turning a website into a downloadable Android APK. The documented workflow accepts a generation request, fetches and analyzes the site, prepares a customized WebView app, builds it with Gradle, and exposes the APK for download. The README also describes customization, permissions, offline/PWA support, notifications, and background services. The source excerpt confirms the server listener and Gradle build helper; other implementation details are documented but not visible in the excerpt.
Main entry points: index.js Build job
Components 20
API and jobs
- HTTP server
index.js - Generation request
index.js - Input validation
index.js - Build job
index.js
Site and app setup
- Site fetch and analysis
index.js - Metadata and favicon
index.js - App customization
index.js - WebView configuration
index.js - Permission handling
index.js - Offline and PWA
index.js - Push notifications
index.js - Background services
index.js
Build and delivery
- Android project files
index.js - Gradle build
index.js - Generated APK
index.js - APK download endpoint
index.js
Other components
- API client
- Target website
- Android build tools
- APK user
Connections 20
- API client → HTTP server: sends request
README.md - HTTP server → Generation request: accepts
README.md - Generation request → Input validation: validates
index.js - Input validation → Build job: starts
index.js - Build job → Site fetch and analysis: fetches site
README.md - Site fetch and analysis → Target website: requests content
README.md - Site fetch and analysis → Metadata and favicon: analyzes
README.md - Build job → App customization: applies options
README.md - Build job → WebView configuration: configures
README.md - Build job → Permission handling: handles permissions
README.md - Build job → Offline and PWA: adds support
README.md - Build job → Push notifications: optionally enables
README.md - Build job → Background services: supports
README.md - Build job → Android project files: generates
README.md - Build job → Gradle build: runs build
index.js - Gradle build → Android build tools: uses
README.md - Gradle build → Generated APK: produces
index.js - API client → APK download endpoint: requests APK
README.md - APK download endpoint → Generated APK: serves
README.md - APK user → Generated APK: installs