{"id":17826379,"url":"https://github.com/arsham/rainbow","last_synced_at":"2025-06-10T11:34:57.049Z","repository":{"id":54979674,"uuid":"130365303","full_name":"arsham/rainbow","owner":"arsham","description":"Tasty rainbows for your terminal! (lolcat clone)","archived":false,"fork":false,"pushed_at":"2022-03-19T21:09:02.000Z","size":648,"stargazers_count":76,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T20:22:41.443Z","etag":null,"topics":["go","golang","lolcat","terminal-app"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsham.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":"2018-04-20T13:23:21.000Z","updated_at":"2024-12-04T20:19:44.000Z","dependencies_parsed_at":"2022-08-14T08:00:59.746Z","dependency_job_id":null,"html_url":"https://github.com/arsham/rainbow","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsham%2Frainbow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsham%2Frainbow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsham%2Frainbow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsham%2Frainbow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsham","download_url":"https://codeload.github.com/arsham/rainbow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsham%2Frainbow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259067603,"owners_count":22800356,"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":["go","golang","lolcat","terminal-app"],"created_at":"2024-10-27T18:45:03.856Z","updated_at":"2025-06-10T11:34:56.511Z","avatar_url":"https://github.com/arsham.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rainbow\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/arsham/rainbow)](https://pkg.go.dev/github.com/arsham/rainbow)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/arsham/rainbow)\n[![Build Status](https://github.com/arsham/rainbow/actions/workflows/go.yml/badge.svg)](https://github.com/arsham/rainbow/actions/workflows/go.yml)\n[![Coverage Status](https://codecov.io/gh/arsham/rainbow/branch/master/graph/badge.svg)](https://codecov.io/gh/arsham/rainbow)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9d181f84a8ab4ab3a07201e37d9a218b)](https://www.codacy.com/app/arsham/rainbow?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=arsham/rainbow\u0026utm_campaign=Badge_Grade)\n[![Go Report Card](https://goreportcard.com/badge/github.com/arsham/rainbow)](https://goreportcard.com/report/github.com/arsham/rainbow)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nTasty rainbows for your terminal like these:\n\n![Screenshot](/docs/rainbow.png?raw=true \"Rainbow\")\n\nThis app was inspired by lolcats, but written in Go.\n\n### Table of Contents\n\n1. [Installation](#installation)\n2. [Usage](#usage)\n3. [As library](#as-library)\n4. [See Also](#see-also)\n5. [License](#license)\n\n## Installation\n\nYou can download the latest binary from\n[here](https://github.com/arsham/rainbow/releases), or you can compile from\nsource:\n\n```bash\ngo install github.com/arsham/rainbow@latest\n```\n\n## Usage\n\nYou can pipe the text into the app in many ways. Choose one that is suitable for\nyou:\n\n```bash\n# File contents:\nrainbow \u003c filename.txt\n\n# Echo a string:\necho \"Any quotes\" | rainbow\n\n# Here string:\nrainbow \u003c\u003cEND\nConsectetur aliqua do quis sed\nproident enim fugiat occaecat nisi\nin deserunt culpa aliquip do excepteur.\nEND\n\n# Output of a program:\nls -l | rainbow\n```\n\n## As library\n\n`Light` struct implements io.Reader and io.Writer:\n\n```go\nimport \"github.com/arsham/rainbow/rainbow\"\n// ...\nl := rainbow.Light{\n    Reader: someReader, // to read from\n    Writer: os.Stdout, // to write to\n}\nl.Paint() // will rainbow everything it reads from reader to writer.\n```\n\nIf you want the rainbow to be random, you can seed it this way:\n\n```go\nl := rainbow.Light{\n    Reader: buf,\n    Writer: os.Stdout,\n    Seed:   rand.Int63n(256),\n}\n```\n\nOr if you prefer io.Copy:\n\n```go\nl := rainbow.Light{\n    Writer: os.Stdout,\n    Seed:   rand.Int63n(256),\n}\nio.Copy(l, someReader)\n```\n\n## See Also\n\nSee also [Figurine][figurine]. It prints beautiful ASCII arts in FIGlet.\n\n## License\n\nUse of this source code is governed by the Apache 2.0 license. License that can\nbe found in the [LICENSE](./LICENSE) file.\n\nPlease note that this was initially forked from [glolcat][glolcat], but I\ndecided to rewrite it as the library is not maintained anymore.\n\n[figurine]: https://github.com/arsham/figurine\n[glolcat]: https://github.com/cezarsa/glolcat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsham%2Frainbow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsham%2Frainbow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsham%2Frainbow/lists"}