NextInject

Pattern-based element injection for NextCloud file management. Automatically add visual badges to files based on configurable filename patterns.

Pattern Matching in Action

invoice_RE_2024.pdf Invoice
offer_AN_client.pdf Offer
delivery_LI_order.pdf Delivery
reminder_MA_urgent.pdf Reminder

Core Features

Everything you need for intelligent file organization and visual management in NextCloud.

Pattern Matching

Define custom filename patterns that automatically trigger visual badges. Supports regex and simple text matching.

🎨

Custom Templates

Create HTML templates with CSS styling. Full control over appearance and behavior of injected elements.

⚙️

User Configuration

Intuitive settings panel for managing patterns, templates, and injection rules. No coding required.

📡

Real-time Injection

Elements are injected dynamically as you browse. Works with lazy loading and infinite scroll.

🔧

Debug Interface

Built-in debugging tools accessible via browser console. Monitor injection stats and troubleshoot issues.

🔌

API Integration

RESTful endpoints for programmatic configuration. Integrate with external tools and automation scripts.

Technical Stack

Built with modern web technologies for reliability and performance.

Frontend

Vanilla JavaScript, CSS3, MutationObserver API

Backend

PHP 7.4+, NextCloud App Framework

API

RESTful JSON endpoints, CSRF protection

Storage

NextCloud user preferences, JSON configuration

Installation

Get NextInject running on your NextCloud instance in minutes.

Requirements

  • NextCloud 25 or higher
  • PHP 7.4 or higher
  • Web browser with JavaScript enabled
  • Write permissions to NextCloud apps directory

Quick Install

# Navigate to NextCloud apps directory
cd /var/www/nextcloud/apps/

# Clone repository
git clone https://github.com/Yxanu/nextinject.git elementinjector

# Set permissions
chown -R www-data:www-data elementinjector/

# Enable app
sudo -u www-data php occ app:enable elementinjector

Verification

# Check app status
sudo -u www-data php occ app:list | grep elementinjector

# Test configuration endpoint
curl -s "https://your-nextcloud.com/apps/elementinjector/api/v1/config"

Documentation

Comprehensive guides and references for users and developers.

🚀

Quick Start

Get up and running in 5 minutes. Basic configuration and first pattern setup.

Read Guide
📚

API Reference

Complete REST API documentation with examples and response schemas.

View API
🔍

Troubleshooting

Common issues, debugging techniques, and performance optimization tips.

Debug Help