ExtractAdapter
CommunityBuild a clean adapter layer for external APIs.
Software Engineering#typescript#testing#architecture#adapter#dependency-injection#browser-api#external-dependencies
Authorfnoritomi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Create a boundary/adapter layer to isolate external dependencies (browser APIs, third-party libraries, and system APIs) without modifying existing code that consumes them.
Core Features & Use Cases
- Interface-first design to define a minimal cross-platform boundary.
- Production adapters that wrap real APIs (e.g., browser.ts) and export a single platform object.
- Test doubles and mocks to simplify unit testing and CI.
- Facilitates dependency injection and easier code maintenance across modules.
Quick Start
Create a TypeScript project structure and add src/platform/browser.ts implementing the Platform interface; implement production adapter logic, export a singleton, and optionally add a mock factory for tests. Then wire into your codebase by replacing direct API calls with the adapter.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ExtractAdapter Download link: https://github.com/fnoritomi/tabulador-dados-abertos/archive/main.zip#extractadapter Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.