{"id":13413944,"url":"https://github.com/mmalcek/bafi","last_synced_at":"2025-07-15T10:32:13.147Z","repository":{"id":57622534,"uuid":"385569702","full_name":"mmalcek/bafi","owner":"mmalcek","description":"Universal JSON, BSON, YAML, CSV, XML converter with templates","archived":false,"fork":false,"pushed_at":"2023-12-15T11:48:50.000Z","size":3471,"stargazers_count":89,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-12-16T00:34:48.926Z","etag":null,"topics":["bson","convert","converter","csv","csv-to-json","csv-to-xml","formatter","json","json-to-xml","parser","xml","xml-to-json","yaml"],"latest_commit_sha":null,"homepage":"https://mmalcek.github.io/bafi/","language":"Go","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/mmalcek.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}},"created_at":"2021-07-13T10:48:40.000Z","updated_at":"2024-01-05T10:11:38.521Z","dependencies_parsed_at":"2023-12-20T15:36:28.869Z","dependency_job_id":null,"html_url":"https://github.com/mmalcek/bafi","commit_stats":null,"previous_names":[],"tags_count":21,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalcek%2Fbafi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalcek%2Fbafi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalcek%2Fbafi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalcek%2Fbafi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmalcek","download_url":"https://codeload.github.com/mmalcek/bafi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225934406,"owners_count":17547738,"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":["bson","convert","converter","csv","csv-to-json","csv-to-xml","formatter","json","json-to-xml","parser","xml","xml-to-json","yaml"],"created_at":"2024-07-30T20:01:53.330Z","updated_at":"2024-11-23T11:09:00.424Z","avatar_url":"https://github.com/mmalcek.png","language":"Go","readme":"[![Go](https://github.com/mmalcek/bafi/actions/workflows/go.yml/badge.svg)](https://github.com/mmalcek/bafi/actions/workflows/go.yml)\n[![CodeQL](https://github.com/mmalcek/bafi/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/mmalcek/bafi/actions/workflows/codeql-analysis.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mmalcek/bafi)](https://goreportcard.com/report/github.com/mmalcek/bafi)\n[![License](https://img.shields.io/github/license/mmalcek/bafi)](https://github.com/mmalcek/bafi/blob/main/LICENSE)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#text-processing)\n[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/mmalcek/bafi?label=latest%20release)](https://github.com/mmalcek/bafi/releases/latest)\n\n# Universal JSON, BSON, YAML, CSV, XML, mt940 translator to ANY format using templates\n\n\u003cimg src=\"./docs/img/scheme.svg\" style=\"border: 0;\" height=\"150px\" /\u003e\n\n## Key features\n\n- Various input formats **(json, bson, yaml, csv, xml, mt940)**\n- Flexible output formatting using text templates\n- Support for [Lua](https://www.lua.org/pil/contents.html) custom functions which allows very flexible data manipulation\n- stdin/stdout support which allows get data from source -\u003e translate -\u003e delivery to destination. This allows easily translate data between different web services like **REST to SOAP, SOAP to REST, REST to CSV, ...**\n- Merge multiple input files in various formats into single output file formated using template\n- Support chatGPT queries to analyze or format data (experimental)\n\n## Documentation [https://mmalcek.github.io/bafi/](https://mmalcek.github.io/bafi/)\n\n## Releases (Windows, MAC, Linux) [https://github.com/mmalcek/bafi/releases](https://github.com/mmalcek/bafi/releases)\n\nusage:\n\n```\nbafi.exe -i testdata.xml -t template.tmpl -o output.txt\n```\n\nor\n\n```\ncurl.exe -s https://api.predic8.de/shop/customers/ | bafi.exe -f json -t \"?{{toXML .}}\"\n```\n\nor\n\n```\ncurl -s https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml | ./bafi -f xml -gk myChatGPTToken -gq \"What's the current CZK rate?\"\n```\n\nMore examples and description in [documentation](https://mmalcek.github.io/bafi/)\n\n**If you like this app you can buy me a coffe ;)**\n\n\u003ca href='https://ko-fi.com/mmalcek' target='_blank'\u003e\n\t\u003cimg height='30' style='border:0px;height:40px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\n\u003c/a\u003e\n","funding_links":["https://ko-fi.com/mmalcek'"],"categories":["Text Processing","Specific Formats","文本处理","Bot Building","Go","Template Engines"],"sub_categories":["Markup Languages","标记语言","HTTP Clients"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmalcek%2Fbafi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmalcek%2Fbafi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmalcek%2Fbafi/lists"}