Skip to content

Thoughtline - LinkedIn Writing Assistant

A Chrome side-panel extension that helps people draft LinkedIn replies and posts from pasted or selected content in their own voice, while every publish action stays manual.

Role
Product designer and browser-extension engineer
Scope
Browser integration, provider workflows, trust boundaries, and privacy
Status
GitHub release available

Problem

Writing a useful LinkedIn reply or post requires understanding the visible conversation while keeping the author's own voice, intent, and control. The page is mutable third-party content, so passing it straight into a prompt would mix data, instructions, and potentially hostile text. An assistant that drafts well but cannot be trusted with page content and credentials is not useful.

Constraints

  1. C1

    LinkedIn page content is untrusted and must be bounded before it enters any prompt.

  2. C2

    OpenRouter, Gemini, and Groq keys are all required so the fixed free-only route can fall back without interrupting a writing task.

  3. C3

    Extension permissions, encrypted local storage, and retention and export behavior must remain understandable to the user.

Architecture

LinkedIn content scripts and a manual paste input feed React side-panel workflows. Typed drafting and source-research ports route requests through curated free OpenRouter models first, with Gemini and Groq as fallbacks, and encrypted browser storage handles credentials, history, migrations, and backups under Manifest V3 permissions.

01

Page integration

LinkedIn content scripts extract the visible conversation, and a bounded manual input accepts pasted posts.

02

Extension interface

React side-panel workflows cover replies, ideas, refinement, history, settings, and onboarding.

03

Provider boundary

Typed drafting and source-research ports use curated free OpenRouter models first, apply bounded provider timeouts, and fall back to Gemini and Groq.

04

Storage and delivery

Encrypted browser storage, migrations, and backup and export features sit behind Manifest V3 permissions.

Decisions

D1

Depend on typed provider ports

Provider response shapes never reach the interface, so fallback becomes an explicit policy and each provider can be replaced at its adapter.

D2

Wrap page content in a validated envelope

A typed, size-bounded envelope reduces prompt-injection and data-sprawl risk and gives malformed extraction a safe place to fail. It does not eliminate prompt injection.

D3

Ask for permissions when a capability needs them

Requesting access at the moment of use keeps the user in control, at the cost of more branching in each workflow.

Contribution

  • Implemented the reply, idea, refine, history, settings, and onboarding journeys.
  • Built content extraction and validated prompt envelopes.
  • Added manual four-direction replies, model provenance, and visible provider recovery states.
  • Added encrypted credential storage, migrations, recovery and retention rules, configuration backup, and data archives.
  • Established static, unit, packed-extension, Axe, responsive, and visual-regression gates.

Outcomes

  • Users can paste a post or select a visible conversation and draft four reply directions.
  • Users can generate and refine post ideas in their configured voice.
  • Requests follow a fixed free-only route across OpenRouter, Gemini, and Groq under defined fallback rules.
  • Users can export and restore validated configurations and history.

Product screenshot

Thoughtline landing page with the headline 'Find the thought. Shape the words.' beside the extension side panel
Thoughtline drafts reply directions from a selected LinkedIn conversation while every publish action stays manual.

Verified stack

  • WXT
  • React 19
  • TypeScript
  • Chrome Manifest V3
  • Chrome Extensions API
  • Tailwind CSS
  • Hugeicons
  • OpenRouter API
  • Gemini API
  • Groq API
  • Zod
  • Vitest
  • Playwright
  • React Testing Library
  • TanStack Start
  • GitHub Actions
  • CI/CD
  • Git
  • System Design

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.