{"id":20599222,"url":"https://github.com/nermalcat69/cats-heaven","last_synced_at":"2026-06-05T19:31:13.697Z","repository":{"id":200245551,"uuid":"705112665","full_name":"nermalcat69/cats-heaven","owner":"nermalcat69","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-15T03:58:42.000Z","size":468,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-25T08:59:57.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/nermalcat69.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}},"created_at":"2023-10-15T03:56:35.000Z","updated_at":"2023-10-15T03:58:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"81ffab57-7f38-4099-8f34-9ecf823f9f04","html_url":"https://github.com/nermalcat69/cats-heaven","commit_stats":null,"previous_names":["nermalcat69/cats-heaven"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nermalcat69%2Fcats-heaven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nermalcat69%2Fcats-heaven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nermalcat69%2Fcats-heaven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nermalcat69%2Fcats-heaven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nermalcat69","download_url":"https://codeload.github.com/nermalcat69/cats-heaven/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242234498,"owners_count":20094205,"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":"2024-11-16T08:31:58.076Z","updated_at":"2026-06-05T19:31:13.692Z","avatar_url":"https://github.com/nermalcat69.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mux Video\n\nThis example uses Mux Video, an API-first platform for video. The example features video uploading and playback in a Next.js application.\n\n## Demo\n\n### [https://with-mux-video.vercel.app/](https://with-mux-video.vercel.app/)\n\n### This project was used to create [stream.new](https://stream.new/)\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com/home):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-mux-video\u0026project-name=with-mux-video\u0026repository-name=with-mux-video)\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:\n\n```bash\nnpx create-next-app --example with-mux-video with-mux-video-app\n```\n\n```bash\nyarn create next-app --example with-mux-video with-mux-video-app\n```\n\n```bash\npnpm create next-app --example with-mux-video with-mux-video-app\n```\n\n## Note\n\n**Important:** When creating uploads, this demo sets `cors_origin: \"*\"` in the [`pages/api/upload.js`](pages/api/upload.js) file. For extra security, you should update this value to be something like `cors_origin: 'https://your-app.com'`, to restrict uploads to only be allowed from your application.\n\nThis example uses:\n\n- [SWR](https://swr.vercel.app/) — dynamically changing the `refreshInterval` depending on if the client should be polling for updates or not\n- [`/pages/api`](pages/api) routes — a couple endpoints for making authenticated requests to the Mux API.\n- Dynamic routes using [`getStaticPaths` and `fallback: true`](https://nextjs.org/docs/basic-features/data-fetching/get-static-paths), as well as dynamic API routes.\n\n## Configuration\n\n### Step 1. Create an account in Mux\n\nAll you need to set this up is a [Mux account](https://mux.com). You can sign up for free and pricing is pay-as-you-go. There are no upfront charges, you get billed monthly only for what you use.\n\nWithout entering a credit card on your Mux account all videos are in “test mode” which means they are watermarked and clipped to 10 seconds. If you enter a credit card all limitations are lifted and you get \\$20 of free credit. The free credit should be plenty for you to test out and play around with everything before you are charged.\n\n### Step 2. Set up environment variables\n\nCopy the `.env.local.example` file in this directory to `.env.local` (which will be ignored by Git):\n\n```bash\ncp .env.local.example .env.local\n```\n\nThen, go to the [settings page](https://dashboard.mux.com/settings/access-tokens) in your Mux dashboard set each variable on `.env.local`, get a new **API Access Token** and set each variable in `.env.local`:\n\n- `MUX_TOKEN_ID` should be the `TOKEN ID` of your new token\n- `MUX_TOKEN_SECRET` should be `TOKEN SECRET`\n\n### Step 3. Deploy on Vercel\n\nYou can deploy this app to the cloud with [Vercel](https://vercel.com/new?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).\n\nTo deploy on Vercel, you need to set the environment variables using [Vercel CLI](https://vercel.com/download) ([Documentation](https://vercel.com/docs/cli#commands/secrets)).\n\nInstall the [Vercel CLI](https://vercel.com/download), log in to your account from the CLI, and run the following commands to add the environment variables. Replace the values with the corresponding strings in `.env.local`:\n\n```bash\nvercel secrets add next_example_mux_token_id \u003cMUX_TOKEN_ID\u003e\nvercel secrets add next_example_mux_token_secret \u003cMUX_TOKEN_SECRET\u003e\n```\n\nThen push the project to GitHub/GitLab/Bitbucket and [import to Vercel](https://vercel.com/new?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example) to deploy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnermalcat69%2Fcats-heaven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnermalcat69%2Fcats-heaven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnermalcat69%2Fcats-heaven/lists"}