{"id":26753183,"url":"https://github.com/mattgipson/easy-css-sync-msg317","last_synced_at":"2025-03-28T13:18:08.557Z","repository":{"id":274094325,"uuid":"921460896","full_name":"mattgipson/easy-css-sync-msg317","owner":"mattgipson","description":"A WordPress plugin to fetch custom CSS from GitHub with optional webhook auto-updates, bypassing theme’s \"Additional CSS\" field.","archived":false,"fork":false,"pushed_at":"2025-03-26T16:12:40.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T17:22:05.622Z","etag":null,"topics":["css","custom-css","wordpress-development","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://msg317.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattgipson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-24T01:42:46.000Z","updated_at":"2025-03-26T16:12:43.000Z","dependencies_parsed_at":"2025-03-26T17:22:08.734Z","dependency_job_id":"ca35d0dd-fe1f-404a-a8e2-66b9497c54a4","html_url":"https://github.com/mattgipson/easy-css-sync-msg317","commit_stats":null,"previous_names":["mattgipson/wp-git-css-msg317","mattgipson/easy-css-sync-msg317"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgipson%2Feasy-css-sync-msg317","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgipson%2Feasy-css-sync-msg317/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgipson%2Feasy-css-sync-msg317/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgipson%2Feasy-css-sync-msg317/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattgipson","download_url":"https://codeload.github.com/mattgipson/easy-css-sync-msg317/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034312,"owners_count":20712857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","custom-css","wordpress-development","wordpress-plugin"],"created_at":"2025-03-28T13:18:08.120Z","updated_at":"2025-03-28T13:18:08.540Z","avatar_url":"https://github.com/mattgipson.png","language":"PHP","readme":"# Easy CSS Sync\n\nAutomatically fetches custom CSS overrides from GitHub and enqueues them on your WordPress site. Includes optional webhook support for near-instant updates whenever you push changes to your GitHub repo.\n\n---\n\n## Features\n\n- **Simple Setup**: Enter your GitHub raw CSS URL in the WordPress admin.\n- **Private Repos**: Optionally provide a GitHub token for private repositories or to avoid rate limits.\n- **Instant Webhook Sync**: Update your site’s CSS automatically whenever you commit to GitHub (optional).\n- **Scheduled \u0026 Manual Updates**: Pull changes every hour via WP-Cron, or refresh CSS on-demand.\n\n---\n\n## Installation\n\n1. **Upload or Install**  \n   - Download the plugin files and place them in your `wp-content/plugins/` directory, or zip them and upload via “Plugins \u003e Add New \u003e Upload Plugin” in WordPress.\n2. **Activate**  \n   - In your WordPress admin, go to **Plugins \u003e Installed Plugins** and activate **Easy CSS Sync**.\n\n---\n\n## Configuration\n\n1. **Go to “Easy CSS Sync”** in the main WordPress admin menu.  \n2. **Set GitHub Raw CSS URL**  \n   - e.g. `https://raw.githubusercontent.com/\u003cuser\u003e/\u003crepo\u003e/\u003cbranch\u003e/styles.css`  \n3. **GitHub Token** (optional)  \n   - If your repo is private or you need to avoid rate limits, enter a personal access token.  \n4. **Webhook Secret** (optional)  \n   - For secure webhook validation when setting up GitHub Webhooks.\n\n### Manual Refresh\n\n- On the settings page, click **Refresh CSS Now** to immediately fetch the latest CSS from GitHub.\n\n### Automatic Updates\n\n- By default, Easy CSS Sync fetches updates **hourly** using WP-Cron.  \n- (Optional) **GitHub Webhook**: With a configured webhook, changes will sync as soon as you push to your GitHub repo.\n\n---\n\n## GitHub Webhook Setup\n\n1. **In WordPress**  \n   - Enter your **Webhook Secret** in the plugin settings (a secure string).\n2. **In GitHub**  \n   - Go to **Settings \u003e Webhooks** for your repo.  \n   - Add a new webhook with:\n     - **Payload URL**: `https://example.com/wp-json/easy-css-sync/v1/webhook`  \n       (Replace `example.com` with your domain)  \n     - **Content type**: `application/json`  \n     - **Secret**: The same value you entered in your WordPress plugin settings.  \n     - **Events**: You can select “Push” or any event that should trigger an update.  \n   - Save the webhook.\n\n---\n\n## Security \u0026 Best Practices\n\n- **Use HTTPS** for your WordPress site to ensure the secret is transmitted securely.\n- For private repos, use a [GitHub personal access token](https://github.com/settings/tokens).\n- Keep your WordPress core and all plugins updated for best security practices.\n\n---\n\n## FAQ\n\n1. **Why isn’t my CSS updating?**  \n   - Check that the **GitHub Raw URL** is valid and publicly accessible (or you have a valid token).  \n   - If relying on WP-Cron, ensure cron is running. Some hosts disable WP-Cron.  \n   - For webhooks, confirm you added the correct URL and secret in GitHub settings.\n\n2. **Can I see when the CSS was last updated?**  \n   - The plugin displays a “last synced” timestamp at the top of its settings page.\n\n3. **Where is the CSS stored?**  \n   - In a WordPress option. This means no external calls on every page load—only when you refresh or Cron triggers a fetch.\n\n4. **Is the plugin GPL?**  \n   - Yes. Easy CSS Sync is released under the [GPL-2.0+](https://www.gnu.org/licenses/gpl-2.0.html).\n\n---\n\n## Contributing\n\nInterested in contributing or submitting ideas? Feel free to open a pull request or file an issue on the [GitHub repository](#).\n\n---\n\n## License\n\nThis plugin is distributed under the [GPL-2.0+](https://www.gnu.org/licenses/gpl-2.0.html).\n\n---","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattgipson%2Feasy-css-sync-msg317","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattgipson%2Feasy-css-sync-msg317","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattgipson%2Feasy-css-sync-msg317/lists"}