Skip to content

Westyasha/Quick-Templates

Repository files navigation

🚀 Quick Templates

Quick Templates Logo

Your templates. Organized. Accessible everywhere.

A powerful Chrome Extension for managing text templates, accompanied by a stunning landing page.
Explore the docs »

View on Chrome Web Store ·


Version Manifest License

📖 Table of Contents


🔭 Overview

Quick Templates is a dual-component project designed to streamline productivity:

  1. The Extension: A comprehensive productivity tool replacing standard "Response Boxes." It allows users to create, organize, and inject text templates into any website via a context menu.
  2. The Website: A modern, high-performance landing page designed to showcase the extension's capabilities with advanced CSS animations and glassmorphism UI.

🌐 The Website (Landing Page)

The repository includes the official landing page (index.html), built to visually represent the fluidity and speed of the extension.

Design Philosophy

  • 🎨 Glassmorphism UI: The site heavily utilizes backdrop-filter: blur() and semi-transparent backgrounds (rgba) to create a deep, frosted glass aesthetic consistent with the extension's internal design.
  • ✨ Ambient Animations:
    • Floating Bubbles: A pure CSS animation (domains-bubbles) generates varying sizes of blue and pink orbs that float upward, creating a dynamic "lava lamp" effect.
    • Text Effects: Gradient text animations (animated-gradient-text) and scroll-triggered fade-ins (fade-in class).
  • 📱 Responsive & Interactive:
    • Built with a mobile-first approach using Tailwind CSS.
    • Includes a custom JavaScript Modal Gallery to view screenshots.

Tech Stack (Web)

  • HTML5: Semantic structure.
  • CSS3: Custom animations, Flexbox/Grid layouts.
  • Tailwind CSS: Used via CDN for rapid utility styling.
  • Vanilla JS: Lightweight logic for DOM manipulation (Modals, Scroll Observers).

🧩 The Chrome Extension

The core of this repository is the Manifest V3 Chrome Extension. It is engineered for privacy, speed, and ease of use, operating entirely client-side.

User Features

  • ⚡ Drag & Drop Interface:
    • Sort templates and categories visually.
    • Seamlessly move templates between categories.
    • Automatic state saving ensures your layout is always preserved.
  • 🖱️ Smart Context Menu:
    • Right-click on any editable field on the web.
    • Select a template to instantly insert text.
    • Fallback: If no field is focused, the text is copied to the clipboard.
  • 📂 Organization:
    • Create unlimited categories (collapsible for cleaner UI).
    • Search bar to filter templates by title or content in real-time.
  • 💾 Data Portability:
    • Import/Export: Full JSON backup support. Transfer your templates between computers easily.
    • Dark Mode: Native dark theme (#0c192c) to reduce eye strain.

Technical Architecture

  • Manifest V3: Fully compliant with modern Chrome security and performance standards.
  • Service Worker (background.js):
    • Dynamically builds the Context Menu based on storage data.
    • Uses chrome.scripting.executeScript to inject text safely into the active tab.
  • Storage Strategy: Utilizes chrome.storage.local for persistent, asynchronous data handling.
  • Event Delegation: The options page (quick_templates.js) uses robust event delegation to handle dynamic elements efficienty (minimizing event listeners).

Permissions Explained

The extension requires specific permissions to function. Here is the technical justification for each:

Permission Justification
storage Required to save categories, templates, and user preferences locally on the device.
contextMenus Necessary to create the right-click menu items for quick insertion.
scripting Used to programmatically insert text into the active web page's input fields.
downloads Required for the "Export" feature to save your backup .json file.
host_permissions <all_urls> is required so the Context Menu appears on every website you visit.

📂 Project Structure

root/
├── images/                 # Icons, Logos, and Screenshots
├── background.js           # Service Worker (Context Menu & Injection Logic)
├── manifest.json           # Extension Configuration (Manifest V3)
├── quick_templates.html    # Extension Main Interface (Options Page)
├── quick_templates.css     # Extension Specific Styling
├── quick_templates.js      # Extension Logic (CRUD, Drag&Drop, Import/Export)
├── index.html              # Landing Page HTML
├── style.css               # Landing Page Custom CSS & Animations
└── script.js               # Landing Page Logic

About

extension + website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors