Documentation

Everything you need to know to get started with Warden

Getting Started

Get up and running with Warden in under 5 minutes.
1
Install the Package
npm install @console-warden
2
Add Your API Key
Create a .env file in your project root and add your Warden API key:
.env
WARDEN_PUBLIC_KEY=test_your_api_key_here
3
Import and Use
Import Warden at the top of your application and start logging:
JavaScript
// Import at the top of your entry file
import '@console-warden';

// Now use anywhere in your application
console.text('User signup completed');
console.error('Payment processing failed', { orderId: '12345' });
console.warn('API rate limit approaching');
console.log('Debug information');

// Track function calls
console.call('processPayment', { amount: 99.99 });

// Track and alert on function calls
console.callText('criticalOperation', { userId: 'usr_123' });

Configuration

Environment Variables

Warden supports the following environment variables:
WARDEN_PUBLIC_KEYYour API key (required)

Test vs Production Keys

Warden provides two types of API keys:
Test Keys (test_*)• No rate limits
• Expire after 2 hours
• Perfect for development
• No domain restrictions
Production Keys (prod_*)• Rate limited for security
• Never expire
• Domain whitelisting required