Skip to content

Master your drafts and streamline your posting flow with Threads DraftCraft, an open-source Chrome extension for Threads.com. Organize, sort, and track scheduled posts with smart sorting, clear time displays, and statistics to keep your content perfectly planned and under control.

Notifications You must be signed in to change notification settings

duxor/threads-draftcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Threads DraftCraft

Master your drafts. Craft your flow.

A Chrome extension designed to enhance the organization and management of scheduled posts in the Threads.com drafts section.

🎯 Overview

Threads DraftCraft is an open-source Chrome extension that improves the user experience when working with scheduled drafts on Threads.com. The extension enables you to organize, sort, and track your scheduled posts with intuitive overview and advanced management options.

Threads DraftCraft brings you a better way to manage drafts on Threads.com. With smart sorting, clearer time displays, statistics, and future options like tags, notes, and notifications – this extension helps you keep your ideas and scheduled posts under complete control.

Whether you're a content creator, community manager, or just someone who loves organization, DraftCraft gives you the tool to transform your drafts into well-planned posts.

Disclaimer: Threads DraftCraft is not affiliated with Threads or Meta. It's a community-driven open-source extension designed to improve your draft management experience.

πŸ“Έ Screenshot

Threads DraftCraft Extension Screenshot Threads DraftCraft in action - showing organized and sorted draft posts with enhanced visibility

✨ Features

Current Planned Features

  • πŸ“… Smart Sorting: Automatically sort drafts by scheduled publication time (earliest first)
  • πŸ” Enhanced Visibility: Improve the visual presentation of draft information
  • ⏰ Time Display: Clear display of scheduled publication times
  • πŸ“Š Draft Statistics: Overview of total drafts and upcoming publications
  • 🎨 UI Improvements: Enhanced interface for better draft management

Future Enhancements

  • 🏷️ Tagging System: Add custom tags to drafts for better categorization
  • πŸ“ Draft Notes: Add private notes to drafts
  • πŸ”” Notifications: Reminders before scheduled publications
  • πŸ“± Quick Actions: Bulk operations for draft management
  • πŸ“ˆ Analytics: Insights into posting patterns and engagement

πŸ› οΈ Technical Specification

Architecture

  • Extension Type: Chrome Extension (Manifest V3)
  • Target Platform: threads.com
  • Technology Stack:
    • JavaScript (ES6+)
    • HTML5/CSS3
    • Chrome Extension APIs

Core Components

1. Content Script (content.js)

  • Detects and analyzes the drafts dialog on threads.com
  • Extracts draft information (content, scheduled time, etc.)
  • Implements sorting algorithms
  • Modifies the DOM to display improved draft organization

2. Background Script (background.js)

  • Handles extension lifecycle events
  • Manages storage and preferences
  • Coordinates between different extension components

3. Popup Interface (popup.html/js)

  • Extension settings and preferences
  • Quick access to draft statistics
  • Toggle extension features on/off

4. Manifest (manifest.json)

  • Extension configuration
  • Permissions and content script registration
  • Version and metadata information

DOM Analysis

Based on the analysis of the threads.com drafts dialog:

  • Drafts are contained within a modal dialog structure
  • Each draft appears to be wrapped in complex nested <div> elements
  • Draft content is partially visible with truncated text
  • Scheduled time information needs to be extracted from DOM attributes or text content

Key Algorithms

Draft Detection

// Pseudocode for draft detection
function detectDrafts() {
    // Identify the drafts container
    // Extract individual draft elements
    // Parse draft content and metadata
    // Return structured draft data
}

Sorting Algorithm

// Pseudocode for sorting by scheduled time
function sortDraftsByTime(drafts) {
    // Extract scheduled timestamps
    // Sort drafts chronologically (earliest first)
    // Update DOM order
}

πŸš€ Installation

For Users

  1. Download from Chrome Web Store (Coming Soon)

    • Visit the Chrome Web Store
    • Search for "Threads DraftCraft"
    • Click "Add to Chrome"
  2. Manual Installation (Development)

    • Download or clone this repository
    • Open Chrome and go to chrome://extensions/
    • Enable "Developer mode" in the top right
    • Click "Load unpacked" and select the extension folder
    • Navigate to threads.com and open your drafts

For Developers

# Clone the repository
git clone https://github.com/duxor/threads-draftcraft.git
cd threads-draftcraft

# Install dependencies (if any)
npm install

