{"id":21407285,"url":"https://github.com/mkst/vercel-og-memory-leak","last_synced_at":"2026-01-03T05:36:29.295Z","repository":{"id":230111789,"uuid":"778181207","full_name":"mkst/vercel-og-memory-leak","owner":"mkst","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-29T12:02:10.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T04:13:14.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vercel-og-memory-leak.vercel.app","language":"TypeScript","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/mkst.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}},"created_at":"2024-03-27T08:32:40.000Z","updated_at":"2024-03-27T21:56:55.000Z","dependencies_parsed_at":"2024-04-01T13:15:13.578Z","dependency_job_id":null,"html_url":"https://github.com/mkst/vercel-og-memory-leak","commit_stats":null,"previous_names":["mkst/vercel-og-memory-leak"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fvercel-og-memory-leak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fvercel-og-memory-leak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fvercel-og-memory-leak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkst%2Fvercel-og-memory-leak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkst","download_url":"https://codeload.github.com/mkst/vercel-og-memory-leak/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902321,"owners_count":20366262,"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-22T16:45:54.459Z","updated_at":"2026-01-03T05:36:29.251Z","avatar_url":"https://github.com/mkst.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vercel/og memory leak demonstrator\r\n\r\n## Steps to reproduce\r\n\r\n- Clone this repo\r\n- Open 2 terminal windows.\r\n    - In the first :\r\n    - `cd my-app`\r\n    - `npm ci`\r\n    - `npm run dev`\r\n    - In the second (once node is up and running):\r\n    - `while true; do curl http://localhost:3000/opengraph-image \u003e/dev/null; done`\r\n\r\nYou can also open your browser at http://localhost:3000/opengraph-image to watch the memory usage increase.\r\n\r\n\r\n## Create this project from scratch\r\n\r\nCreate an example application per the instructions https://nextjs.org/docs/getting-started/installation.\r\n\r\nWe are using Docker to keep things simple and reproducible.\r\n\r\nOutside of Docker:\r\n```\r\n$ mkdir og\r\n$ cd og\r\n$ docker run --rm -ti -p 3000:3000 -v $(pwd):/og node:20 bash\r\n```\r\n\r\nInside Docker:\r\n```\r\n# cd /og\r\n# npx create-next-app@latest\r\n\r\ncreate-next-app@14.1.4\r\nOk to proceed? (y) y\r\n✔ What is your project named? … my-app\r\n✔ Would you like to use TypeScript? … No / Yes\r\n✔ Would you like to use ESLint? … No / Yes\r\n✔ Would you like to use Tailwind CSS? … No / Yes\r\n✔ Would you like to use `src/` directory? … No / Yes\r\n✔ Would you like to use App Router? (recommended) … No / Yes\r\n✔ Would you like to customize the default import alias (@/*)? … No / Yes\r\nCreating a new Next.js app in /og/my-app.\r\n\r\n# cd my-app\r\n# npm install @vercel/og\r\n```\r\n\r\nCopy the `my-app/app/opengraph-image.tsx` from this repo into your project.\r\n\r\nStart the server\r\n```\r\n# npm run dev\r\n```\r\n\r\nOutside of Docker run the `curl` command or connect from your browser and watch the memory usage increase every time you visit the page.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkst%2Fvercel-og-memory-leak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkst%2Fvercel-og-memory-leak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkst%2Fvercel-og-memory-leak/lists"}