{"id":24018734,"url":"https://github.com/hasanqq/react-email-microservice","last_synced_at":"2025-05-07T04:24:10.845Z","repository":{"id":270987863,"uuid":"912065612","full_name":"HasanQQ/react-email-microservice","owner":"HasanQQ","description":"A simple microservice template created to use the react-email package from an API with express \u0026 zod.","archived":false,"fork":false,"pushed_at":"2025-02-24T13:32:36.000Z","size":119,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T06:22:42.073Z","etag":null,"topics":["email","email-template","express","microservice","react"],"latest_commit_sha":null,"homepage":"","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/HasanQQ.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,"publiccode":null,"codemeta":null}},"created_at":"2025-01-04T14:52:54.000Z","updated_at":"2025-02-24T13:32:26.000Z","dependencies_parsed_at":"2025-01-04T16:30:06.458Z","dependency_job_id":null,"html_url":"https://github.com/HasanQQ/react-email-microservice","commit_stats":null,"previous_names":["hasanqq/react-email-microservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HasanQQ%2Freact-email-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HasanQQ%2Freact-email-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HasanQQ%2Freact-email-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HasanQQ%2Freact-email-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HasanQQ","download_url":"https://codeload.github.com/HasanQQ/react-email-microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252811407,"owners_count":21807932,"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":["email","email-template","express","microservice","react"],"created_at":"2025-01-08T10:18:27.565Z","updated_at":"2025-05-07T04:24:10.826Z","avatar_url":"https://github.com/HasanQQ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Email Microservice\n\nA simple microservice template created to use the [react-email](https://github.com/resend/react-email) package. It has\nsame examples as \"[create-email](https://www.npmjs.com/package/create-email)\" (react-email) and the following features\nhave been added.\n\n-   [express](https://github.com/expressjs/express) implementation\n-   [rollup plugin](./rollup/plugin-clone-static-files.ts) for static file versioning\n\n## Commands\n\nList of available commands.\n\n| Command         | Description                                    |\n| --------------- | ---------------------------------------------- |\n| `npm run dev`   | Start the dev server.                          |\n| `npm run build` | Build the production server with static files. |\n| `npm run start` | Run the production server.                     |\n\n## Example Usage\n\nAfter build you can send component properties to the `[POST] http://localhost:3000/templates/:template/render` endpoint as a JSON body.\nFor example:\n\n```bash\ncurl \\\n    --request POST \\\n    --url http://localhost:3000/templates/notion-magic-link/render \\\n    --header 'Content-Type: application/json' \\\n    --data '{\"loginCode\":\"sparo-ndigo-amurt-secan\"}'\n```\n\nResponse will be something like that:\n\n```json\n{\n    \"message\": \"SUCCESS\",\n    \"body\": {\n        \"html\": \"...\",\n        \"text\": \"...\"\n    }\n}\n```\n\n## TODOs\n\n-   [x] ~zod implementation for request payloads~\n-   [ ] automatic template/file discovery for express side\n-   [ ] move core functions/files into a package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasanqq%2Freact-email-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasanqq%2Freact-email-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasanqq%2Freact-email-microservice/lists"}