Skip to content

feat(api): generic API config, send workflow, and multi-platform integration#67

Merged
miguelcorderocollar merged 4 commits into
mainfrom
feat/generic-api-config-62-63
Mar 20, 2026
Merged

feat(api): generic API config, send workflow, and multi-platform integration#67
miguelcorderocollar merged 4 commits into
mainfrom
feat/generic-api-config-62-63

Conversation

@miguelcorderocollar

Copy link
Copy Markdown
Owner

Adds configurable “send to API” flows: shared request building, profiles/templates/variables, options UI, background forwarding, and integration hooks across articles, HN, universal, X, YouTube, and the floating button—plus tests and website/docs updates.

Changes

  • Shared API layer (extension/shared/api/): constants, profiles, template rendering, variable substitution, request builder, and barrel exports; storage keys and defaults extended for API settings.
  • Content workflow: apiSendWorkflow, apiHandler, apiSecondaryActions wire extraction → optional secondary actions → POST via background; platform scripts updated to use the shared path.
  • Options: API settings section (model/view/helpers), KPI and UI integration, styling in options.css / options.html.
  • Background: handler for API send requests from content scripts.
  • Assets: new icons (api, comments, x); manifest updates for MV3.
  • Tests: Vitest coverage for handlers, shared API modules, options model, storage, FloatingButton, KPI, and platform spots; vitest.config adjusted.
  • Docs & web: README, CHANGELOG [Unreleased], AGENTS note; web/index.html, privacy.html, manifest.json, styles; scripts/serve-web.py; .gitignore tweak.

Benefits

  • One configurable pipeline replaces ad-hoc per-site POST logic and keeps secrets in the service worker.
  • Options + profiles make Notion/custom endpoints and payloads maintainable without code changes per target.

- Implemented API sending capabilities for articles, Hacker News, universal content, and X.
- Added new settings and UI elements for managing API integrations, including floating action buttons and integration profiles.
- Updated documentation in AGENTS.md and README.md to reflect new API features and local server setup for previewing changes.
- Improved CSS styles for API settings and integration cards for better user experience.
- Refactored existing extraction logic to support API payload generation and error handling.

This commit lays the groundwork for a more robust API interaction model, allowing users to send extracted content seamlessly across various platforms.
@vercel

vercel Bot commented Mar 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
extract-md Ready Ready Preview, Comment Mar 20, 2026 6:52pm

…nce FloatingButton functionality

- Updated CHANGELOG.md to clarify API integration features and improve readability.
- Modified FloatingButton.js to ensure the main button remains clickable while secondary actions are visible, enhancing user interaction.
- Added a test case to verify the functionality of the FloatingButton component, ensuring it behaves as expected during hover actions.
@miguelcorderocollar
miguelcorderocollar merged commit 9f9e486 into main Mar 20, 2026
3 checks passed
miguelcorderocollar added a commit that referenced this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant