{"id":28909247,"url":"https://github.com/stripe/connect-js","last_synced_at":"2026-04-25T01:01:42.778Z","repository":{"id":161184256,"uuid":"617194164","full_name":"stripe/connect-js","owner":"stripe","description":"Loading wrapper for Connect.js","archived":false,"fork":false,"pushed_at":"2026-01-13T22:27:43.000Z","size":729,"stargazers_count":33,"open_issues_count":11,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-13T22:29:23.711Z","etag":null,"topics":["connectjs","stripe"],"latest_commit_sha":null,"homepage":"https://stripe.com/docs/connect/get-started-connect-embedded-components","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/stripe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2023-03-21T22:05:47.000Z","updated_at":"2026-01-13T22:27:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3a18733-fd02-452e-a356-80f9db62053a","html_url":"https://github.com/stripe/connect-js","commit_stats":{"total_commits":60,"total_committers":13,"mean_commits":4.615384615384615,"dds":0.7333333333333334,"last_synced_commit":"5ef87bac3fc78541e1cd16de0efba84c40b1bdc4"},"previous_names":[],"tags_count":117,"template":false,"template_full_name":null,"purl":"pkg:github/stripe/connect-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fconnect-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fconnect-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fconnect-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fconnect-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stripe","download_url":"https://codeload.github.com/stripe/connect-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stripe%2Fconnect-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["connectjs","stripe"],"created_at":"2025-06-21T17:08:18.391Z","updated_at":"2026-01-27T21:23:25.784Z","avatar_url":"https://github.com/stripe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect.js ES Module\n\nThe [Connect.js library](https://stripe.com/docs/connect/get-started-connect-embedded-components) and its supporting API allows you to add connected account dashboard functionality to your website.\nThis NPM package contains initialization logic for Connect embedded components along with related types.\n\nCalling `loadConnectAndInitialize` always loads the latest version of Connect.js, regardless of which version of `@stripe/connect-js` you use. Updates for this package only impact tooling around the `loadConnectAndInitialize` helper itself and the TypeScript type definitions provided for Connect.js. Updates do not affect runtime availability of features of Connect.js.\n\nThe embedded onboarding component is generally available now. Please refer to our [documentation](https://stripe.com/docs/connect/supported-embedded-components#account-onboarding) for more information.\n\nNote: Some Connect embedded components are currently still in preview. These can be [viewed on our doc site](https://docs.stripe.com/connect/supported-embedded-components), where you can also request preview access.\n\n## Installation\n\nUse `npm` to install the Connect.js module:\n\n```sh\nnpm install @stripe/connect-js\n```\n\n## Documentation\n\n- [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)\n- [Quickstart guide](https://stripe.com/docs/connect/connect-embedded-components/quickstart)\n\n## Usage\n\n### `loadConnectAndInitialize`\n\nThis synchronous function takes in a publishable key, a function to retrieve the client secret returned from the [Account Session API](https://stripe.com/docs/api/account_sessions/create), and other [initialization parameters](https://stripe.com/docs/connect/get-started-connect-embedded-components#configuring-connect-js). It returns a `StripeConnectInstance`. If necessary, it will load Connect.js for you by inserting the Connect.js script tag.\n\n```js\nimport { loadConnectAndInitialize } from \"@stripe/connect-js\";\nconst fetchClientSecret = async () =\u003e {\n  // Fetch the AccountSession client secret by making an API call to your service\n};\n\nconst instance = loadConnectAndInitialize({\n  publishableKey: \"{{pk test123}}\",\n  fetchClientSecret: fetchClientSecret,\n});\n```\n\nWe’ve placed a random API key in this example. Replace it with your\n[actual publishable API keys](https://dashboard.stripe.com/account/apikeys) to\ntest this code through your Connect account.\n\nIf you have deployed a\n[Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP),\nmake sure to\n[include Connect.js in your directives](https://stripe.com/docs/connect/get-started-connect-embedded-components?platform=web#csp-and-http-header-requirements).\n\n### Import as a side effect\n\nImport `@stripe/connect-js` as a side effect in code that will be included\nthroughout your site (e.g. your root module). This will make sure the Connect.js\nscript tag is inserted immediately upon page load.\n\n```js\nimport \"@stripe/connect-js\";\n```\n\n### Importing `loadConnectAndInitialize` without side effects\n\nIf you would like to use `loadConnectAndInitialize` in your application, but defer loading the\nConnect.js script until `loadConnectAndInitialize` is first called, use the alternative\n`@stripe/connect-js/pure` import path:\n\n```js\nimport { loadConnectAndInitialize } from \"@stripe/connect-js/pure\";\n\n// Connect.js will not be loaded until `loadConnect` is called\nconst instance = loadConnectAndInitialize({\n  publishableKey: \"{{pk test123}}\",\n  fetchClientSecret: fetchClientSecret,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripe%2Fconnect-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstripe%2Fconnect-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstripe%2Fconnect-js/lists"}