{"id":25873089,"url":"https://github.com/codeinwp/shorrrrrten","last_synced_at":"2025-07-22T17:35:01.197Z","repository":{"id":259492049,"uuid":"858008446","full_name":"Codeinwp/shorrrrrten","owner":"Codeinwp","description":"A simple React based frontend for YOURLS.","archived":false,"fork":false,"pushed_at":"2024-10-24T23:20:55.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-27T15:05:45.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codeinwp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T06:18:07.000Z","updated_at":"2025-01-21T09:12:45.000Z","dependencies_parsed_at":"2024-10-26T00:28:39.425Z","dependency_job_id":"a91f735e-a71f-4fef-83bd-cdfd4e679e61","html_url":"https://github.com/Codeinwp/shorrrrrten","commit_stats":null,"previous_names":["codeinwp/shorrrrrten"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Codeinwp/shorrrrrten","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fshorrrrrten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fshorrrrrten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fshorrrrrten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fshorrrrrten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codeinwp","download_url":"https://codeload.github.com/Codeinwp/shorrrrrten/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codeinwp%2Fshorrrrrten/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266540173,"owners_count":23945168,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03-02T08:29:39.941Z","updated_at":"2025-07-22T17:35:01.173Z","avatar_url":"https://github.com/Codeinwp.png","language":"JavaScript","readme":"# Shorrrrrten\nShorrrrrten is a React-based frontend for YOURLS, using the YOURLS API to interact with a YOURLS instance. This project provides a simple and user-friendly interface to manage your YOURLS links.\n\n## Getting Started\n\n### Installation\n1. Clone the repository to your local machine.\n2. Copy the `.env.example` file to `.env`:\n```bash\ncp .env.example .env\n```\n3. Replace the following variables in the `.env` file with your own values:\n- `VITE_YOURLS_API_URL`: The URL of your YOURLS API endpoint.\n- `VITE_YOURLS_SECRET`: Your YOURLS secret key for API access.\n- `VITE_GOD_MODE`: Controls edit/delete permissions for links (optional)\n  - If undefined or set to 'true': Edit/delete enabled by default\n  - If set to 'false': Edit/delete permanently disabled\n  - If set to any other string: Functions as a password that users must enter via console command to enable edit/delete permissions\n\n### God Mode\nThe God Mode feature controls whether users can edit or delete existing links. It can be configured in three ways:\n\n1. **Always Enabled (Default)**\n   - Don't set `VITE_GOD_MODE`, or set it to 'true'\n   - Users will always have edit/delete permissions\n\n2. **Always Disabled**\n   - Set `VITE_GOD_MODE=false`\n   - Users will never have edit/delete permissions\n\n3. **Password Protected**\n   - Set `VITE_GOD_MODE` to any string (e.g., `VITE_GOD_MODE=mysecretpassword`)\n   - Users must enable God Mode via browser console:\n     ```javascript\n     // Enable God Mode\n     godMode.enter('mysecretpassword')\n\n     // Disable God Mode\n     godMode.exit()\n     ```\n\n### Prerequisites\nTo make the frontend work with your YOURLS instance, you will need to install the following YOURLS plugins:\n- [yourls-access-control-allow-origin](https://github.com/TEODE/yourls-access-control-allow-origin)\n- [yourls-api-delete](https://github.com/claytondaley/yourls-api-delete)\n- [yourls-api-edit-url](https://github.com/timcrockford/yourls-api-edit-url)\n- [yourls-api-list-extended](https://github.com/Codeinwp/yourls-api-list-extended)\n\nThese plugins extend the YOURLS API to allow for full CRUD operations from the frontend.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeinwp%2Fshorrrrrten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeinwp%2Fshorrrrrten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeinwp%2Fshorrrrrten/lists"}