Skip to main content

Introduction to Oaklean

Oaklean helps you measure and understand energy and runtime behavior in Node.js and TypeScript projects.

With Oaklean, you can:

  • profile source-level behavior with energy and performance signals,
  • configure and standardize measurements with a .oaklean file,
  • inspect reports directly in the Oaklean VS Code extension.

Get Started in 4 Steps

  1. Install Oaklean packages for your use case:
npm install @oaklean/profiler

or for Jest-based test environments:

npm install @oaklean/profiler-jest-environment
  1. Create a .oaklean configuration:
npm add --save-dev @oaklean/cli
npx oak init
  1. Run your workload or test suite with Oaklean enabled to generate measurement output.

  2. Open and analyze generated reports in the Oaklean VS Code Extension docs.

Documentation Map