@revenium/google-core
v0.1.5
Published
Core utilities for Revenium Google middleware packages
Readme
@revenium/google-core
Core utilities and shared functionality for Revenium Google middleware packages.
Overview
This package provides the foundational components used by @revenium/google-genai and @revenium/google-vertex middleware packages. It is designed as an internal dependency and is not intended for direct use in applications.
What's Included
- Logger - Configurable logging system for middleware operations
- Metering - Core metering and tracking functionality
- Revenium Client - HTTP client for Revenium API communication
- Types - Shared TypeScript interfaces and types
- Utilities - Common helper functions and tools
Installation
This package is automatically installed as a dependency when you install @revenium/google-genai or @revenium/google-vertex:
npm install @revenium/google-genai
# or
npm install @revenium/google-vertexYou typically do not need to install this package directly.
Usage
This package is consumed internally by the middleware packages. If you're building applications, you should use @revenium/google-genai or @revenium/google-vertex instead.
For middleware package developers:
import { Logger, Metering, ReveniumClient } from "@revenium/google-core";Configuration
The core package respects the following environment variables:
REVENIUM_METERING_API_KEY- API key for Revenium serviceREVENIUM_METERING_BASE_URL- Base URL for Revenium API (default: https://api.revenium.ai)REVENIUM_LOG_LEVEL- Logging level (DEBUG, INFO, WARN, ERROR)
Package Information
- Version: 0.1.1
- License: MIT
- Repository: revenium-middleware-google-node
Related Packages
- @revenium/google-genai - Google AI middleware
- @revenium/google-vertex - Vertex AI middleware
Documentation
For complete documentation, see:
Support
For issues, feature requests, or contributions:
Contributing
See CONTRIBUTING.md
Security
See SECURITY.md
