MrMurphy Apps
Host static HTML/JS/CSS apps at /apps/{slug} with visit tracking.
by Murphy Randle · github.com/mrmurphy/mrmurphy-apps · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mrmurphy/mrmurphy-apps/archive/refs/heads/main.zipManage static apps hosted on WordPress via the MrMurphy Apps REST API.
Install
npx skills add mrmurphy/mrmurphy-apps --directory skills/mrmurphy-apps
What it does
- Create, upload, publish, and delete apps
- Manage environment variables (global and app-scoped)
- Build server-side PHP routes for apps
- Access evars from server-side code
Prerequisites
- MrMurphy Apps plugin installed on the target WordPress site
- An "Agent" user with
mrmurphy_agentrole (or admin user) with Application Password
Quick Start
# Set credentials as evars
curl -X POST {MRMURPHY_APPS_URL}/wp-json/mrmurphy-apps/v1/global-evars \
-u "${MRMURPHY_APPS_USERNAME}:${MRMURPHY_APPS_PASSWORD}" \
-H "Content-Type: application/json" \
-d '{"name":"MRMURPHY_APPS_URL","value":"'"$MRMURPHY_APPS_URL"'"}'
# Create an app
curl -X POST {MRMURPHY_APPS_URL}/wp-json/mrmurphy-apps/v1/apps \
-u "${MRMURPHY_APPS_USERNAME}:${MRMURPHY_APPS_PASSWORD}" \
-H "Content-Type: application/json" \
-d '{"title":"My App","slug":"my-app","zip_base64":"<base64>"}'
# Publish
curl -X POST {MRMURPHY_APPS_URL}/wp-json/mrmurphy-apps/v1/apps/my-app/publish \
-u "${MRMURPHY_APPS_USERNAME}:${MRMURPHY_APPS_PASSWORD}" \
-H "Content-Type: application/json" \
-d '{"status":"publish"}'
API Reference
See the skill for full API documentation including:
- Management API endpoints
- Server-side code patterns
- Environment variable access
- App Data API usage
License
Same as the MrMurphy Apps plugin.