spatie/sidecar-shiki
Run Shiki syntax highlighting on AWS Lambda via Sidecar from your Laravel app—no Node.js or Shiki dependencies on your server. Install the package, configure Sidecar, register the HighlightFunction, and render highlighted code fast and consistently.
spatie/laravel-queueable-sidecar) for async processing.composer require spatie/sidecar-shiki).@highlight('php', $code)).env() or Vault for sensitive data.composer require spatie/sidecar-shiki.app/Services/CodeHighlighter.php).spatie/laravel-cache) for frequent requests.composer require hammerstonedev/sidecar).php artisan cache:clear) if highlights stale.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Lambda timeout | Highlighting fails for long snippets | Increase timeout or split into chunks. |
| AWS outage | All highlighting disabled | Fallback to static highlighting. |
| Network issues (VPC/Lambda) | Intermittent failures | Retry logic + circuit breaker. |
| Shiki version incompatibility | Highlighting breaks | Test updates in staging. |
| Cache corruption | Stale highlights | Cache invalidation strategy. |
How can I help you explore Laravel packages today?