{"id":26529022,"url":"https://github.com/faustienf/request-stripe","last_synced_at":"2025-06-28T20:01:49.831Z","repository":{"id":50704627,"uuid":"519197783","full_name":"faustienf/request-stripe","owner":"faustienf","description":"🌈 A progress bar of your request","archived":false,"fork":false,"pushed_at":"2022-08-06T21:53:53.000Z","size":700,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T04:56:52.218Z","etag":null,"topics":["loading","loading-indicator","progress","progress-bar","request-loading","request-process","stripe","typescript","vanilla-javascript","youtube-like-loading-bar"],"latest_commit_sha":null,"homepage":"https://request-stripe.vercel.app","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/faustienf.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":"2022-07-29T11:56:56.000Z","updated_at":"2023-09-05T00:09:05.000Z","dependencies_parsed_at":"2022-08-12T22:02:14.052Z","dependency_job_id":null,"html_url":"https://github.com/faustienf/request-stripe","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Frequest-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Frequest-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Frequest-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Frequest-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faustienf","download_url":"https://codeload.github.com/faustienf/request-stripe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825652,"owners_count":20516592,"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":["loading","loading-indicator","progress","progress-bar","request-loading","request-process","stripe","typescript","vanilla-javascript","youtube-like-loading-bar"],"created_at":"2025-03-21T16:20:17.761Z","updated_at":"2025-03-21T16:20:18.729Z","avatar_url":"https://github.com/faustienf.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/faustienf/request-stripe/main/assets/header.png\" width=\"80%\"\u003e\n\u003c/p\u003e\n\n[![npm-version](https://img.shields.io/npm/v/request-stripe.svg)](https://npmjs.org/package/request-stripe)\n\n# request-stripe\n\n🌈 The tiny library for rendering a progress bar on top your screen.\n\n## Features\n\n- 📦 Zero dependencies\n- 🕯 Framework agnostic, using vanila API\n- 🗜 Less [3 KB](https://bundlephobia.com/package/request-stripe)\n- 🔨 Tiny API\n- ⚙️ Customize render and styles\n- 🧲 Autocombine requests\n\n## Getting Started\n\n```sh\nnpm install request-stripe\n```\n\n```js\nimport { requestStripe } from 'request-stripe';\n\nfetch().finally(requestStripe());\n// or\nconst done = requestStripe();\nfetch().finally(() =\u003e {\n  done();\n});\n```\n\n## Customization\n\n### Styles via `.request-stripe-custom`\n\n```css\n.request-stripe-custom {\n  color: #e11d48;\n  animation-name: custom-process, custom-finish;\n  animation-...\n}\n\n.request-stripe-custom[data-state='process'] {\n  animation-play-state: running, paused;\n}\n\n.request-stripe-custom[data-state='finish'] {\n  animation-play-state: paused, running;\n}\n\n@keyframes custom-process {\n  ...\n}\n\n@keyframes custom-finish {\n  ...\n}\n```\n\n### Render\n\n```ts\nimport { Render, requestStripe } from 'request-stripe';\n\n// Write a render function\nconst customRender: Render = () =\u003e {\n  const customElement = document.createElement('div');\n  document.body.appendChild(customElement);\n\n  return () =\u003e {\n    document.body.removeChild(stripeElement);\n  };\n};\n\n// Pass the function\nconst done = requestStripe(customRender);\nfetch().finally(done);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustienf%2Frequest-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaustienf%2Frequest-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustienf%2Frequest-stripe/lists"}