Function-Tracer

Category: dev-tool

Lightweight universal function profiler

A tiny zero-dependency TypeScript utility that wraps any sync/async function to automatically track performance, call counts, error rates, and provide real-time statistics for production monitoring and alerting. Works everywhere - Node.js, browsers, serverless, edge functions.

Project thumbnailProject thumbnail
Project thumbnail
Overview of Function-TracerAll Necessary Links
Available Features

function-trace is a minimal, zero-dependency TypeScript utility that gives you deep visibility into your application's real performance behavior with almost zero effort.

  • One-line instrumentation for any sync or async function
  • Automatic tracking of execution time, call count & error rate
  • Configurable thresholds with warning/error logging
  • Real-time statistics ready for monitoring & alerting
  • Works seamlessly across Node.js, browsers, serverless & edge
Technology Used

function-trace is intentionally kept extremely lightweight and uses only modern JavaScript/TypeScript features:

  1. TypeScript
  2. Native JavaScript (Performance API)
  3. No external dependencies

In summary, function-trace is the perfect lightweight companion for any TypeScript/JavaScript developer who wants better production performance visibility without introducing heavy observability tools or complex setup.
Open source and ready to use today.

Author Profile Image

Masum Billah

Web Developer