{"_id":"@alfanjauhari/astro-og-images","_rev":"2-225f835058a6009ffbcb6fdb3496a72d","name":"@alfanjauhari/astro-og-images","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@alfanjauhari/astro-og-images","version":"0.1.0","license":"MIT","_id":"@alfanjauhari/astro-og-images@0.1.0","maintainers":[{"name":"alfanjauhari","email":"hi.alfanj@gmail.com"}],"dist":{"shasum":"8af970e0031c2c94546843278e58cd5c785b1398","tarball":"https://registry.npmjs.org/@alfanjauhari/astro-og-images/-/astro-og-images-0.1.0.tgz","fileCount":3,"integrity":"sha512-aDXTZEOFRtjCChvdk4sIHYWhW2/QM150jFHX72EHAzXCK/QRlU6kd9ymn6RM1wSEw23U62NPRFED+Ha1xlfkSg==","signatures":[{"sig":"MEYCIQCnWNGlCxn8B9CjngK4c9QIOW7J9oHySzHzBu1OTSW97AIhAP+0n9Q5Hfk2zMxejR5LB3OLnitWA+WauHPA+qwZ4otX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2841},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.13.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./path":{"types":"./dist/path.d.ts","import":"./dist/path.js"}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"alfanjauhari","email":"hi.alfanj@gmail.com"},"description":"Generate Open Graph images from prerendered Astro pages.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"jsdom":"^29.1.1","takumi-js":"^2.10.0","@types/react":"^19.2.0","@takumi-rs/core":"^2.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","astro":"^7.2.4","typescript":"^6.0.3","@types/node":"^24.10.1","@types/jsdom":"^28.0.3"},"peerDependencies":{"astro":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/astro-og-images_0.1.0_1787666442791_0.6093624299994624","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@alfanjauhari/astro-og-images","version":"0.2.0","description":"Generate Open Graph images from prerendered Astro pages.","license":"MIT","repository":{"url":"https://github.com/alfanjauhari/alfanjauhari.com"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./path":{"types":"./dist/path.d.ts","import":"./dist/path.js"}},"publishConfig":{"access":"public"},"dependencies":{"@takumi-rs/core":"^2.10.0","@types/react":"^19.2.0","jsdom":"^29.1.1","takumi-js":"^2.10.0"},"devDependencies":{"@types/jsdom":"^28.0.3","@types/node":"^24.10.1","astro":"^7.2.4","tsup":"^8.5.1","typescript":"^6.0.3"},"peerDependencies":{"astro":"^7.2.0"},"engines":{"node":">=24.19.0"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit -p tsconfig.json"},"_nodeVersion":"26.0.0","_id":"@alfanjauhari/astro-og-images@0.2.0","dist":{"integrity":"sha512-rqgKPhDLzw5eX/B91JuhFgbw86WkVap6QRLPKpQV/9qkxoT5CiiTgulGaanofj7ksDIaJYS/cBmyyWZ6Pqwtag==","shasum":"1f0d807df78492178df2c80afbbd112fc677d9b4","tarball":"https://registry.npmjs.org/@alfanjauhari/astro-og-images/-/astro-og-images-0.2.0.tgz","fileCount":9,"unpackedSize":19085,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alfanjauhari%2fastro-og-images@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFYta8RVxEjW+oucUMDnTaYeHczO4amsYlTx9GjfktVrAiEAtCviBarUUJe+9b29Q9wXKLTNhjIJdIFTSWFfUc4QRYc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9d0d6852-95cb-4b65-b306-d083556db2f1"}},"directories":{},"maintainers":[{"name":"alfanjauhari","email":"hi.alfanj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/astro-og-images_0.2.0_1787670477241_0.0382596375344324"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-25T14:00:42.698Z","modified":"2026-08-25T15:07:57.680Z","0.1.0":"2026-08-25T14:00:42.943Z","0.2.0":"2026-08-25T15:07:57.375Z"},"license":"MIT","description":"Generate Open Graph images from prerendered Astro pages.","maintainers":[{"name":"alfanjauhari","email":"hi.alfanj@gmail.com"}],"readme":"# @alfanjauhari/astro-og-images\n\nAn Astro build integration that renders Open Graph images from the metadata in prerendered HTML pages.\n\nThe integration runs during `astro:build:done` and requires Node.js filesystem access plus the native Takumi renderer. It is intended for static or prerendered pages, not runtime Worker rendering.\n\n```ts\nimport ogImages, { element } from \"@alfanjauhari/astro-og-images\";\n\nexport default {\n  integrations: [\n    ogImages({\n      fonts: [],\n      render: ({ title }) => element(\"div\", {}, title), // or <div className=\"bg-accent\">Hello</div>,\n    }),\n  ],\n};\n```\n\nUse `@alfanjauhari/astro-og-images/path` to generate the matching `og:image` URL in an Astro component.\n","readmeFilename":"","repository":{"url":"https://github.com/alfanjauhari/alfanjauhari.com"}}