Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: 20
node-version: 22
cache: npm

- name: Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Make Sonic feel like a real terminal product, not a code sketch. Favor changes t
- curated vibes and activity presets
- expressive terminal UI and visualizers
- switchable curated themes with a persisted default
- experimental SoundCloud search
- SoundCloud and Mixcloud search
- direct YouTube, SoundCloud, and Mixcloud link playback

## Commands

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Sonic should stay fast, readable, and fun. Favor improvements that make the CLI

## Local Setup

1. Install Node.js 20+
1. Install Node.js 22+
2. Install `yt-dlp` and `mpv`
3. Install dependencies

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/node-%3E%3D20-green?style=flat-square&logo=node.js" alt="Node">
<img src="https://img.shields.io/badge/node-%3E%3D22-green?style=flat-square&logo=node.js" alt="Node">
<img src="https://img.shields.io/badge/license-MIT-yellow?style=flat-square" alt="License">
<img src="https://img.shields.io/badge/sources-3-purple?style=flat-square" alt="Sources">
</p>
Expand All @@ -27,7 +27,7 @@ curl -fsSL https://raw.githubusercontent.com/sethmills21/sonic/main/install.sh |
<summary><strong>npm</strong></summary>

```bash
npm install -g sonic-cli
npm install -g github:sethmills21/SONIC
sonic "lofi"
```
</details>
Expand Down Expand Up @@ -58,6 +58,7 @@ sonic # open the picker
sonic "deep house" # search and play
sonic --soundcloud "liquid dnb" # search SoundCloud
sonic --mixcloud "techno mix" # search Mixcloud
sonic "https://youtu.be/..." # play a link (quote it)
sonic doctor # check setup
sonic --help # full help
```
Expand Down Expand Up @@ -100,7 +101,7 @@ YouTube, SoundCloud, and Mixcloud. All use `mpv` for playback and require no aut

## Requirements

**Node.js** 20+ &nbsp;&middot;&nbsp; **yt-dlp** &nbsp;&middot;&nbsp; **mpv** &nbsp;&middot;&nbsp; macOS or Linux
**Node.js** 22+ &nbsp;&middot;&nbsp; **yt-dlp** &nbsp;&middot;&nbsp; **mpv** &nbsp;&middot;&nbsp; macOS or Linux

## Contributing

Expand All @@ -113,7 +114,7 @@ MIT
---

<p align="center">
Cooked up by <a href="https://github.com/sethmills21">Seth Miller</a> and <a href="https://claude.ai/code">Claude Code</a>
Cooked up by <a href="https://github.com/sethmills21">Seth Mills</a> and <a href="https://claude.ai/code">Claude Code</a>
</p>

<p align="center">
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ fi
info "Checking Node.js..."
if command -v node &>/dev/null; then
NODE_VERSION=$(node -v | sed 's/v//' | cut -d. -f1)
if [[ "$NODE_VERSION" -ge 20 ]]; then
if [[ "$NODE_VERSION" -ge 22 ]]; then
ok "Node.js $(node -v)"
else
fail "Node.js 20+ required (found $(node -v)). Update at https://nodejs.org"
fail "Node.js 22+ required (found $(node -v)). Update at https://nodejs.org"
fi
else
fail "Node.js not found. Install 20+ from https://nodejs.org"
fail "Node.js not found. Install 22+ from https://nodejs.org"
fi

# --- Check / install yt-dlp ---
Expand Down
16 changes: 8 additions & 8 deletions lib/channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const CHANNELS = [
name: 'dubstep',
icon: '\u{1F525}',
desc: 'heavy, hard, filthy',
query: 'heavy dubstep mix 2024 filthy drops 1 hour',
query: 'heavy dubstep mix filthy drops 1 hour',
},
{
key: '6',
Expand Down Expand Up @@ -122,10 +122,10 @@ export const ACTIVITIES = [
icon: '\u{1F525}',
desc: 'high energy, heavy',
queries: [
'heavy dubstep mix 2024 filthy drops 1 hour',
'hard dubstep workout mix 2024',
'heavy dubstep mix filthy drops 1 hour',
'hard dubstep workout mix',
'drum and bass gym mix high energy 1 hour',
'techno workout mix 2024 hard',
'techno workout mix hard',
],
},
{
Expand All @@ -146,10 +146,10 @@ export const ACTIVITIES = [
icon: '\u{1F373}',
desc: 'groovy, upbeat, fun',
queries: [
'amapiano mix 2024 upbeat groovy',
'amapiano mix upbeat groovy',
'disco house mix feel good 1 hour',
'funk soul groovy cooking mix 2 hours',
'afrobeats mix 2024 upbeat vibes',
'afrobeats mix upbeat vibes',
],
},
{
Expand All @@ -171,9 +171,9 @@ export const ACTIVITIES = [
desc: 'upbeat, keep moving',
queries: [
'upbeat house cleaning mix 1 hour',
'pop dance mix 2024 energy',
'pop dance mix energy',
'disco funk cleaning playlist 1 hour',
'afrobeats dance mix 2024',
'afrobeats dance mix',
],
},
];
Expand Down
2 changes: 1 addition & 1 deletion lib/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Links:
list= falls back to the single linked track.

Requirements:
- Node.js 20+
- Node.js 22+
- yt-dlp
- mpv

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"README.md",
"CONTRIBUTING.md",
"SECURITY.md",
"CLAUDE.md",
"AGENTS.md"
],
"scripts": {
Expand All @@ -24,7 +23,7 @@
"doctor": "node ./bin/sonic.js doctor"
},
"engines": {
"node": ">=20"
"node": ">=22"
},
"repository": {
"type": "git",
Expand All @@ -48,6 +47,6 @@
"visualizer"
],
"dependencies": {
"chalk": "^5.4.1"
"chalk": "^6.0.1"
}
}
Loading