Skip to content

Feature Roadmap: Real API Integration, Thread Support, and Secure Storage #2

@aarshps

Description

@aarshps

Based on a recent audit of the codebase, here are the key features needed to make x-cli functional and production-ready:

1. Real X API v2 Integration

Currently, �pi.ts and �pi.py use mocked data. We need to:

  • Implement actual POST/GET requests to the X API endpoints.
  • Add support for media uploads (as mentioned in the README).

2. Thread and Reply Support

The TUI currently only shows a flat list of tweets. We need:

  • A way to view replies to a specific tweet.
  • Support for 'replies to replies' (threaded view).
  • Implementation of the
    (reply) keybinding in the TUI.

3. Secure Token Storage

SECURITY.md mentions using OS keychains, but the current implementation uses Base64 in a local file. We should:

  • Implement keytar or a similar library to store OAuth tokens in the system keychain (macOS), Credential Manager (Windows), or Secret Service (Linux).

4. Full OAuth 2.0 PKCE/Device Flow

The current auth flow is mocked. We need to implement a real flow that allows users to authorize their own developer apps.

5. Interactive Compose TUI

Implement the 'Interactive compose' feature promised in the CLI output, allowing for richer tweet creation within the terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions