
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@textswift/textswift
Advanced tools
Instant in-page translation powered by Codex
┌─────────────┐
│ Web Page │ User selects text
└──────┬──────┘
│
v
┌─────────────┐
│ Extension │ Click TS icon
│ Content │
│ Script │
└──────┬──────┘
│
v
┌─────────────┐
│ Background │ Send translation request
│ Service │
│ Worker │
└──────┬──────┘
│
v
┌─────────────┐
│ Native │ Execute: codex exec translate
│ Messaging │
│ Host │
└──────┬──────┘
│
v
┌─────────────┐
│ Codex │ Return translated text
│ CLI │
└─────────────┘
Additional languages planned for future releases.
npm install -g @textswift/textswift
This automatically:
chrome://extensions for extension setupIf codex is not logged in, run:
codex login
From Chrome Web Store (recommended):
Coming soon — install via unpacked mode for now.
Unpacked (development):
chrome://extensionsdist/ foldertextswift setup YOUR_EXTENSION_ID
| Command | Description |
|---|---|
textswift setup [id] | Register native host (id = Chrome extension ID) |
textswift status | Show installation status |
textswift uninstall | Remove native host manifest |
The inline icon and panel appear only when text is selected and disappear when the selection is cleared.
| Script | Description |
|---|---|
npm run build | Build extension and native host artifacts |
npm run typecheck | Run TypeScript type checking |
npm run test:unit | Run unit tests |
npm run smoke:native | Test native messaging with real Codex CLI |
npm run smoke:native:mock | Test native messaging with mock responses |
npm run smoke:playwright | Run Playwright end-to-end tests |
npm run smoke:inline | Validate inline selection icon flow |
npm run smoke:sites | Verify extension on multiple real websites |
npm run checklist | Run all quality checks (type + unit + smoke + benchmark) |
Run the full checklist before committing:
npm run checklist
This command executes type checking, unit tests, smoke tests, and benchmark tests to ensure all functionality is working correctly.
TextSwift uses a primary/fallback model chain for optimal performance and reliability:
gpt-5.3-codex-low (faster, cost-effective)gpt-5.1-codex-mini (reliable backup)To determine the fastest model for your environment:
bash scripts/benchmark-models.sh
The benchmark script reports p50/p95 latency and recommends the optimal model based on your system and network performance.
Run a quick real benchmark (1 iteration):
TEXTSWIFT_BENCHMARK_MODE=codex TEXTSWIFT_BENCHMARK_ITERATIONS=1 bash scripts/benchmark-models.sh
Run a mock benchmark (for testing without API calls):
TEXTSWIFT_BENCHMARK_MODE=mock bash scripts/benchmark-models.sh
chrome://extensionschrome://extensionscodex exec commandcodex exec translation path with timeout/error handling and fallback model chain ✓MIT
FAQs
TextSwift Chrome extension for in-page translation
The npm package @textswift/textswift receives a total of 0 weekly downloads. As such, @textswift/textswift popularity was classified as not popular.
We found that @textswift/textswift demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.