{"id":23030040,"url":"https://github.com/skaronator/firefly-sync","last_synced_at":"2026-07-08T12:31:24.253Z","repository":{"id":168196532,"uuid":"403435155","full_name":"Skaronator/firefly-sync","owner":"Skaronator","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-21T16:43:20.000Z","size":173,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T22:18:02.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Skaronator.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,"zenodo":null}},"created_at":"2021-09-05T23:43:15.000Z","updated_at":"2021-09-12T17:03:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbc2bdb4-e309-4750-8fec-4b79c9b49963","html_url":"https://github.com/Skaronator/firefly-sync","commit_stats":null,"previous_names":["skaronator/firefly-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Skaronator/firefly-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skaronator%2Ffirefly-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skaronator%2Ffirefly-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skaronator%2Ffirefly-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skaronator%2Ffirefly-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skaronator","download_url":"https://codeload.github.com/Skaronator/firefly-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skaronator%2Ffirefly-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281185638,"owners_count":26457790,"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-10-26T02:00:06.575Z","response_time":61,"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-12-15T14:19:17.698Z","updated_at":"2025-10-26T23:12:01.310Z","avatar_url":"https://github.com/Skaronator.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firefly-CSV-Sync\n\nHHB Sync is a tool to synchronize transactions from your bank to [Firefly III](https://www.firefly-iii.org/). It works by parsing though a CSV file, applying custom rules to prepopulate the fields of the transactions, and then uploading the transactions to Firefly III.\n\n\n## Rules\n\nRules are applied before the transactions are uploaded to Firefly III. The rules help to prepopulate the fields of the transactions. For example if you have a transaction with a reciever of \"Lidl\" and you want to prepopulate the category of the transaction category to \"Groceries\" and the destination to \"Lidl\", you can use a rule to do so.\n\nRules are stored in your config.yaml file. They look like this:\n\n```yaml\nrules:\n- match:\n    reciever: '(?i)(Lidl)'\n  data:\n    source: Bank\n    destination: Lidl\n- match:\n    iban: DE75512108001245126199\n  data:\n    source: Bank\n    destination: Rewe\n```\n\nRules have a match and a data section. The match section is used to match the transaction. There are currently 2 types of matchers:\n\n* **iban**: The transaction is matched by the IBAN of the receiver.\n* **reciever**: The transaction is matched by a regular expression.\n\nBoth matchers can be used simultaneously but the IBAN matcher take precedence.\n\n\nThe data section is used to set the fields of the transaction for Firefly III. The fields are:\n\n* **source**: The source of the transaction.\n* **destination**: The destination of the transaction.\n* **internal**: Flag to indicate if the transaction is internal, eg. from bank account to another bank account you own. (type \"transfer\" in Firefly III) (Not required)\n* **category**: Category of the transaction. (Not required)\n* **description**: Description of the transaction.  (Not required)\n\n### Rule design\n\nTo avoid write duplicated rules for spending money and recieving money the **rules are designed to always spend money**. If you recieve money the tool will automatically swap the source and destination.\n\nExample when you only recieve money from a bank account, for example your salary you can use the following rule:\n\n```yaml\nrules:\n- match:\n    iban: DE75512108001245126199\n  data:\n    source: 'Your Bankaccount'\n    destination: 'Company Name'\n```\n\nThe `source` is your own bank account and the `destination` is the company you work for. The rule will automatically swap the source and destination if you recieve money which means that `source` will be the company and `destination` will be your own bank account.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskaronator%2Ffirefly-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskaronator%2Ffirefly-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskaronator%2Ffirefly-sync/lists"}