{"id":24698616,"url":"https://github.com/faradayio/faraday-js","last_synced_at":"2026-03-09T12:30:52.710Z","repository":{"id":65696020,"uuid":"474146335","full_name":"faradayio/faraday-js","owner":"faradayio","description":"Typescript library to access Faraday's API infrastructure for B2C predictions","archived":false,"fork":false,"pushed_at":"2026-02-19T19:00:43.000Z","size":1903,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-19T20:53:28.519Z","etag":null,"topics":["acquisition-and-engagement","b2c","churn","churn-prediction","consumer-intelligence","lead-scoring","predictive-modeling","scoring"],"latest_commit_sha":null,"homepage":"https://faraday.ai/developers/reference","language":"TypeScript","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/faradayio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-25T19:52:48.000Z","updated_at":"2026-02-10T14:00:50.000Z","dependencies_parsed_at":"2024-01-13T01:49:32.600Z","dependency_job_id":"abbc2e24-0282-4876-a905-ecfd17392172","html_url":"https://github.com/faradayio/faraday-js","commit_stats":{"total_commits":107,"total_committers":2,"mean_commits":53.5,"dds":0.08411214953271029,"last_synced_commit":"c6400ca898710dbbdf366f6578273e221cb7d238"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/faradayio/faraday-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faradayio%2Ffaraday-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faradayio%2Ffaraday-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faradayio%2Ffaraday-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faradayio%2Ffaraday-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faradayio","download_url":"https://codeload.github.com/faradayio/faraday-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faradayio%2Ffaraday-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30295216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"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":["acquisition-and-engagement","b2c","churn","churn-prediction","consumer-intelligence","lead-scoring","predictive-modeling","scoring"],"created_at":"2025-01-27T04:29:30.373Z","updated_at":"2026-03-09T12:30:52.682Z","avatar_url":"https://github.com/faradayio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @fdy/faraday-js\n\nThis is autogenerated Typescript client library to consume the [Faraday API](https://faraday.ai/developers/reference).\n\n### Installation\n\n```\nnpm install @fdy/faraday-js --save\n```\n\n### Usage\n\nTo create a simple script, initialize a new project, install the libraries, and run using `tsx` or your preffered Typescript compiler.\n\n```\nnpm tsc --init\nnpm install @fdy/faraday-js\n\n-- if using outside of the browser\nnpm install isomorphic-fetch\n\ntouch index.ts\n\n-- populate file, and then run using\nnpx tsx ./index.ts\n```\n\nExample usage:\n\n```\nimport { Configuration, FaradayClient } from \"@fdy/faraday-js\";\nimport \"isomorphic-fetch\";\n\nconst configuration = new Configuration({\n  headers: {\n    authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\n\nconst faraday = new FaradayClient(configuration);\n\nconst testClient = async () =\u003e {\n  // Create a dataset if you do not already have one.\n\n  // Create a cohort\n  const cohort = await faraday.cohorts.createCohort({\n    name: \"Customers\",\n    stream_name: \"orders\",\n  });\n\n  // Create a persona set\n  const personaSet = await faraday.personaSets.createPersonaSet({\n    name: \"Customers\",\n    cohort_id: cohort.id,\n  });\n\n  // Create an outcome\n  const outcome = await faraday.outcomes.createOutcome({\n    attainment_cohort_id: cohort.id,\n    name: \"Likely Customers\",\n  });\n\n  // Create a scope\n  const scope = await faraday.scopes.createScope({\n    name: \"Customers Scores\",\n    preview: true,\n    population: {\n      cohort_ids: [cohort.id],\n    },\n    payload: {\n      persona_set_ids: [personaSet.id],\n    },\n  });\n};\n\ntestClient().catch((err) =\u003e console.log(err));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaradayio%2Ffaraday-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaradayio%2Ffaraday-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaradayio%2Ffaraday-js/lists"}