adonisjs-services
CommunityManage external APIs with a driver pattern.
Software Engineering#testing#architecture#dependency-injection#service-pattern#ioc#adonisjs#manager-driver
Authoromakei
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a clean architecture pattern for integrating external services in AdonisJS by wrapping APIs behind a manager/driver contract, enabling easy driver swapping and test-friendly null drivers.
Core Features & Use Cases
- Manager/driver abstraction to wrap third-party APIs behind a single contract.
- Multiple drivers (e.g., Stripe, Null driver) with runtime selection and IoC registration.
- Deterministic testing via a null driver and test utilities, plus container-based behavior swapping for edge cases.
- Safe, bounded driver caching within the manager to avoid leaks and ensure predictable memory usage.
- Easy extension to add new providers with a minimal driver contract and central config.
Quick Start
Configure the test environment to use the null driver by setting PAYMENT_DRIVER=null.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: adonisjs-services Download link: https://github.com/omakei/adonisjs-architecture-skill/archive/main.zip#adonisjs-services 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 471,000+ vetted skills library on demand.