{"id":17939075,"url":"https://github.com/theteleporter/xuneix","last_synced_at":"2025-03-24T10:31:54.087Z","repository":{"id":247033997,"uuid":"824858937","full_name":"theteleporter/xuneix","owner":"theteleporter","description":"A link rotator for enhanced admin panel security. Dynamic URLs, expiring tokens, customizable rotation. Easy setup with Shadcn UI \u0026 Tailwind CSS. Integrates with Vercel KV.","archived":false,"fork":false,"pushed_at":"2024-11-06T23:26:01.000Z","size":309,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-07T00:27:22.281Z","etag":null,"topics":["authentication","link-rotator","nextjs","open-source","security","shadcn-ui"],"latest_commit_sha":null,"homepage":"https://xuneix.theteleporter.me","language":"TypeScript","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/theteleporter.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-07-06T06:28:19.000Z","updated_at":"2024-11-01T02:10:08.000Z","dependencies_parsed_at":"2024-10-29T00:06:56.035Z","dependency_job_id":"27645ea3-4a60-4abb-936b-54726dcd9dfc","html_url":"https://github.com/theteleporter/xuneix","commit_stats":null,"previous_names":["theteleporter/xuneix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theteleporter%2Fxuneix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theteleporter%2Fxuneix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theteleporter%2Fxuneix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theteleporter%2Fxuneix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theteleporter","download_url":"https://codeload.github.com/theteleporter/xuneix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245252337,"owners_count":20585013,"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":["authentication","link-rotator","nextjs","open-source","security","shadcn-ui"],"created_at":"2024-10-29T00:06:29.796Z","updated_at":"2025-03-24T10:31:53.717Z","avatar_url":"https://github.com/theteleporter.png","language":"TypeScript","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# XUNEIX Link Rotator\n\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nSecure your Next.js admin panel with this open-source link rotator! 🛡️ This tool automatically generates dynamic, time-sensitive URLs with secure tokens to prevent unauthorized access.\n\n## Features\n\n* **Dynamic URL Generation:** Hides your admin panel behind a constantly changing URL.\n* **Secure Token Authentication:** Adds an extra layer of security with cryptographically generated tokens.\n* **Customizable Rotation Frequency:** Configure how often the link changes (using a Vercel Cron Job).\n* **Vercel KV Integration:** Securely stores the URL, token, and rotated URL history.\n* **Modern UI (Shadcn UI):**\n  * **Intuitive Input Fields:** For manual URL and token entry.\n  * **Clear Feedback:** Toasts notify of successes or errors.\n  * **Copy Buttons:** Easily copy generated URL and token to the clipboard.\n  * **Visual Feedback:** Checkmark replaces the copy icon to confirm successful copying.\n  * **Loading Indicators:**  Shows when data is being fetched.\n  * **Automatic Rotation:** URL and token are refreshed in the background. (Optional)\n  * **Manual Rotation:** Button for on-demand URL and token generation.\n* **Email Notifications:**  Sends the new admin URL and token to the administrator's email after rotation. (Optional)\n\n## Benefits\n\n* **Enhanced Security:**  Significantly harder for unauthorized users to discover and access your admin panel.\n* **User-Friendly:**  Clean and intuitive UI for easy management.\n* **Flexible Access:** Access the admin panel via the generated link, manual entry, or email.\n\n## Installation\n\n1. **Clone the Repository:**\n\n    ```bash\n    git clone https://github.com/theteleporter/xuneix.git\n    ```\n\n2. **Install Dependencies:**\n\n    ```bash\n    cd xuneix\n    npm install\n    ```\n\n3. **Set Up Vercel KV:**\n    * Create a Vercel KV instance.\n    * Add the following environment variables to your Vercel project settings:\n        * `KV_REST_API_URL`\n        * `KV_REST_API_TOKEN`\n        * (Optional) `KV_NAMESPACE` (if you're using namespaces)\n\n4. **Configure Mailgun (Optional):**\n    * Create a Mailgun account.\n    * Add the following environment variables to your Vercel project settings:\n        * `MAILGUN_SMTP_LOGIN`\n        * `MAILGUN_SMTP_PASSWORD`\n        * `ADMIN_EMAIL` (the email to receive notifications)\n        * `COMPANY_EMAIL` (your company's email)\n\n5. **Other Environment Variables:**\n    * `NEXT_PUBLIC_APP_URL`: Your application's public URL.\n    * `DEVELOPMENT_APP_URL`: Set to `http://localhost:3000` for local development.\n\n6. **Start the Development Server:**\n\n    ```bash\n    npm run dev\n    ```\n\n## Usage\n\n1. The app automatically fetches and displays the current admin URL and token.\n2. **Click \"Go to Admin Page\"** to access your admin panel.\n3. **OR, Enter the URL and Token Manually:**\n    * Copy the values from the input fields or your email notification.\n    * Paste them into your browser's address bar (including the `?token=` part).\n4. **Click \"Rotate Link\"** to generate a new secure link anytime. This will invalidate the old link and send a new one via email (if configured).\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues, feature requests, or pull requests.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheteleporter%2Fxuneix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheteleporter%2Fxuneix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheteleporter%2Fxuneix/lists"}