charmbracelet / charmbracelet/glow
Handle remote JSON without an extension.
- Dominant language
- Go
- Stars
- 27.4k
- Forks
- 764
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
I was curious to see what would happen if I called a JSON file and was pleasantly surprised that It was also nicely formatted.
For this to work a JSON extension is required.
✅ `glow https://raw.githubusercontent.com/laravel/framework/refs/heads/13.x/composer.json`
✅ `glow local.json`
⛔️ `glow https://api.domain.com/endpoint`
I know it's not "Render markdown on the CLI, with pizzazz! 💅🏻" but it would be really nice if JSON also had some style 😁
Contributor guide
Research direction
Start by tracing how Glow handles remote URLs and decides whether content is JSON or Markdown; the issue provides the commands `glow https://api.domain.com/endpoint` and `glow https://raw.githubusercontent.com/laravel/framework/refs/heads/13.x/composer.json` as examples. Done means extensionless remote JSON is formatted while local JSON and existing Markdown rendering continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100