DEV Community

Anirban
Anirban

Posted on

๐Ÿš€ I Built a Simple API Monitoring Tool for Laravel (No Datadog Needed)

As a Laravel developer, I kept running into the same problem:

๐Ÿ‘‰ โ€œWhat is actually happening in my APIs?โ€

  • Which endpoints are being hit the most?
  • Which requests are slow?
  • Where are the errors happening?

Most solutions like Datadog or New Relic felt:

  • Overkill
  • Expensive
  • Time-consuming to set up

So I built something simpler.


โšก Introducing ApiLens

A lightweight Laravel package that gives you a real-time dashboard of your API activity.

No setup headaches. No external services.


๐ŸŽฏ What it does

  • Logs every request (endpoint, method, status, duration)
  • Shows recent API activity
  • Helps identify errors (4xx / 5xx)
  • Highlights slow endpoints
  • Simple filter system to debug quickly

๐Ÿ“ธ Dashboard Preview


๐Ÿ“ฆ Installation

composer require apilens/laravel-api-lens
php artisan apilens:install
Enter fullscreen mode Exit fullscreen mode

Open:

http://localhost:8000/apilens?token=secret
Enter fullscreen mode Exit fullscreen mode

Thatโ€™s it.


๐Ÿง  Why I built this

I didnโ€™t need:

  • Distributed tracing
  • Enterprise dashboards
  • Complex setup

I just needed:

๐Ÿ‘‰ A quick way to understand what my APIs are doing


๐Ÿ’ก Who this is for

  • Laravel developers
  • Freelancers building APIs
  • Startups that need quick visibility
  • Anyone debugging backend issues

โš–๏ธ ApiLens vs Datadog

Feature ApiLens Datadog
Setup 1 min Complex
Cost Free Paid
Focus Laravel Generic
Use case Dev + small teams Enterprise

๐Ÿšง Whatโ€™s coming next

  • Time-based filters
  • Charts & analytics
  • Alerts
  • SaaS version (multi-project dashboard)

๐Ÿ’ฌ Feedback

Would love your thoughts ๐Ÿ™Œ

  • What features would you want?
  • Would you use something like this?

๐Ÿ”— GitHub

๐Ÿ‘‰ https://github.com/anirbancodes69/laravel-api-lens

Top comments (1)

Collapse
 
anirbancodes profile image
Anirban

Curious โ€” how are you currently monitoring APIs in Laravel?