tegwick 1df93bd385 Add local tag server check, archive on delete, and first-run pin reminder
- Local tag is now clickable - checks if document exists on server by ID
  or filename, and re-links if found
- Delete from server now archives the proxy instead of removing it,
  making it a local-only document that can be re-uploaded
- Added first-run pin reminder banner to help users pin the extension
- Added issue report modal with context sections (extension info, browser
  info, document status, recent errors) and copy to clipboard as Markdown
- Added clearServerFields and attachServerDocument functions to pdf-queue
- Improved local tag styling with hover states and visual feedback

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 23:39:06 +01:00
2026-01-12 17:27:43 +00:00

BinectChrome

A Chrome extension that enables users to send PDF documents from cloud applications directly to Binect for physical printing and postal delivery.

Overview

BinectChrome detects PDF downloads in your browser and allows you to send them directly to Binect for physical mail delivery, eliminating the manual download-upload workflow.

Features

  • PDF Detection: Automatically detects PDF downloads using Chrome Downloads API
  • Secure Transfer: Sends PDFs directly to Binect via encrypted connection
  • Credential Encryption: User credentials stored encrypted with automatic 60-day expiry
  • Local Tracking: Transfer history stored locally for transparency
  • Privacy-First: No PDF storage, explicit user consent required
  • Accessible Design: Follows WCAG 2.1 AA standards with Binect branding

Development

Prerequisites

  • Node.js 18+ and npm
  • Chrome browser for testing

Setup

# Install dependencies
npm install

# Run development build with watch mode
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Run linter
npm run lint

# Fix linting issues
npm run lint:fix

# Type checking
npm run type-check

Project Structure

binect-chrome/
├── src/
│   ├── background/         # Service worker (background script)
│   ├── popup/             # Extension popup UI
│   ├── tracking/          # Tracking/help page
│   └── utils/             # Shared utilities
│       ├── crypto.ts      # Encryption utilities
│       ├── storage.ts     # Storage management
│       ├── pdf-detector.ts # PDF detection
│       └── binect-api.ts  # Binect API client
├── public/
│   ├── manifest.json      # Extension manifest
│   ├── icons/             # Extension icons
│   └── _locales/          # Localization
├── tests/                 # Jest tests
├── architecture/          # ADRs (Architecture Decision Records)
├── research/              # Research documentation
└── specs/                 # API specifications

Loading Extension in Chrome

  1. Build the extension: npm run build
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" (toggle in top right)
  4. Click "Load unpacked"
  5. Select the dist directory

Architecture

See CLAUDE.md for detailed architecture documentation.

Key architectural decisions are documented as ADRs in the architecture/ directory.

Testing

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

Tests cover:

  • Credential encryption/decryption
  • PDF detection
  • Binect API integration
  • Tracking system

Privacy & Security

  • No PDF Storage: PDFs are never stored by the extension
  • Encrypted Credentials: User credentials encrypted at rest using AES-GCM
  • 60-Day Expiry: Credentials automatically expire after 60 days of inactivity
  • Local-Only Tracking: All tracking data stored locally, never transmitted
  • Explicit Consent: All transfers require user click

Requirements

Implements all requirements from ProductRequirementsDocument.md:

  • PDF detection via Chrome Downloads API
  • Secure credential storage with encryption
  • Binect API integration for PDF upload
  • Popup UI with Binect branding
  • Local transfer tracking (capped at 500 entries)
  • Help page with tracking view
  • CSV export and email feedback mechanism
  • 60-day credential retention policy
  • Manual credential wipe option
  • Accessibility compliance (WCAG 2.1 AA)

Browser Compatibility

  • Chrome 88+ (Manifest V3 support)
  • Chromium-based browsers may work but are not officially supported in v1

Support

For issues, feature requests, or questions:

Email: bernd.worsch@binect.de

License

MIT License - see LICENSE file for details

Version

Current version: 1.0.0

Description
Browser plugin to send pdfs as paper letter with binect.
Readme MIT-0 2.7 MiB
Languages
TypeScript 75.3%
CSS 13.9%
HTML 6.9%
Shell 3%
JavaScript 0.9%