{"id":28051512,"url":"https://github.com/mostlywhat/svelte-payment-inputs","last_synced_at":"2025-07-11T05:02:21.069Z","repository":{"id":289991359,"uuid":"973049077","full_name":"MostlyWhat/svelte-payment-inputs","owner":"MostlyWhat","description":"Svelte Payment Inputs is a collection of unstyled payment input components for Svelte.","archived":false,"fork":false,"pushed_at":"2025-05-09T16:41:32.000Z","size":1254,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T01:54:50.739Z","etag":null,"topics":["bits-ui","inputs","payment","svelte"],"latest_commit_sha":null,"homepage":"https://mostlywhat.github.io/svelte-payment-inputs/","language":"MDX","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/MostlyWhat.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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-26T06:29:28.000Z","updated_at":"2025-04-26T18:01:17.000Z","dependencies_parsed_at":"2025-05-12T01:54:51.754Z","dependency_job_id":"160b3a1d-75b2-470a-a0e0-ecadeec68436","html_url":"https://github.com/MostlyWhat/svelte-payment-inputs","commit_stats":null,"previous_names":["mostlywhat/svelte-payment-inputs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MostlyWhat/svelte-payment-inputs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostlyWhat%2Fsvelte-payment-inputs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostlyWhat%2Fsvelte-payment-inputs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostlyWhat%2Fsvelte-payment-inputs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostlyWhat%2Fsvelte-payment-inputs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MostlyWhat","download_url":"https://codeload.github.com/MostlyWhat/svelte-payment-inputs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostlyWhat%2Fsvelte-payment-inputs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264734249,"owners_count":23655627,"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":["bits-ui","inputs","payment","svelte"],"created_at":"2025-05-12T01:54:48.858Z","updated_at":"2025-07-11T05:02:21.016Z","avatar_url":"https://github.com/MostlyWhat.png","language":"MDX","readme":"# Svelte Payment Inputs\n\n\u003c!-- automd:badges license name=\"svelte-payment-inputs\" color=\"green\" github=\"mostlywhat/svelte-payment-inputs\" --\u003e\n\n[![npm version](https://flat.badgen.net/npm/v/svelte-payment-inputs?color=green)](https://npmjs.com/package/svelte-payment-inputs)\n[![npm downloads](https://flat.badgen.net/npm/dm/svelte-payment-inputs?color=green)](https://npmjs.com/package/svelte-payment-inputs)\n[![license](https://flat.badgen.net/github/license/mostlywhat/svelte-payment-inputs?color=green)](https://github.com/mostlywhat/svelte-payment-inputs/blob/main/LICENSE)\n\n\u003c!-- /automd --\u003e\n\nSvelte Payment Inputs is a collection of unstyled payment input components for Svelte.\n\nThis is a port of [React Payment Inputs](https://github.com/medipass/react-payment-inputs) for React, which was created by [Medipass](https://github.com/medipass).\n\n## Usage\n\nTo start using the library, install it in your project:\n\n```bash\nnpm install svelte-payment-inputs\n```\n\nUse the drawer in your app.\n\n```svelte\n\u003cscript\u003e\n\timport { Package } from \"svelte-payment-inputs\";\n\u003c/script\u003e\n\n\u003cPackage\n  name=\"Visa\"\n  number=\"4111 1111 1111 1111\"\n  expiry=\"12/23\"\n  cvc=\"123\"\n  on:change={(event) =\u003e {\n    console.log(event.detail);\n  }}\n\u003c/Package\u003e\n```\n\n## Documentation\n\nThe documentation is hosted on [GitHub Pages](https://mostlywhat.github.io/svelte-payment-inputs/).\n\n## Examples\n\nPlay around with the examples on StackBlitz:\n\n- [With scaled background](https://stackblitz.com/edit/vaul-svelte-scaled?file=src%2Froutes%2F%2Bpage.svelte)\n\n## API Reference\n\nTBD\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\nEverything inside `src/lib` is part of the library, everything inside `src/routes` is the documentation.\n\n## Building\n\nTo build the library:\n\n```bash\nnpm run package\n```\n\nTo create a production version of the documentation:\n\n```bash\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n\u003e To deploy the app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.\n\n## Publishing\n\nTo publish the library to [npm](https://www.npmjs.com):\n\n```bash\nnpm publish\n```\n\n## Testing\n\nTo run the tests, use the following command:\n\n```bash\nnpm run test\n```\n\n## Roadmap\n\nThe roadmap for the project is available in the [ROADMAP.md](ROADMAP.md) file.\n\n## Acknowledgements\n\nTBD\n\n## License\n\nThe svelte-payment-inputs is licensed under the [MIT License](LICENSE).\n\n## Contributing\n\nContributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) for more information.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostlywhat%2Fsvelte-payment-inputs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostlywhat%2Fsvelte-payment-inputs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostlywhat%2Fsvelte-payment-inputs/lists"}