{"id":28560536,"url":"https://github.com/sr258/wp-h5p-shared-state","last_synced_at":"2025-06-10T09:37:16.771Z","repository":{"id":43360880,"uuid":"451060065","full_name":"sr258/wp-h5p-shared-state","owner":"sr258","description":"A companion microservice to WordPress that offers a shared state service for H5P","archived":false,"fork":false,"pushed_at":"2022-03-05T17:12:12.000Z","size":434,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T19:37:11.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr258.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-23T09:41:31.000Z","updated_at":"2022-01-23T11:37:46.000Z","dependencies_parsed_at":"2022-08-19T19:21:24.607Z","dependency_job_id":null,"html_url":"https://github.com/sr258/wp-h5p-shared-state","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fwp-h5p-shared-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fwp-h5p-shared-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fwp-h5p-shared-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fwp-h5p-shared-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr258","download_url":"https://codeload.github.com/sr258/wp-h5p-shared-state/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fwp-h5p-shared-state/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259049376,"owners_count":22797922,"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":[],"created_at":"2025-06-10T09:37:08.890Z","updated_at":"2025-06-10T09:37:16.752Z","avatar_url":"https://github.com/sr258.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress H5P Shared State Microservice\n\nThis is a microservice that runs alongside a WordPress installation and allows\ncontent types to have a shared state.\n\n## Requirements\n\n- NodeJS \u003e= 16\n- NPM \u003e= 7\n\n## Installation\n\n- Configure you service with environment variables or .env (see example.env)\n- Start the service (`npm ci \u0026\u0026 npm run build \u0026\u0026 npm start`)\n- Configure WordPress by adding a library configuration in `wp-config.php`\n  (change the hostnames according to your setup):\n\n  ```php\n  define('H5P_LIBRARY_CONFIG', array(\n      \"H5P.ShareDBTest\" =\u003e array(\n              \"serverUrl\" =\u003e \"ws://localhost:3000/shared-state\",\n              \"auth\" =\u003e \"http://localhost:3000/auth-data\")\n          ));\n  ```\n\n- Add this to `wp-config.php` to allow multiple uploads of the same library\n  version for testing purposes:\n\n  ```php\n  define('H5P_DEV', true);\n  define('H5P_DISABLE_AGGREGATION', true);\n  ```\n\n- Start WordPress. Make sure you've set WORDPRESS_LOGGED_IN_KEY and\n  WORDPRESS_LOGGED_IN_SALT to the same value as used in this microservice!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr258%2Fwp-h5p-shared-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr258%2Fwp-h5p-shared-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr258%2Fwp-h5p-shared-state/lists"}