nntmux/newznab-tmux is a Laravel package for a usenet indexer.
It currently has 286 GitHub stars and 144 downloads on Packagist (latest version 4.2).
Install it with composer require nntmux/newznab-tmux.
Discover more Laravel packages by nntmux
or browse all Laravel packages to compare alternatives.
Last updated
NNTmux is a modern Usenet indexer built on Laravel, designed for high performance and scalability. It automatically scans Usenet, collects headers, and organizes them into searchable releases. The project is actively maintained and features multi-threaded processing, advanced search, and a web-based front-end with API access.
This project is a fork of newznab plus and nZEDb, with significant improvements:
| Scale | RAM | CPU | Disk | |-------|-----|-----|------| | Small (<1M releases) | 16GB | 4 cores | 100GB SSD | | Medium (1-10M releases) | 32GB | 8 cores | 250GB SSD | | Large (10M+ releases) | 64GB+ | 16+ cores | 500GB+ NVMe |
Clone the repository:
git clone https://github.com/NNTmux/newznab-tmux.git
cd newznab-tmux
Install PHP dependencies:
composer install --no-dev --optimize-autoloader
Copy and configure environment:
cp .env.example .env
php artisan key:generate
Configure your .env file (see Configuration)
Run database migrations:
php artisan migrate
Install frontend assets:
npm install
npm run build
Set permissions:
chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
For detailed installation instructions, see the Ubuntu Install Guide.
# Application
APP_NAME=NNTmux
APP_ENV=production
APP_DEBUG=false
APP_URL=https://your-domain.com
# Database
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=nntmux
DB_USERNAME=nntmux
DB_PASSWORD=your_secure_password
# Usenet Server
NNTP_SERVER=news.your-provider.com
NNTP_PORT=563
NNTP_SSLENABLED=true
NNTP_USERNAME=your_username
NNTP_PASSWORD=your_password
# API Keys (obtain from respective services)
TMDB_API_KEY=your_tmdb_key
TVDB_API_KEY=your_tvdb_key
TVMAZE_API_KEY= # Optional, no key required for basic usage
TRAKT_CLIENT_ID=your_trakt_client_id
TRAKT_CLIENT_SECRET=your_trakt_secret
OMDB_API_KEY=your_omdb_key
FANART_API_KEY=your_fanart_key
GIANTBOMB_API_KEY=your_giantbomb_key
# Search Engine (choose one)
SEARCH_ENGINE=manticore # Options: manticore, elasticsearch
MANTICORE_HOST=127.0.0.1
MANTICORE_PORT=9308
# Or for Elasticsearch:
# ELASTICSEARCH_HOST=127.0.0.1
# ELASTICSEARCH_PORT=9200
# IRC Pre Scraping (optional)
SCRAPE_IRC_SERVER=irc.synirc.net
SCRAPE_IRC_PORT=6697
SCRAPE_IRC_TLS=true
SCRAPE_IRC_USERNAME=YourUniqueNick
NNTmux uses Laravel's queue system for background processing:
QUEUE_CONNECTION=redis
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
For high-volume processing, consider using Laravel Horizon.
# Run migrations
php artisan migrate
# Seed initial data (categories, groups, etc.)
php artisan db:seed
For large-scale indexing, proper database tuning is critical. Key settings:
# /etc/mysql/mariadb.conf.d/99-nntmux.cnf
[mysqld]
innodb_buffer_pool_size = 8G # 50-70% of available RAM
innodb_log_file_size = 1G
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
query_cache_type = 0
query_cache_size = 0
max_connections = 500
tmp_table_size = 256M
max_heap_table_size = 256M
Use mysqltuner.pl for recommendations:
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl
perl mysqltuner.pl
For proper Unicode support (emojis, special characters):
php artisan nntmux:convert-collation utf8mb4_unicode_ci
NNTmux supports two full-text search engines:
# Install ManticoreSearch
wget https://repo.manticoresearch.com/manticore-repo.noarch.deb
sudo dpkg -i manticore-repo.noarch.deb
sudo apt update
sudo apt install manticore
# Configure in .env
SEARCH_ENGINE=manticore
MANTICORE_HOST=127.0.0.1
MANTICORE_PORT=9308
# Build indexes
php artisan nntmux:index-manticore
# Install Elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
sudo apt update && sudo apt install elasticsearch
# Configure in .env
SEARCH_ENGINE=elasticsearch
ELASTICSEARCH_HOST=127.0.0.1
ELASTICSEARCH_PORT=9200
# Build indexes
php artisan nntmux:index-elasticsearch
NNTmux provides numerous Artisan commands for management and maintenance.
# Start the tmux processing engine
php artisan tmux:start
# Stop tmux processing
php artisan tmux:stop
# Process releases manually
php artisan nntmux:process-releases
# Update release names
php artisan nntmux:update-releases
# Reprocess unmatched TV releases
php artisan nntmux:reprocess-tv
# Refresh TV episodes for a specific show
php artisan tv:refresh-episodes --video-id=12345
# Refresh all shows with missing seasons
php artisan tv:refresh-episodes --missing-seasons
# Search by title and refresh
php artisan tv:refresh-episodes --title="Show Name"
# Delete existing and re-fetch from specific provider
php artisan tv:refresh-episodes --video-id=12345 --provider=tmdb --delete-existing
# Dry run to preview changes
php artisan tv:refresh-episodes --missing-seasons --dry-run
# Optimize tables
php artisan nntmux:optimize-tables
# Clean old releases
php artisan nntmux:cleanup --days=365
# Purge Laravel Pulse data (if using Pulse)
php artisan pulse:purge
# Clear application caches
php artisan cache:clear
php artisan config:clear
php artisan view:clear
php artisan route:clear
# Create admin user
php artisan nntmux:create-admin
# Reset user password
php artisan nntmux:reset-password [email protected]
NNTmux can scrape IRC pre channels for early release information.
| Network | Server | Ports | SSL | |---------|--------|-------|-----| | SynIRC | irc.synirc.net | 6667, 6697, 7001 | Yes | | p2p-net | irc.p2p-net.eu | 6697, 7000 | Yes | | lillesky | irc.lillesky.org | 6667, 7000 | Yes | | Abjects | irc.abjects.net | 6667, 6697 | Yes |
SCRAPE_IRC_SERVER=irc.synirc.net
SCRAPE_IRC_PORT=6697
SCRAPE_IRC_TLS=true
SCRAPE_IRC_USERNAME=YourUniqueNickname
SCRAPE_IRC_REALNAME=Your Name
SCRAPE_IRC_CHANNELS=#PreNNTmux,#nZEDbPRE
Instead of or in addition to IRC, you can use PreDB APIs:
https://predb.ovh/api/v1/https://predb.net/api-documentation/NNTmux fetches metadata from multiple sources with fallback support.
The TV processing pipeline automatically:
If episodes aren't matching properly:
# Check what video ID a show has
php artisan tinker
>>> DB::table('videos')->where('title', 'like', '%Show Name%')->get(['id', 'title', 'tmdb']);
# Refresh episodes for that show
php artisan tv:refresh-episodes --video-id=<ID>
NNTmux provides a newznab-compatible API for integration with download clients and media managers (Sonarr, Radarr, etc.).
GET /api?t=caps # Server capabilities
GET /api?t=search&q= # Search releases
GET /api?t=tvsearch # TV search
GET /api?t=movie # Movie search
GET /api?t=music # Music search
GET /api?t=book # Book search
GET /api?t=details&id= # Release details
GET /api?t=getnzb&id= # Download NZB
Users obtain API keys from their profile page. Configure per-user rate limits in the admin panel.
For detailed API documentation, see the NNTmux API v2 Wiki.
# Start containers
./vendor/bin/sail up -d
# Run artisan commands
./vendor/bin/sail artisan migrate
# Stop containers
./vendor/bin/sail down
# Install dependencies
npm install
# Development with hot reload
npm run dev
# Production build
npm run build
# PHP formatting (Laravel Pint)
./vendor/bin/pint
# JavaScript/Vue linting
npm run lint
The repository keeps the shared agent skill baseline in skills-lock.json. The
generated Linux installer installs those skills globally under ~/.agents/skills
and bridges them into Codex under ~/.codex/skills.
Prerequisites: Bash, Node.js/npm (npx), and network access to the skill
repositories.
# Regenerate the installer after changing skills-lock.json
./scripts/generate-global-skills-installer.sh
# Preview global installs and Codex bridge changes
./scripts/install-global-skills.sh --dry-run
# Install globally and create Codex symlinks
./scripts/install-global-skills.sh
# Copy skills into Codex instead of creating symlinks
./scripts/install-global-skills.sh --copy
Set SKILLS_GLOBAL_DIR or CODEX_HOME when using non-default global
directories. The installer never removes or overwrites unmanaged existing
skill paths; resolve reported conflicts manually and rerun it.
Releases not being created:
# Check for errors in logs
tail -f storage/logs/laravel.log
# Verify NNTP connection
php artisan nntmux:test-nntp
# Check group status
php artisan tinker
>>> DB::table('usenet_groups')->where('active', 1)->count();
TV/Movie not matching:
# Reprocess specific release
php artisan nntmux:reprocess-release --id=12345
# Check API keys
php artisan nntmux:test-apis
High disk usage from Laravel Pulse:
# Check Pulse table sizes
mysql -e "SELECT table_name, ROUND(data_length/1024/1024, 2) as 'Size (MB)' FROM information_schema.tables WHERE table_schema='nntmux' AND table_name LIKE 'pulse%';"
# Purge old data
php artisan pulse:purge
Permission issues:
# Fix ownership
sudo chown -R www-data:www-data storage bootstrap/cache
# Fix permissions
sudo chmod -R 775 storage bootstrap/cache
storage/logs/laravel.logmisc/update/tmux/logs//var/log/nginx//var/log/php-fpm/We welcome contributions! Please see CONTRIBUTING.md for guidelines.
git checkout -b feature/your-featurephp artisan testNNTmux is open-source software licensed under the GPL v3. External libraries include their own licenses in their respective folders.