Skip to main content

Idiomark Browser Extension - Remaining Tasks

✅ Complete (Local-Only)​

  • Platform detection (ChatGPT, Claude, Perplexity)
  • Local profile storage (chrome.storage.local)
  • Personality prompt building
  • Profile injection via content scripts
  • Visual indicator (active profile badge)
  • Sample profiles included
  • SPA navigation handling

🚧 Missing Components​

High Priority​

1. Idiomark Cloud API Backend​

Status: Blocked on external API deployment Files: None (new service) Effort: 2-3 days

Endpoints Needed:

POST   /api/v1/auth/oauth          - OAuth token exchange
GET /api/v1/profiles - List user profiles
POST /api/v1/profiles - Upload profile
PUT /api/v1/profiles/:id - Update profile
DELETE /api/v1/profiles/:id - Delete profile
POST /api/v1/profiles/:id/share - Generate share token
GET /api/v1/profiles/import/:token - Import shared profile

Tech Stack: Fastify/Express + PostgreSQL + Redis


2. Real Encryption (Libsodium)​

Status: Template only Files: packages/browser-extension/src/services/cloud-api.ts Effort: 1 day

Current:

private encryptProfile(profile: IdiomarkProfile): string {
// TODO: Implement proper encryption using Libsodium
return btoa(JSON.stringify(profile)) // ❌ Not real encryption
}

Needed:

import { crypto_secretbox, crypto_secretbox_easy } from 'libsodium-wrappers'

export class EncryptionService {
async encryptProfile(profile: IdiomarkProfile, key: Uint8Array): Promise<EncryptedProfile> {
const message = msgpack.encode(profile)
const nonce = randombytes_buf(crypto_secretbox_NONCEBYTES)
// ... actual Libsodium encryption
}

async decryptProfile(encrypted: EncryptedProfile, key: Uint8Array): Promise<IdiomarkProfile> {
// ... actual Libsodium decryption
}
}

3. X (Twitter) Platform Support​

Status: Not started Files: Need to create src/content-scripts/x.ts Effort: 4-6 hours

Platform Specifics:

  • Tweet composer injection (not chat interface)
  • Character limit handling (280 chars)
  • Hashtag insertion logic
  • Different UI selectors (Grok integration)

4. Copilot Platform Support​

Status: Not started Files: Need to create src/content-scripts/copilot.ts Effort: 4-6 hours

Platform Specifics:

  • Bing chat integration
  • Microsoft account OAuth
  • Different conversation context structure

Medium Priority​

5. Profile Editor UI​

Status: Template only (popup.html exists but basic) Files: src/popup.ts, src/popup.html, src/popup.css Effort: 3-5 days

Features Needed:

  • Real-time personality sliders (tone, formality, humor, etc.)
  • Live preview of generated prompt
  • Visual trait builder
  • Emoji picker for top emojis
  • Knowledge domain editor
  • Values sentiment editor

6. Usage Analytics​

Status: Not started Files: packages/browser-extension/src/services/analytics.ts Effort: 2-3 days

Events to Track:

  • Profile injection events
  • Platform usage (which platforms most used)
  • Error rates
  • Sync success/failure
  • Profile creation/deletion

Privacy: Anonymous, local-only (no user data sent to servers)


Low Priority (Nice to Have)​

7. Profile Sharing/Export​

Status: Not started Effort: 2-3 days

Features:

  • Export profile as .idiomark file
  • Copy share link to clipboard
  • QR code for mobile import
  • Public/private profile toggle

8. Chrome Web Store Publish​

Status: Not ready Effort: 1 week

Checklist:

  • Create store listing (screenshots, description)
  • $5 developer fee payment
  • Privacy policy page
  • Terms of service
  • Submit for review
  • Handle review process

Agent 1: Cloud API Backend (general-purpose agent)

  • Build Fastify/Express API server
  • Implement all endpoints
  • PostgreSQL schema setup
  • Redis caching layer
  • OAuth token handling

Agent 2: X Platform Content Script (general-purpose agent)

  • Create src/content-scripts/x.ts
  • Implement Tweet composer detection
  • Character limit handling
  • Hashtag/mention logic
  • Test injection in Grok interface

Agent 3: Libsodium Encryption (general-purpose agent)

  • Replace base64 encoding with real encryption
  • Generate key pairs
  • Encrypt/decrypt profiles
  • Integrate with Cloud API client

Execution Order​

  1. Start Agent 1 (Cloud API) - Blocks on Agents 2 & 3 (need encryption + API for share)
  2. Start Agent 2 (X Platform) - Independent
  3. Start Agent 3 (Encryption) - After Agent 1 has API endpoints ready

Time Estimate​

TaskEffortDependencies
Cloud API Backend2-3 daysNone
X Platform Support4-6 hoursNone
Libsodium Encryption1 dayCloud API (for testing)
Total Critical Path~5-7 days

Ready to spawn agents. Which would you like me to start with first?