Skip to content
pawjectsPublic

About

A privacy-first, ad-free music streaming PWA with an AMOLED Spotify theme and local playlist management.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

141 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pawtify 🎡

A privacy-first, ad-free music streaming Progressive Web App with an AMOLED dark aesthetic, Spotify-inspired layout, and local playlist management.

License: MIT PWA Ready PRs Welcome


🌟 Highlights

  • 🚫 Privacy-First & Tracker-Free: No analytics, no telemetry, no cookies, no tracking. All favorites, custom playlists, listening history, and preferences stay 100% locally on your device via localStorage and IndexedDB.
  • πŸŒ™ AMOLED Black & Spotify-Inspired Theme: Deep pitch-black surfaces with subtle atmospheric emerald glow, high-contrast readable typography, and smooth transitions designed for OLED battery savings.
  • ⚑ Native Feel: Blocked unwanted text highlighting and image drag-ghosting while maintaining instant touch response, native gestures, smooth scrolling, and accessible inputs.
  • πŸ“± Installable Progressive Web App (PWA): Install to Android, iOS, Windows, macOS, or ChromeOS with custom icons, theme colors, and offline static asset caching via Service Workers.
  • 🎧 Background Playback & Media Session: Lock screen controls, notification playback controls, artwork display, and hardware media key support.
  • πŸ” Global Discovery & Curation: Search millions of tracks, official artist profiles, and playlists powered by lightweight, direct search endpoints.
  • πŸ—‚οΈ Complete Library Management: Custom playlists, Liked Songs, Recently Played history, queue reordering, and one-click JSON backup export/import.
  • βš™οΈ Native-Grade Settings Menu: Categorized configuration for Account/Profile, Appearance, Playback, Downloads/Storage, Privacy & Data, App Settings, and About.

πŸš€ Quick Start

Prerequisites

  • Node.js v18 or later
  • npm v9 or later (or yarn / pnpm / bun)

Installation

  1. Clone the repository:

    git clone https://github.com/pawjects/Pawtify.git
    cd Pawtify
  2. Install dependencies:

    npm install
  3. Configure Environment (Optional):

    cp .env.example .env
  4. Start the development server:

    npm run dev
  5. Open your browser and navigate to:

    http://localhost:3000
    

πŸ’» Pawtify CLI (Terminal Client)

Prefer listening right from your terminal? Pawtify CLI brings the same privacy-first, AMOLED dark experience to Termux (Android), Linux, macOS, and Windowsβ€”powered by Textual, mpv, and yt-dlp.

Key Features

  • πŸ–€ AMOLED Textual TUI: Distraction-free dark terminal interface with Home, Search, Library, Settings, Mini-Player, and Fullscreen Player views.
  • πŸ–ΌοΈ ANSI Half-Block Album Art: Crisp in-terminal cover art rendered with true-color Unicode half-blocks (Pillow).
  • 🎀 Synced Lyrics (LRCLIB): Live time-synced lyrics directly inside the fullscreen player view.
  • 〰️ Wavy Seek Scrubber: Animated interactive playback bar with click-to-seek, speed control, shuffle, repeat, and volume slider.
  • πŸ’Ύ Local Library & Backups: Privacy-first local persistence in ~/.pawtify/ (library.json and timestamped JSON exports in ~/.pawtify/backups/).

Quick Install (Termux / Linux / macOS)

curl -fsSL https://raw.githubusercontent.com/pawjects/Pawtify/main/cli/install.sh | bash

Once installed, launch Pawtify from any directory with pawtify. For manual setup, Windows (PowerShell) instructions, and keyboard shortcuts, see cli/setup_guide.md.


πŸ› οΈ Scripts & Commands

Command Purpose
npm start Starts the Express server in production mode on the configured $PORT (default: 3000)
npm run dev Starts the server for local development
npm run build Builds/verifies static assets for production deployment
npm run lint Syntax checks all server scripts and client JavaScript modules
npm run format Formats code with Prettier

🌐 Deployment

Deploy to Vercel

Pawtify is pre-configured for seamless zero-config deployment on Vercel using the included vercel.json:

  1. Fork or push your repository to GitHub.
  2. Import the repository into your Vercel Dashboard.
  3. Keep the default settings (Framework preset: Other).
  4. Deploy!

Deploy via Docker / Container

FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 3000
CMD ["npm", "start"]

πŸ“ Project Architecture

Pawtify/
β”œβ”€β”€ cli/                        # Terminal music client (Python / Textual)
β”‚   β”œβ”€β”€ install.sh              # One-line cross-platform CLI installer
β”‚   β”œβ”€β”€ pawtify.py              # Textual TUI, mpv IPC player & LRCLIB lyrics
β”‚   β”œβ”€β”€ requirements.txt        # Python dependencies for Pawtify CLI
β”‚   └── setup_guide.md          # Platform setup instructions & keybindings
β”œβ”€β”€ client/                     # Frontend client (Vanilla ES6 Modules)
β”‚   β”œβ”€β”€ assets/                 # High-resolution logos, PWA icons, masks
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/         # UI view modules (home, library, you, playerBar, etc.)
β”‚   β”‚   β”œβ”€β”€ config/             # App configuration, routing, DOM elements
β”‚   β”‚   β”œβ”€β”€ core/               # State sync, event bus, playlist normalization
β”‚   β”‚   β”œβ”€β”€ services/           # Search, YouTube audio engine, data loaders
β”‚   β”‚   └── utils/              # IndexedDB helpers, sanitization, formatters
β”‚   β”œβ”€β”€ index.html              # Single-page application entry point
β”‚   β”œβ”€β”€ manifest.json           # Progressive Web App manifest
β”‚   β”œβ”€β”€ sw.js                   # Service Worker cache controller
β”‚   └── styles.css              # Unified AMOLED & Spotify-inspired design system
β”œβ”€β”€ server/                     # Backend API proxy
β”‚   β”œβ”€β”€ api/                    # Route handlers (search, metadata, suggestions)
β”‚   └── index.js                # Express static server & API proxy
β”œβ”€β”€ .env.example                # Sample environment configuration
β”œβ”€β”€ .gitignore                  # Git ignore rules for public repository
β”œβ”€β”€ package.json                # Project dependencies and script definitions
β”œβ”€β”€ vercel.json                 # Vercel serverless deployment specification
└── README.md                   # Project documentation

πŸ”’ Privacy & Security

Pawtify does not include third-party trackers, analytics pixels, advertising scripts, or centralized databases. All user state (playlists, favorites, settings, history) remains exclusively on the client machine. To transfer or back up your music library across devices, use the built-in Export JSON and Import File tools inside You β†’ Settings β†’ Privacy & Data.


🀝 Contributing

Contributions, feedback, and bug reports are warmly welcome!

  • Check existing issues or open a new one before submitting major changes.
  • Ensure your changes pass npm run lint and maintain responsive layouts down to 320px screens.
  • Adhere to the clean vanilla architecture (no intrusive framework dependencies).

πŸ“„ License

This project is licensed under the MIT License.

About

A privacy-first, ad-free music streaming PWA with an AMOLED Spotify theme and local playlist management.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages