{"id":19558289,"url":"https://github.com/sbimochan/har-diff","last_synced_at":"2026-02-15T01:33:00.826Z","repository":{"id":232837968,"uuid":"785315462","full_name":"sbimochan/har-diff","owner":"sbimochan","description":"Generate data differences from HTTP archive files","archived":false,"fork":false,"pushed_at":"2025-03-03T17:35:48.000Z","size":89,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T21:13:40.755Z","etag":null,"topics":["frogtoberfest","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sbimochan.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":"2024-04-11T16:30:50.000Z","updated_at":"2025-03-03T17:35:52.000Z","dependencies_parsed_at":"2024-05-05T13:46:29.314Z","dependency_job_id":"be00d79f-c021-46bd-96c1-2d0f062b19e7","html_url":"https://github.com/sbimochan/har-diff","commit_stats":null,"previous_names":["sbimochan/har-diff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sbimochan/har-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbimochan%2Fhar-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbimochan%2Fhar-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbimochan%2Fhar-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbimochan%2Fhar-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbimochan","download_url":"https://codeload.github.com/sbimochan/har-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbimochan%2Fhar-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29464134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"ssl_error","status_checked_at":"2026-02-15T01:01:23.809Z","response_time":53,"last_error":"SSL_read: 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":["frogtoberfest","hacktoberfest"],"created_at":"2024-11-11T04:46:42.444Z","updated_at":"2026-02-15T01:33:00.797Z","avatar_url":"https://github.com/sbimochan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Response Validator Tool\n\n## Overview\n\nThe API Response Validator Tool is a command-line utility designed to facilitate comparing API responses between two versions of your backend infrastructure. It helps ensure that the changes made in the database infrastructure do not inadvertently affect the API responses. The tool generates and compares mock API responses, providing insights into any discrepancies between the versions of HTTP Archive (HAR).\n\n## Application\n\nIf you're migrating your database engine and want to assure that beside any dialects or database engines you want the data response to be exact same, you can use this tool. No need to tally all the data manually. Spin off two frontend apps using two different database engines (old and new). Open them in two browser tabs, Fire up your network tab, navigate to all the features you want to test. Download HAR(Http Archive) files from each tab naming source.har and target.har. Next steps below.\n\n## Installation\n\nTo install the API Response Validator Tool, follow these steps:\n\n1. Clone this repository to your local machine.\n2. Install the necessary dependencies by running `npm install`.\n3. Ensure that you have Node.js and git installed on your machine.\n4. Install `har-to-mocks`\n\n```bash\nnpm install -g @sbimochan/har-to-mocks\n```\n\n## Usage\n\n### Generating Mock API Responses\n\nBefore comparing the API responses, you need to generate mock responses . Follow these steps:\n\n1. Ensure that you have the necessary configuration files for the source and target versions (e.g., `source.har` and `target.har`).\n2. Download and put the HAR file over here between two versions of app. Check youtube video how to export HAR from network tab\n\n### Comparing API Responses\n\nOnce the mock API responses are generated, you can compare them to identify any differences. Follow these steps:\n\n1. Run the following command to compare the API responses:\n\n   ```\n   npm run diff\n   ```\n\n   This command will compare the mock responses generated for the source and target versions. Any differences in the responses will be highlighted, providing insights into the impact of database infrastructure changes on API responses.\n\n### Viewing Differences in VS Code\n\nTo view the differences in the API responses directly in VS Code's source control:\n\n1. Ensure that you have the Git extension installed in VS Code.\n2. After running the comparison command, open the VS Code source control view.\n3. You should see the changes in the `source` and `target` folders, indicating the differences between the API responses of the two versions.\n\n### Final step\n\nAfter being satisfied with the result, hit\n\n```\nnpm run flush\n```\n\n## Contributing\n\nContributions to the API Response Validator Tool are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on GitHub.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbimochan%2Fhar-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbimochan%2Fhar-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbimochan%2Fhar-diff/lists"}