# Load the extension in Chrome
# 1. Open chrome://extensions/
# 2. Enable Developer mode
# 3. Click "Load unpacked"
# 4. Select the project directory

πŸ“– Usage

  1. Activate Extension: Navigate to threads.com and log into your account
  2. Access Drafts: Open your drafts section as usual
  3. Automatic Enhancement: The extension automatically detects and improves the drafts display
  4. Sorting: Drafts are automatically sorted by scheduled publication time
  5. Settings: Click the extension icon to access settings and preferences

πŸ”§ Development Setup

Prerequisites

  • Chrome browser (latest version)
  • Basic knowledge of JavaScript, HTML, CSS
  • Understanding of Chrome Extension development

Project Structure

threads-scheduler-extension/
β”œβ”€β”€ manifest.json          # Extension manifest
β”œβ”€β”€ content/
β”‚   β”œβ”€β”€ content.js         # Main content script
β”‚   └── content.css        # Styling for improvements
β”œβ”€β”€ popup/
β”‚   β”œβ”€β”€ popup.html         # Extension popup interface
β”‚   β”œβ”€β”€ popup.js           # Popup functionality
β”‚   └── popup.css          # Popup styling
β”œβ”€β”€ background/
β”‚   └── background.js      # Background script
β”œβ”€β”€ icons/
β”‚   β”œβ”€β”€ icon16.png         # Extension icons
β”‚   β”œβ”€β”€ icon32.png
β”‚   β”œβ”€β”€ icon48.png
β”‚   └── icon128.png
β”œβ”€β”€ dev-docs/
β”‚   └── example.html       # Example of threads.com draft dialog
└── README.md

Development Workflow

  1. Setup: Clone the repository and load it as an unpacked extension
  2. Development: Make changes to the source code
  3. Testing: Reload the extension and test on threads.com
  4. Debugging: Use Chrome DevTools for debugging
  5. Documentation: Update README.md and code comments

Testing Guidelines

  • Test on different screen sizes and resolutions
  • Verify functionality with various numbers of drafts
  • Test with drafts scheduled at different times
  • Ensure compatibility with threads.com UI updates
  • Test extension performance with large numbers of drafts

🀝 Contributing

We welcome contributions from the community! Here's how you can help:

Ways to Contribute

  • πŸ› Bug Reports: Report issues you encounter
  • πŸ’‘ Feature Requests: Suggest new features or improvements
  • πŸ”§ Code Contributions: Submit pull requests with fixes or enhancements
  • πŸ“š Documentation: Improve documentation and examples
  • πŸ§ͺ Testing: Help test the extension on different configurations

Contribution Guidelines

  1. Fork the Repository: Create your own fork of the project
  2. Create a Branch: Make a new branch for your feature/fix
  3. Make Changes: Implement your improvements
  4. Test Thoroughly: Ensure your changes work correctly
  5. Submit Pull Request: Open a PR with a clear description

Code Standards

  • Use modern JavaScript (ES6+)
  • Follow consistent indentation (2 spaces)
  • Include meaningful comments
  • Write descriptive commit messages
  • Test your changes before submitting

Development Environment

# Example development commands
npm run lint          # Check code style
npm run test          # Run tests
npm run build         # Build for production

πŸ“‹ Roadmap

Version 1.0 (Initial Release) βœ… COMPLETED

  • Project setup and documentation
  • Basic draft detection and parsing
  • Sorting by scheduled time
  • Simple UI improvements
  • Comprehensive popup interface
  • Background script coordination
  • Settings management system
  • Icon creation and implementation
  • Chrome Web Store submission

Version 1.1 (Enhanced Features)

  • Advanced sorting options
  • Draft statistics display
  • Settings panel
  • Performance optimizations

Version 2.0 (Major Features)

  • Tagging system
  • Draft notes
  • Bulk operations
  • Notification system

πŸ› Known Issues

  • Extension is currently in development phase
  • Compatibility depends on threads.com's current DOM structure
  • Performance with very large numbers of drafts needs testing

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Thanks to the Threads.com team for creating an engaging social platform
  • Chrome Extension developers community for best practices and examples
  • All contributors who help improve this extension

πŸ“ž Support

πŸ”— Links


Note: This extension is not officially affiliated with Threads.com or Meta. It's an independent open-source project designed to enhance user experience.

About

Master your drafts and streamline your posting flow with Threads DraftCraft, an open-source Chrome extension for Threads.com. Organize, sort, and track scheduled posts with smart sorting, clear time displays, and statistics to keep your content perfectly planned and under control.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published