@loghead/core
v0.1.32
Published
Core API and Database for Loghead
Readme
@loghead/core
Core API and Database for Loghead
Overview
@loghead/core provides the foundational components for the Loghead logging platform, including:
- API Server - Express-based REST API for managing logs
- Database Client - SQLite database integration with vector search capabilities
- CLI Interface - Command-line tools for starting the server and UI
- Authentication - JWT-based authentication service
- Ollama Integration - Integration with Ollama for AI/ML capabilities
Installation
npm install @loghead/coreUsage
CLI Commands
Start the Loghead server:
loghead startLaunch the web UI:
loghead uiAs a Module
import { /* exported functions */ } from '@loghead/core';Package Contents
Files Included
This package includes:
dist/- Compiled JavaScript output ready for productionbuild/npm/- NPM-specific build artifacts
Dependencies
Production
better-sqlite3- SQLite database driverchalk- Terminal stylingcli-table3- CLI table formattingcors- CORS middlewaredotenv- Environment variable managementexpress- Web frameworkinquirer- Interactive CLI promptsjsonwebtoken- JWT authenticationollama- Ollama AI integrationopen- Open URLs/filessqlite-vec- Vector search for SQLiteyargs- CLI argument parsing
Development
@types/*- TypeScript type definitionstsx- TypeScript executor
Entry Points
- Main Export:
dist/index.js - CLI Entry Point:
dist/cli_main.js - Binary:
logheadcommand
Building
npm run buildThis runs:
- Frontend build:
npm run build:frontend - TypeScript compilation:
tsc
Development
npm run devWatch mode for continuous development with tsx watch.
Scripts
npm start- Start the servernpm run ui- Launch the UInpm run build- Build the projectnpm run dev- Development mode with watchnpm run deploy- Publish to npm registry
Repository
- GitHub: https://github.com/onvo-ai/loghead
- Issues: https://github.com/onvo-ai/loghead/issues
- Homepage: https://github.com/onvo-ai/loghead#readme
License
See LICENSE file in repository.
