{"id":27934797,"url":"https://github.com/reliverse/rempts","last_synced_at":"2025-05-07T06:05:22.340Z","repository":{"id":261479499,"uuid":"882878261","full_name":"reliverse/rempts","owner":"reliverse","description":"🏗️ The CLI prompt library you didn’t realize you’ve been desperate for. It’s blazing-fast, type-safe, and has built-in crash resilience—so your command-line app can look slick without bursting into flames. Forget boilerplate-heavy setups—this library makes CLI development smooth and effortless.","archived":false,"fork":false,"pushed_at":"2025-04-02T13:18:36.000Z","size":17324,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-07T06:05:17.001Z","etag":null,"topics":["blefnk","javascript","js-lib","js-library","library","npm-package","prompts","reliverse"],"latest_commit_sha":null,"homepage":"https://docs.reliverse.org","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/reliverse.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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T00:57:36.000Z","updated_at":"2025-05-03T21:43:11.000Z","dependencies_parsed_at":"2024-11-06T19:44:12.303Z","dependency_job_id":"19fbab75-64fc-43e6-ac04-264a41c64068","html_url":"https://github.com/reliverse/rempts","commit_stats":null,"previous_names":["reliverse/prompts","reliverse/relinka","reliverse/terminal-prompts","reliverse/rempts-terminal-prompts"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliverse%2Frempts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliverse%2Frempts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliverse%2Frempts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reliverse%2Frempts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reliverse","download_url":"https://codeload.github.com/reliverse/rempts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823918,"owners_count":21809713,"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":["blefnk","javascript","js-lib","js-library","library","npm-package","prompts","reliverse"],"created_at":"2025-05-07T06:05:21.600Z","updated_at":"2025-05-07T06:05:22.326Z","avatar_url":"https://github.com/reliverse.png","language":"TypeScript","funding_links":["https://github.com/sponsors/blefnk"],"categories":[],"sub_categories":[],"readme":"# @reliverse/prompts\n\n[💖 GitHub Sponsors](https://github.com/sponsors/blefnk) • [💬 Discord](https://discord.gg/3GawfWfAPe) • [📦 NPM](https://npmjs.com/package/@reliverse/prompts) • [📚 Docs](https://docs.reliverse.org/reliverse/prompts) • [✨ GitHub](https://github.com/reliverse/prompts)\n\n**@reliverse/prompts** is your modern, type-safe toolkit for building delightful CLI experiences. It's fast, flexible, and built with developer joy in mind. Forget the clutter — this is how CLI should feel.\n\n## ⚡ Why It Rocks\n\n- ✨ **TypeScript-first** — fully typed prompts and helpers, with great DX\n- 🔧 **Flexible Prompt Types** — input, password, select, multiselect, confirm, toggle, number, spinner, and more\n- 🧠 **Smart validation** — works with Zod, TypeBox, or your own validators\n- 🌈 **Accessible \u0026 Adaptive** — meets WCAG AA, handles terminal resizing \u0026 color contrast\n- 🧯 **Crash-resistant** — gracefully exits on Ctrl+C or unexpected input\n- 🎨 **Custom theming** — make it match your CLI style\n- 🚀 **Zero boilerplate** — focus on the logic, not the wiring\n\n## 🛠️ Install\n\n```bash\nbun add @reliverse/prompts\n# or npm, pnpm, yarn\n```\n\nMake sure you have [Bun](https://bun.sh), [Node.js](https://nodejs.org), and [Git](https://git-scm.com/downloads) installed.\n\n## 🧪 Try It Out (Playground Mode)\n\nWanna test drive before integrating? Clone the repo and run:\n\n```bash\ngit clone https://github.com/reliverse/prompts.git\ncd prompts\nbun i\nbun dev\n```\n\nThen open `examples/launcher.ts` and explore different prompts.\n\n![example](./examples/main.png)\n\n## 🧩 Example Usage\n\n```ts\nimport {\n  startPrompt, // Initialize prompt session (optional)\n  inputPrompt, // Ask for user input\n} from \"@reliverse/prompts\";\n\nawait startPrompt({\n  clearConsole: true,\n  titleColor: \"inverse\",\n  packageName: \"@reliverse/cli\",\n  packageVersion: \"1.0.0\",\n});\n\nconst username = await inputPrompt({\n  id: \"username\",\n  title: \"Welcome!\",\n  content: \"What's your name?\",\n});\n\nconsole.log(`Hey there, ${username}!`);\n```\n\n\u003e 🔎 You can also use `selectPrompt`, `multiselectPrompt`, `confirmPrompt`, `numberPrompt`, `spinnerPrompt`, and more.\n\n## 🧠 Bonus Goodies\n\n- ⚙️ **Built-in argument parsing** — parse CLI args without a separate lib\n- 🧪 **Unit-test friendly** — prompts can be mocked/stubbed\n- 📚 **Minimal API surface** — easy to learn, hard to outgrow\n- 💅 **Custom styles** — tweak colors, formats, and transitions\n\n## 🔍 Why not Inquirer or Clack?\n\nWhile we love other tools, `@reliverse/prompts` was built for:\n\n- Dev-first ergonomics\n- Fully typed workflows\n- Configurable theming\n- Better crash handling \u0026 UX polish\n\n[See feature comparison →](https://docs.reliverse.org/reliverse/prompts/#prompts-library-comparison)\n\n## 💡 Contributing\n\nWanna improve prompts or add something cool? PRs welcome!  \nThis project favors functional programming over OOP — no classes, just clean, composable logic.\n\nOpen a PR or discussion on [GitHub](https://github.com/reliverse/prompts).\n\n## 🙏 Shoutout\n\nThis wouldn't exist without these gems:\n\n- [sboudrias/inquirer.js](https://github.com/sboudrias/inquirer.js)\n- [unjs/citty](https://github.com/unjs/citty)\n- [lukeed/mri](https://github.com/lukeed/mri)\n\n## 📄 License\n\n💖 MIT © 2025 [blefnk Nazar Kornienko](https://github.com/blefnk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freliverse%2Frempts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freliverse%2Frempts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freliverse%2Frempts/lists"}