{"id":16792607,"url":"https://github.com/ivanhofer/plugin-template","last_synced_at":"2026-02-11T04:30:58.495Z","repository":{"id":103424951,"uuid":"587645099","full_name":"ivanhofer/plugin-template","owner":"ivanhofer","description":"Template to create plugins for inlang.","archived":false,"fork":false,"pushed_at":"2023-01-22T08:34:21.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T02:21:21.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"inlang/plugin-template","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanhofer.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-01-11T08:41:27.000Z","updated_at":"2023-08-30T15:26:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"657e402d-878f-4454-be87-3e9b27b4a912","html_url":"https://github.com/ivanhofer/plugin-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ivanhofer/plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Fplugin-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Fplugin-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Fplugin-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Fplugin-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanhofer","download_url":"https://codeload.github.com/ivanhofer/plugin-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhofer%2Fplugin-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270065447,"owners_count":24520946,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T08:46:32.561Z","updated_at":"2026-02-11T04:30:58.419Z","avatar_url":"https://github.com/ivanhofer.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# inlang plugin-template\n\n\u003e **Note**  \n\u003e \n\u003e **Change the following things if you use this template:**\n\u003e 1. Name your repository \"inlang-plugin-{name}\".\n\u003e 2. Change the introduction paragraph to describe your plugin.\n\u003e 3. Create a release on GitHub so users can import a specific version of your plugin.\n\u003e 4. Update the Usage section.\n\u003e 5. Open a PR to https://github.com/inlang/awesome-inlang\n\nThis is a template for creating a new plugin for [inlang](https://inlang.com).\n\nPlugins allow the customization of inlang's behavior by, for example, defining how resources should be parsed and serialized. Read more about using plugins on the [documentation site](https://inlang.com/documentation/plugins). This template has been set up to provide out of the box:\n\n- [x] TypeScript\n- [x] Testing (the example)\n- [x] Bundling\n\n## Usage\n\n```js\n// filename: inlang.config.js\n\nexport async function initializeConfig(env){\n  const plugin = await env.$import(\n    \"https://cdn.jsdelivr.net/gh/{username}/{repository-name}@{version}/dist/index.js\"\n  ) \n}\n```\n\nFor additional usage information, take a look at [example](./example/).\n\n## Contributing\n\n### Developing\n\nRun the following commands in your terminal (node and npm must be installed):\n\n1. `npm install`\n2. `npm run dev`\n\n`npm run dev` will start the development environment which automatically compiles the [src/index.ts](./src/index.ts) files to JavaScript ([dist/index.js](dist/index.js)), runs tests defined in `*.test.ts` files and watches changes.\n\n### Publishing\n\nRun `npm run build` to generate a build.\n\nThe [dist](./dist/) directory is used to distribute the plugin directly via CDN like [jsDelivr](https://www.jsdelivr.com/). Using a CDN works because the inlang config uses dynamic imports to import plugins.\n\nRead the [jsDelivr documentation](https://www.jsdelivr.com/?docs=gh) on importing from GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhofer%2Fplugin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanhofer%2Fplugin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhofer%2Fplugin-template/lists"}