Repository navigation
Setup
Before starting, make sure you have the following tools installed:
-
Node.js 20 LTS or higher (
node --version) - npm 10 or higher (bundled with Node.js)
- Android Studio with an Android API 34+ emulator configured, or a physical Android device with developer options and USB debugging enabled
For release builds (signed APK), see Build Local. For installation without development, download the APK directly from the GitHub Releases page.
Clone the repository and install dependencies:
git clone ssh://gitea@homegit.gyozamancave.fr:2222/billisdead/ghost-poster.git
cd ghost-poster
npm installNo additional environment configuration is required — there is no .env file. Secrets are managed at runtime through the app's interface.
The app uses Ghost's Admin API. To generate an access key:
- Log in to your Ghost Admin panel (
https://your-ghost.example.com/ghost/#/settings) - Navigate to Settings → Integrations
- Click + Add custom integration
- Give it a name (e.g.
ghost-poster) - After creation, copy the value of the Admin API key field
The key is in id:secret format where both id and secret are hex strings. Example (fictional):
6ba7b810:9dad11d1b0004b00b0000c3f7edcfbadba0efbad
Keep this key safe — it cannot be retrieved once the window is closed (you will need to generate a new one).
npx expo run:androidThis compiles the native app and deploys it to the emulator. The first build takes several minutes (Gradle).
Enable USB debugging on the device, connect it, then:
npx expo run:android --deviceTo generate a signed APK ready for distribution, see Build Local (local build) and Release (automated release via GitHub Actions).
On first launch, the app automatically redirects to the Ghost Instances screen (Settings). Tap the + button and fill in:
- Name: a readable name to identify your instance (e.g. "My Blog")
-
Base URL: the root URL of your Ghost instance without a trailing slash (e.g.
https://ghost.example.com) -
Admin API key: the key copied from Ghost Admin (format
id:secret)
The app tests the connection before saving. If it fails, verify that the Ghost instance is reachable from the device's network and that the key is correct.
No environment variables are used. All secrets are stored in expo-secure-store (Android Keystore) under two keys:
| SecureStore key | Contents |
|---|---|
GHOST_INSTANCES |
Serialized JSON of the instance list (name, URL, API key) |
GHOST_ACTIVE_ID |
UUID of the currently active instance |
To fully reset the configuration (uninstall or debug):
# On emulator — clears all app data
adb shell pm clear fr.gyozamancave.ghostposterOn a physical device, uninstall and reinstall the app via Android settings.
Ghostposter
Setup
Reference
Project