{"id":13561209,"url":"https://github.com/typed-macro/typed-macro","last_synced_at":"2026-02-28T21:01:53.329Z","repository":{"id":39594085,"uuid":"394641751","full_name":"typed-macro/typed-macro","owner":"typed-macro","description":"🤠 Brings macros to your projects.","archived":false,"fork":false,"pushed_at":"2022-04-14T09:23:38.000Z","size":790,"stargazers_count":143,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-23T21:43:47.858Z","etag":null,"topics":["babel","javascript","macro","typescript","vite-plugin"],"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/typed-macro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-10T12:16:02.000Z","updated_at":"2024-06-08T08:20:42.000Z","dependencies_parsed_at":"2022-09-12T19:40:38.604Z","dependency_job_id":null,"html_url":"https://github.com/typed-macro/typed-macro","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/typed-macro/typed-macro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typed-macro%2Ftyped-macro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typed-macro%2Ftyped-macro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typed-macro%2Ftyped-macro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typed-macro%2Ftyped-macro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typed-macro","download_url":"https://codeload.github.com/typed-macro/typed-macro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typed-macro%2Ftyped-macro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29951673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["babel","javascript","macro","typescript","vite-plugin"],"created_at":"2024-08-01T13:00:53.739Z","updated_at":"2026-02-28T21:01:48.318Z","avatar_url":"https://github.com/typed-macro.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"logo\" src=\"https://github.com/typed-macro/art/raw/master/SVG/logo-filled-full.svg\" width=\"360\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/typed-macro/typed-macro/releases\"\u003e\n    \u003cimg alt=\"version\" src=\"https://img.shields.io/github/v/release/typed-macro/typed-macro?include_prereleases\u0026sort=semver\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://app.codecov.io/gh/typed-macro/typed-macro\"\u003e\n    \u003cimg alt=\"code coverage\" src=\"https://img.shields.io/codecov/c/gh/typed-macro/typed-macro\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/typed-macro/typed-macro/actions/workflows/ci.yaml\"\u003e\n    \u003cimg alt=\"ci\" src=\"https://github.com/typed-macro/typed-macro/actions/workflows/ci.yaml/badge.svg?branch=master\"\u003e\n  \u003c/a\u003e\n  \u003cimg alt=\"wrappers\" src=\"https://img.shields.io/badge/platform-Vite-green\"\u003e\n  \u003ca href=\"https://github.com/typed-macro/typed-macro/blob/master/LICENSE\"\u003e\n    \u003cimg alt=\"license\" src=\"https://img.shields.io/github/license/typed-macro/typed-macro\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  🤠 Provide macros to your projects. \n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"DOCUMENTATION.md\"\u003eDocumentation\u003c/a\u003e\n\u003c/p\u003e\n\n## 🧐 Why @typed-macro\n\nThere are already many solutions that provide macro capabilities\nfor Javascript and Typescript projects.\nSome of them are very mature, such as [babel-plugin-macros](https://github.com/kentcdodds/babel-plugin-macros)\n(it's awesome, and maybe you will be interested in it).\n\nHowever, according to my personal experience, they are not suitable for people like me - all my projects are in Typescript, but their support for\nTypescript is usually [not so good](https://github.com/kentcdodds/babel-plugin-macros/issues/94).\n\nAlso, in those solutions, macros cannot interact with each other,\nsuch as [importing](https://github.com/kentcdodds/babel-plugin-macros/issues/48)\nor [nesting](https://github.com/kentcdodds/babel-plugin-macros/issues/173).\nAnd users cannot import macros [like normal functions](https://github.com/kentcdodds/babel-plugin-macros/issues/111).\n\nMost of them are Babel plugins, so they may read something that\nhas been changed by other plugins but not updated yet (like [bindings](https://github.com/kentcdodds/import-all.macro/issues/7)),\nand can't control [its position](https://jamie.build/babel-plugin-ordering.html) in the transformation chain.\nBut in the modern dev flow, the main pain point of being a Babel plugin may be that\nBabel is just a transformer, knowing nothing about modules and dependency graph, which means\nthey [cannot re-expand macros](https://github.com/kentcdodds/babel-plugin-preval/issues/19) when changes occurs in dependent external conditions.\n\n😎 **@typed-macro** stands on the shoulders of **Typescript** and **ES Module** - **none of the above problems exist anymore**.\n\n## 📈 Road Map\n\n| Package                 | Status                                         | Documentation                              |\n| ----------------------- | ---------------------------------------------- | ------------------------------------------ |\n| @typed-macro/core       | [![core][core-icon]][core-url]                 | [English](packages/core/README.md)         |\n| @typed-macro/runtime    | [![runtime][runtime-icon]][runtime-url]        | -                                          |\n| @typed-macro/test-utils | [![core][test-utils-icon]][test-utils-url]     | [English](packages/test-utils/README.md)   |\n| vite-plugin-macro       | [![core][wrapper-vite-icon]][wrapper-vite-url] | [English](packages/wrapper-vite/README.md) |\n| \\*rollup                | 🚧                                             | 🚧                                         |\n| \\*webpack               | 🚧                                             | 🚧                                         |\n\n[core-icon]: https://img.shields.io/npm/v/@typed-macro/core\n[core-url]: https://www.npmjs.com/package/@typed-macro/core\n[runtime-icon]: https://img.shields.io/npm/v/@typed-macro/runtime\n[runtime-url]: https://www.npmjs.com/package/@typed-macro/runtime\n[test-utils-icon]: https://img.shields.io/npm/v/@typed-macro/test-utils\n[test-utils-url]: https://www.npmjs.com/package/@typed-macro/test-utils\n[wrapper-vite-icon]: https://img.shields.io/npm/v/vite-plugin-macro\n[wrapper-vite-url]: https://www.npmjs.com/package/vite-plugin-macro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyped-macro%2Ftyped-macro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyped-macro%2Ftyped-macro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyped-macro%2Ftyped-macro/lists"}