{"id":15354933,"url":"https://github.com/capaj/proxy-recorder","last_synced_at":"2025-04-15T06:20:42.391Z","repository":{"id":27400407,"uuid":"30876859","full_name":"capaj/proxy-recorder","owner":"capaj","description":"proxy with recording capabilities for easy mocking of 3rd party APIs ","archived":false,"fork":false,"pushed_at":"2017-02-25T20:20:28.000Z","size":22,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:01:45.802Z","etag":null,"topics":["javascript","proxy","proxy-recorder"],"latest_commit_sha":null,"homepage":null,"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/capaj.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}},"created_at":"2015-02-16T16:28:24.000Z","updated_at":"2018-04-14T11:59:43.000Z","dependencies_parsed_at":"2022-07-18T12:48:13.163Z","dependency_job_id":null,"html_url":"https://github.com/capaj/proxy-recorder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fproxy-recorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fproxy-recorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fproxy-recorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fproxy-recorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capaj","download_url":"https://codeload.github.com/capaj/proxy-recorder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670508,"owners_count":21142897,"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":["javascript","proxy","proxy-recorder"],"created_at":"2024-10-01T12:21:43.658Z","updated_at":"2025-04-15T06:20:42.375Z","avatar_url":"https://github.com/capaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proxy-recorder\nproxy with recording capabilities for easy mocking of 3rd party APIs.\n\n## install\n```\nnpm i proxy-recorder --save-dev\n```\nDefault directory where jsons of responses are stored is relative directory test/fixtures/\n\n##API\nexposes just two methods so far:\n```javascript\nconst proxyR = require('proxy-recorder')\nconst opts = {port: 8100, target: 'https://api.github.com'}\n\nproxyR.rec(opts);\t//fires up a proxy to github which records any response going trough\n//and then for testing\nproxyR.mock(opts)\t// recorded message is retrieved from filesystem based on url and body of the message and mocked server sends the fixture back\n```\n\n##Other projects\n### [connect-prism](https://github.com/seglo/connect-prism)\nI tried using this project for mocking github api and it was not possible, so I discarded this project as a viable solution for me.\nOtherwise it has the same goals and much bigger history, so it might be worth looking at.\n###How does this differ from [node-replay](https://github.com/assaf/node-replay)?\nNode replay can store mocks inside node, but doesn't help you when you need an API mock as separate node instance \nrunning side by side your single page app.\nProxy recorder was made out of a need specificaly to mock Github API for E2E tests of frontend app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fproxy-recorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapaj%2Fproxy-recorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fproxy-recorder/lists"}