{"id":15062417,"url":"https://github.com/cijiugechu/astro-satori","last_synced_at":"2025-08-13T11:36:17.983Z","repository":{"id":65836438,"uuid":"600795813","full_name":"cijiugechu/astro-satori","owner":"cijiugechu","description":"This Astro integration brings satori to your Astro project.","archived":false,"fork":false,"pushed_at":"2025-03-21T07:33:31.000Z","size":88,"stargazers_count":11,"open_issues_count":12,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T15:54:08.557Z","etag":null,"topics":["astro","astro-integration","image-generation","og-image","open-graph","opengraph-images","satori","svg"],"latest_commit_sha":null,"homepage":"https://cijiugechu.github.io/astro-satori/","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/cijiugechu.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":"2023-02-12T16:18:51.000Z","updated_at":"2025-02-10T06:49:47.000Z","dependencies_parsed_at":"2024-09-15T11:16:16.097Z","dependency_job_id":"45bbe451-c2b2-4a4b-86a9-816745ae7ff5","html_url":"https://github.com/cijiugechu/astro-satori","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.07999999999999996,"last_synced_commit":"b3a0e36c6e1d30408f9f61bd741b1a2946de760a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"jufuku-haijo/ts-lib-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fastro-satori","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fastro-satori/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fastro-satori/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fastro-satori/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cijiugechu","download_url":"https://codeload.github.com/cijiugechu/astro-satori/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704547,"owners_count":20982296,"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":["astro","astro-integration","image-generation","og-image","open-graph","opengraph-images","satori","svg"],"created_at":"2024-09-24T23:35:42.502Z","updated_at":"2025-04-10T13:33:09.571Z","avatar_url":"https://github.com/cijiugechu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astro-satori\n\nThis `Astro` integration brings open graph images to your project, powered by [satori](https://github.com/vercel/satori)\n\nSee [example](/packages/playground/)\n\n## Install\n\n```shell\n# Using NPM\nnpx astro add astro-satori\n# Using Yarn\nyarn astro add astro-satori\n# Using PNPM\npnpx astro add astro-satori\n```\n\n## Config\n\n```js\n// astro.config.mjs\nimport {defineConfig} from \"astro/config\"\nimport satori from \"astro-satori\"\nexport default defineConfig({\n  integrations: [\n    satori({})\n  ],\n})\n```\n\n#### satoriOptionsFactory\n\nGenerate your own `satori` options by passing a function, if you do not provide this option, `astro-satori` will provide you with a default option.\n\n`astro.config.mjs`\n\n```js\nimport {defineConfig} from \"astro/config\"\nimport satori from \"astro-satori\"\nexport default defineConfig({\n  integrations: [\n    satori({\n      satoriOptionsFactory: async () =\u003e {\n        const fontFileRegular = await fetch(\n          'https://www.1001fonts.com/download/font/ibm-plex-mono.regular.ttf'\n        )\n        const fontRegular: ArrayBuffer = await fontFileRegular.arrayBuffer()\n\n        const fontFileBold = await fetch(\n          'https://www.1001fonts.com/download/font/ibm-plex-mono.bold.ttf'\n        )\n        const fontBold: ArrayBuffer = await fontFileBold.arrayBuffer()\n\n        const options = {\n          width: 1200,\n          height: 630,\n          embedFont: true,\n          fonts: [\n            {\n              name: 'IBM Plex Mono',\n              data: fontRegular,\n              weight: 400,\n              style: 'normal',\n            },\n            {\n              name: 'IBM Plex Mono',\n              data: fontBold,\n              weight: 600,\n              style: 'normal',\n            },\n          ],\n        }\n\n        return options\n      }\n    })\n  ],\n})\n```\n\n#### satoriElement\n\nGenerate your own satori Element, if you do not provide this option, `astro-satori` will provide you with a default element.\n\n`astro.config.mjs`\n\n```js\nimport {defineConfig} from \"astro/config\"\nimport satori from \"astro-satori\"\nexport default defineConfig({\n  integrations: [\n    satori({\n      satoriElement: ({ title, author, description }) =\u003e {\n        return {\n          type: 'div',\n          props: {\n            children: [\n              title,\n              author,\n              description\n            ]\n          }\n        }\n      }\n    })\n  ],\n})\n```\n\n## How to use\n\nsee [example](/packages/playground/)\n\n## License\n\nMIT \u0026copy; [nemurubaka](https://github.com/cijiugechu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fastro-satori","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcijiugechu%2Fastro-satori","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fastro-satori/lists"}