{"id":48924010,"url":"https://github.com/henrikhorluck/terraform-provider-punycode","last_synced_at":"2026-04-17T06:01:49.266Z","repository":{"id":323348880,"uuid":"1092923771","full_name":"henrikhorluck/terraform-provider-punycode","owner":"henrikhorluck","description":"A vibe-coded terraform provider providing punycode encode/decode functions","archived":false,"fork":false,"pushed_at":"2025-11-09T15:57:16.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-09T17:29:47.080Z","etag":null,"topics":["punycode","terraform"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/henrikhorluck/punycode/","language":"Go","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/henrikhorluck.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-09T15:20:37.000Z","updated_at":"2025-11-09T16:21:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/henrikhorluck/terraform-provider-punycode","commit_stats":null,"previous_names":["henrikhorluck/terraform-provider-punycode"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/henrikhorluck/terraform-provider-punycode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikhorluck%2Fterraform-provider-punycode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikhorluck%2Fterraform-provider-punycode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikhorluck%2Fterraform-provider-punycode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikhorluck%2Fterraform-provider-punycode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrikhorluck","download_url":"https://codeload.github.com/henrikhorluck/terraform-provider-punycode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikhorluck%2Fterraform-provider-punycode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31917372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["punycode","terraform"],"created_at":"2026-04-17T06:01:48.177Z","updated_at":"2026-04-17T06:01:49.257Z","avatar_url":"https://github.com/henrikhorluck.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider Punycode\n\nThis provider was essentially one-shot from\n\n\u003e We are going to make a terraform provider that provides a punycode-enconding and decoding function\n\nTo Claude Sonnet 4.5, use at your own risk!\n\nA Terraform provider that provides punycode encoding and decoding functions.\n\n## Overview\n\nThis provider implements RFC 3492 punycode encoding/decoding using Terraform's provider-defined functions. It allows you to encode Unicode domain names to ASCII-compatible encoding and decode them back.\n\n## Requirements\n\n- Terraform \u003e= 1.8.0 (for provider-defined functions support)\n- Go \u003e= 1.21 (for development)\n\n## Installation\n\nAdd the provider to your Terraform configuration:\n\n```hcl\nterraform {\n  required_providers {\n    punycode = {\n      source = \"henrikhorluck/punycode\"\n    }\n  }\n}\n\nprovider \"punycode\" {}\n```\n\n## Usage\n\n### Encode Function\n\nConverts a Unicode string to punycode (ASCII-compatible encoding):\n\n```hcl\noutput \"encoded\" {\n  value = provider::punycode::encode(\"münchen.de\")\n}\n# Output: \"xn--mnchen-3ya.de\"\n\noutput \"encoded_japanese\" {\n  value = provider::punycode::encode(\"日本.jp\")\n}\n# Output: \"xn--wgv71a.jp\"\n```\n\n### Decode Function\n\nConverts a punycode string back to Unicode:\n\n```hcl\noutput \"decoded\" {\n  value = provider::punycode::decode(\"xn--mnchen-3ya.de\")\n}\n# Output: \"münchen.de\"\n\noutput \"decoded_japanese\" {\n  value = provider::punycode::decode(\"xn--wgv71a.jp\")\n}\n# Output: \"日本.jp\"\n```\n\n## Development\n\n### Building the Provider\n\n```bash\ngo build -o terraform-provider-punycode\n```\n\n### Running Tests\n\n```bash\ngo test ./...\n```\n\n### Generating Documentation\n\nThe provider documentation is automatically generated using [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs):\n\n```bash\ngo generate ./...\n```\n\nThis will update the documentation in the `docs/` directory based on:\n- Provider schema and function definitions\n- Templates in `templates/` directory  \n- Examples in `examples/` directory\n\nSee [docs/DOCUMENTATION.md](docs/DOCUMENTATION.md) for more details on the documentation structure.\n```\n\n### Local Installation\n\nTo use the provider locally during development:\n\n1. Build the provider:\n   ```bash\n   go build -o terraform-provider-punycode\n   ```\n\n2. Set the environment variable to use the local dev override:\n   ```bash\n   export TF_CLI_CONFIG_FILE=\"$(pwd)/.terraformrc\"\n   ```\n\n3. Run Terraform (skip `terraform init` when using dev overrides):\n   ```bash\n   cd examples\n   terraform plan\n   terraform apply\n   ```\n\nAlternatively, use the provided helper script:\n```bash\n./tf-dev.fish plan\n./tf-dev.fish apply\n```\n\nThe `.terraformrc` file configures Terraform to use the local provider binary instead of downloading from the registry.\n\n## What is Punycode?\n\nPunycode is a representation of Unicode with the limited ASCII character subset used for Internet host names. It's used to encode internationalized domain names (IDN) into ASCII-compatible encoding (ACE).\n\nFor example:\n\n- `münchen.de` → `xn--mnchen-3ya.de`\n- `日本.jp` → `xn--wgv71a.jp`\n- `россия.рф` → `xn--h1alffa9f.xn--p1ai`\n\n## Releasing\n\nSee [RELEASING.md](RELEASING.md) for detailed instructions on creating and publishing releases.\n\nQuick steps:\n\n1. Ensure GPG key is configured (see RELEASING.md)\n2. Create and push a version tag: `git tag v1.0.0 \u0026\u0026 git push origin v1.0.0`\n3. GitHub Actions will automatically build and release\n\n## License\n\nThis provider is distributed under the Mozilla Public License 2.0. See `LICENSE` for more information.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrikhorluck%2Fterraform-provider-punycode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrikhorluck%2Fterraform-provider-punycode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrikhorluck%2Fterraform-provider-punycode/lists"}