New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dalhatu/simba-shared

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dalhatu/simba-shared

Shared utilities and configurations for Simba AI News Aggregation Platform

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@simba-platform/shared

Shared utilities and configurations for the Simba AI News Aggregation Platform.

Overview

This package provides common functionality used across all Simba platform microservices, including:

  • Azure Service Integration: OpenAI, Key Vault, Storage, Identity
  • Database Connections: PostgreSQL with connection pooling
  • Caching: Redis integration
  • Logging: Structured logging with Winston
  • Authentication: JWT token handling and validation
  • Configuration Management: Environment-based configuration

Installation

npm install @simba-platform/shared

Usage

import { logger, database, cache, azureOpenAI } from '@simba-platform/shared';

// Logging
logger.info('Service starting', { service: 'api-gateway' });

// Database
const pool = database.getPool();
const result = await pool.query('SELECT * FROM articles');

// Cache
await cache.set('key', 'value', 3600);
const value = await cache.get('key');

// Azure OpenAI
const embedding = await azureOpenAI.generateEmbedding('text to embed');

Services Supported

  • API Gateway
  • Data Acquisition
  • Content Processing
  • Vector Search
  • Publishing Engine
  • Translation API
  • Audio API
  • Content Moderation
  • Editorial Workflow
  • RBAC Service

Environment Variables

Required environment variables:

# Database
DATABASE_URL=postgresql://user:pass@host:port/db

# Redis  
REDIS_HOST=localhost
REDIS_PORT=6379

# Azure Services
AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/
AZURE_OPENAI_KEY=your-key
AZURE_KEY_VAULT_URL=https://your-vault.vault.azure.net/

Development

# Build
npm run build

# Test
npm test

# Watch mode
npm run dev

License

MIT

Keywords

simba

FAQs

Package last updated on 27 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts