{"id":30516186,"url":"https://github.com/simeg/bash-cli-spinners","last_synced_at":"2026-04-29T16:37:26.310Z","repository":{"id":311394090,"uuid":"1041584690","full_name":"simeg/bash-cli-spinners","owner":"simeg","description":"🌈 Bash/Zsh spinners for scripts and terminal","archived":false,"fork":false,"pushed_at":"2025-08-24T10:50:58.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-24T13:46:27.609Z","etag":null,"topics":["bash","cli","loader","spinner","zsh"],"latest_commit_sha":null,"homepage":"https://simeg.github.io/bash-cli-spinners/","language":"Shell","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/simeg.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,"zenodo":null}},"created_at":"2025-08-20T17:49:25.000Z","updated_at":"2025-08-24T10:59:37.000Z","dependencies_parsed_at":"2025-08-24T13:46:30.076Z","dependency_job_id":"d74f39d9-80e2-48b0-aee2-0ef4dc97d6a2","html_url":"https://github.com/simeg/bash-cli-spinners","commit_stats":null,"previous_names":["simeg/bash-cli-spinners"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/simeg/bash-cli-spinners","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeg%2Fbash-cli-spinners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeg%2Fbash-cli-spinners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeg%2Fbash-cli-spinners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeg%2Fbash-cli-spinners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simeg","download_url":"https://codeload.github.com/simeg/bash-cli-spinners/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeg%2Fbash-cli-spinners/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["bash","cli","loader","spinner","zsh"],"created_at":"2025-08-26T09:38:30.726Z","updated_at":"2026-04-29T16:37:26.305Z","avatar_url":"https://github.com/simeg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bash-cli-spinners [![CI](https://github.com/simeg/bash-cli-spinners/actions/workflows/ci.yml/badge.svg)](https://github.com/simeg/bash-cli-spinners/actions/workflows/ci.yml)\n\u003e +80 spinners for use in the terminal\n\n\u003cp align=\"center\"\u003e\n        \u003cbr\u003e\n        \u003cimg width=\"700\" src=\"assets/demo.svg\"\u003e\n        \u003cbr\u003e\n        \u003cbr\u003e\n    \u003c/p\u003e\n\nA bash/zsh cli spinner library **heavily inspired** by\n[cli-spinners](https://github.com/sindresorhus/cli-spinners).\n\n**🌐 \u003ca href=\"https://simeg.github.io/bash-cli-spinners/\" target=\"_blank\"\u003eView Live Demo of all spinners\u003c/a\u003e 🌐**\n\n## Features\n\n- **+80 spinners** from the [`cli-spinners`](https://github.com/sindresorhus/cli-spinners) package\n- **JSON-based** - Easy to extend and maintain\n- **Color support** - 14 different colors available\n- **Two modes** - Show for duration or run with command\n- **Clean output** - Proper cursor management and cleanup\n- **Web gallery** - Interactive browser interface to preview all spinners\n\n## Requirements\n\n- `bash` 4.0+\n- `jq` for JSON parsing\n- `bc` for precise timing calculations\n\nInstall requirements:\n```bash\n# macOS\nbrew install jq bc\n\n# Ubuntu/Debian\nsudo apt install jq bc\n```\n\n## Quick Start\n\n```bash\n# List all available spinners\n./spinner.sh list\n\n# Show a spinner for 5 seconds\n./spinner.sh show dots 5 \"Loading data\" blue\n\n# Run a command with a spinner\n./spinner.sh run pong \"Installing packages\" bright_green sleep 10\n```\n\n## Usage\n\n### Basic Usage\n```bash\n./spinner.sh show \u003cspinner_name\u003e \u003cduration\u003e [message] [color]\n./spinner.sh run \u003cspinner_name\u003e [message] [color] \u003ccommand\u003e\n```\n\n### Examples\n```bash\n# Simple 3-second dots spinner\n./spinner.sh show dots 3\n\n# Pong game with custom message and color\n./spinner.sh show pong 5 \"Playing pong!\" bright_green\n\n# Weather spinner while downloading\n./spinner.sh run weather \"Downloading files\" cyan curl -O https://example.com/file.zip\n\n# Material design spinner while compiling\n./spinner.sh run material \"Compiling project\" bright_blue make build\n```\n\n## Available Colors\n\n### Basic Colors\n![red](https://img.shields.io/badge/red-red?style=flat\u0026color=CD5C5C) ![green](https://img.shields.io/badge/green-green?style=flat\u0026color=228B22) ![yellow](https://img.shields.io/badge/yellow-yellow?style=flat\u0026color=DAA520) ![blue](https://img.shields.io/badge/blue-blue?style=flat\u0026color=4169E1) ![magenta](https://img.shields.io/badge/magenta-magenta?style=flat\u0026color=DA70D6) ![cyan](https://img.shields.io/badge/cyan-cyan?style=flat\u0026color=20B2AA) ![white](https://img.shields.io/badge/white-white?style=flat\u0026color=F5F5F5)\n\n### Bright Colors\n![bright_red](https://img.shields.io/badge/bright__red-bright_red?style=flat\u0026color=FF6B6B) ![bright_green](https://img.shields.io/badge/bright__green-bright_green?style=flat\u0026color=51CF66) ![bright_yellow](https://img.shields.io/badge/bright__yellow-bright_yellow?style=flat\u0026color=FFD93D) ![bright_blue](https://img.shields.io/badge/bright__blue-bright_blue?style=flat\u0026color=74C0FC) ![bright_magenta](https://img.shields.io/badge/bright__magenta-bright_magenta?style=flat\u0026color=F783AC) ![bright_cyan](https://img.shields.io/badge/bright__cyan-bright_cyan?style=flat\u0026color=66D9EF) ![bright_white](https://img.shields.io/badge/bright__white-bright_white?style=flat\u0026color=FFFFFF)\n\n## Installation\n\n### For Use in Your Own Scripts\n\nTo integrate this spinner library into your own bash/zsh scripts, you need both\ncore files:\n\n1. **Download the required files:**\n   ```bash\n   # Download spinner engine\n   curl -O https://raw.githubusercontent.com/simeg/bash-cli-spinners/main/spinner.sh\n\n   # Download spinners database\n   curl -O https://raw.githubusercontent.com/simeg/bash-cli-spinners/main/spinners.json\n   ```\n\n2. **Make spinner.sh executable:**\n   ```bash\n   chmod +x spinner.sh\n   ```\n\n3. **Use in your scripts:**\n   ```bash\n   #!/usr/bin/env bash\n   set -euo pipefail\n\n   # Bring spinner functions into *this* shell\n   source ./spinner.sh\n\n   my_function() {\n     # your real logic here\n     sleep 10\n   }\n\n   # Run a finite task with a spinner\n   run_with_spinner \"pong\" \"Installing\" \"cyan\" my_function\n\n   # Or pass a normal command directly (no function needed)\n   run_with_spinner \"dots\" \"Building assets\" \"blue\" npm run build\n   ```\n\n## Architecture\n\n### JSON Structure\n\nEach spinner in `spinners.json` follows this format:\n```json\n{\n  \"spinner_name\": {\n    \"interval\": 80,\n    \"frames\": [\"frame1\", \"frame2\", \"frame3\"]\n  }\n}\n```\n\n- `interval`: Time between frames in milliseconds\n- `frames`: Array of strings/characters to display\n\n## Related\n\n- [cli-spinners](https://github.com/sindresorhus/cli-spinners)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeg%2Fbash-cli-spinners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimeg%2Fbash-cli-spinners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeg%2Fbash-cli-spinners/lists"}