{"id":20195283,"url":"https://github.com/sveltinio/prompti","last_synced_at":"2025-04-10T10:14:15.469Z","repository":{"id":57723330,"uuid":"527345533","full_name":"sveltinio/prompti","owner":"sveltinio","description":"Lightweight and customizable interactive prompt components for Go based CLI.","archived":false,"fork":false,"pushed_at":"2024-03-11T02:17:32.000Z","size":56,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T09:05:29.866Z","etag":null,"topics":["bubbletea","charmbracelet","cli","golang","prompts"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sveltinio.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}},"created_at":"2022-08-21T22:55:54.000Z","updated_at":"2024-12-07T16:26:44.000Z","dependencies_parsed_at":"2024-06-20T23:23:19.424Z","dependency_job_id":"bb18e93b-ee0d-4601-966f-66f362051e3f","html_url":"https://github.com/sveltinio/prompti","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.02777777777777779,"last_synced_commit":"d96cc2702323ad14edc30c81029ab2977896dd0f"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltinio%2Fprompti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltinio%2Fprompti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltinio%2Fprompti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveltinio%2Fprompti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sveltinio","download_url":"https://codeload.github.com/sveltinio/prompti/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198892,"owners_count":21063628,"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":["bubbletea","charmbracelet","cli","golang","prompts"],"created_at":"2024-11-14T04:16:39.208Z","updated_at":"2025-04-10T10:14:15.451Z","avatar_url":"https://github.com/sveltinio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cspan style=\"font-family: monospace;\"\u003eprompti\u003c/span\u003e\n\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003e\nLightweight and customizable interactive prompt components for Go based CLI.\n\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/sveltinio/prompti/blob/main/LICENSE\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-mit-blue?style=flat-square\u0026logo=none\" alt=\"license\" /\u003e\n    \u003c/a\u003e\n     \u0026nbsp;\n     \u003ca href=\"https://goreportcard.com/report/github.com/sveltinio/prompti/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://goreportcard.com/badge/github.com/sveltinio/prompti\" alt=\"go report card\" /\u003e\n    \u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"https://pkg.go.dev/github.com/sveltinio/prompti/\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://pkg.go.dev/badge/github.com/sveltinio/prompti/.svg\" alt=\"go reference\" /\u003e\n    \u003c/a\u003e\n     \u0026nbsp;\n    \u003ca href=\"https://github.com/sveltinio/prompti\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/version-v0.2.5-success?style=flat-square\u0026logo=none\" alt=\"sveltin cli version\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n**prompti** is a collection of TUI blocks initially created to be used by [sveltin](https://github.com/sveltinio/sveltin) and its use cases. We worked on it to allow customizations and make it available as standalone package. Here it is!\n\n## Install\n\nInstall the latest version by using the `go get` command. Ensure to have **(Go v1.18 or higher)** installed on your machine.\n\n```bash\ngo get github.com/sveltinio/prompti@latest\n```\n\n## Prompts\n\n### Input\n\n`input` is a terminal input prompt component supporting default values, validations (`type ValidateFunc func(string) error`), password input echo and _customizable_ styles.\n\nIt also provides ready to use validation functions for some common use cases:\n\n- alphanumeric\n- digits only\n- integers\n- floats\n- email address\n- url\n\n#### Default\n\n[Source Code](_examples/input/default/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/input/input-default.gif\" alt=\"Input example\"\u003e\n\n### Default value and validation\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/input/input-initial-value.gif\" alt=\"Input example with default value and validation\"\u003e\n\n#### Custom styles\n\n[Source Code](_examples/input/custom-styles/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/input/input-styled.gif\" alt=\"Input example with custom styles\"\u003e\n\n#### Other Examples\n\n- [Email](_examples/input/email/main.go)\n- [Password](_examples/input/password/main.go)\n\n### Choose\n\n`choose` is a customizable component for browsing a set of items.\n\n#### Default\n\n[Source Code](_examples/choose/default/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/choose/choose-default.gif\" alt=\"Choose example\"\u003e\n\n#### Custom styles\n\n[Source Code](_examples/choose/custom-styles/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/choose/choose-styled.gif\" alt=\"Choose example with custom styles\"\u003e\n\n### Confirm\n\n`confirm` is a customizable component to confirm an anction.\n\n#### Default\n\n[Source Code](_examples/confirm/default/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/confirm/confirm-default.gif\" alt=\"Confirm example\"\u003e\n\n#### Custom styles\n\n[Source Code](_examples/confirm/custom-styles/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/confirm/confirm-styled.gif\" alt=\"Confirm example with custom styles\"\u003e\n\n### Toggle\n\n`toggle` is a customizable component to confirm an anction. It works like `confirm` but it renders the options inline and not in a box.\n\n#### Default\n\n[Source Code](_examples/toggle/default/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/toggle/toggle-default.gif\" alt=\"Toggle example\"\u003e\n\n#### Custom styles\n\n[Source Code](_examples/toggle/custom-styles/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/toggle/toggle-styled.gif\" alt=\"Toggle example with custom styles\"\u003e\n\n### ProgressBar\n\n`progressbar` is a customizable component for progress meter.\n\n#### Default\n\n[Source Code](_examples/progressbar/default/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/progressbar/progressbar-default.gif\" alt=\"ProgressBar example\"\u003e\n\n#### Styled\n\n[Source Code](_examples/progressbar/custom-styles/main.go)\n\n\u003cimg src=\"https://statics.sveltin.io/github/prompti/progressbar/progressbar-styled.gif\" alt=\"ProgressBar example\"\u003e\n\n## :free: License\n\nprompti is free and open-source software licensed under the MIT License.\n\n***\nMade with [Charm](https://charm.sh).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveltinio%2Fprompti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsveltinio%2Fprompti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveltinio%2Fprompti/lists"}