npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@llm-dev-ops/llm-config-core

v0.5.0

Published

Core configuration management library (Rust crate - use via cargo or build from source)

Downloads

9

Readme

llm-config-core

Crates.io Documentation License

Core configuration management library for LLM Config Manager with multi-environment support, versioning, and secret management.

Features

  • Multi-Environment Support: Manage configurations across dev, staging, production, and custom environments
  • Secret Management: Encrypted storage of sensitive configuration values
  • Version Control: Track changes and rollback to previous configurations
  • Namespace Isolation: Organize configurations by application or service
  • Environment Overrides: Cascade configuration values with environment-specific overrides
  • Type Safety: Strong typing for configuration values with validation
  • Async/Await: Full async support with Tokio runtime

Usage

Add this to your Cargo.toml:

[dependencies]
llm-config-core = "0.5.0"
tokio = { version = "1", features = ["full"] }

Quick Start

use llm_config_core::{ConfigManager, Environment};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Initialize configuration manager
    let config = ConfigManager::new("./config-data").await?;

    // Set a configuration value
    config.set(
        "app.database.url",
        "postgres://localhost/mydb",
        Environment::Development
    ).await?;

    // Get a configuration value
    let db_url = config.get("app.database.url", Environment::Development).await?;
    println!("Database URL: {}", db_url);

    Ok(())
}

Secret Management

// Store an encrypted secret
config.set_secret(
    "app.api.key",
    "my-secret-api-key",
    Environment::Production
).await?;

// Retrieve and decrypt the secret
let api_key = config.get_secret("app.api.key", Environment::Production).await?;

Version Control

// Get configuration history
let history = config.get_history("app.database.url").await?;
for version in history {
    println!("Version {}: {}", version.version, version.value);
}

// Rollback to previous version
config.rollback("app.database.url", 5).await?;

Environment Overrides

// Set base configuration
config.set("app.max_connections", "100", Environment::Base).await?;

// Override for production
config.set("app.max_connections", "500", Environment::Production).await?;

// Get with cascade (returns 500 for production, 100 for others)
let max_conns = config.get_with_overrides("app.max_connections", Environment::Production).await?;

Architecture

The core library is built on:

  • llm-config-storage: Persistent storage backend
  • llm-config-crypto: Encryption for secrets
  • Sled: Embedded database for fast access
  • Tokio: Async runtime for concurrent operations

Performance

Benchmarks on modern hardware:

  • Configuration retrieval: ~50 µs
  • Configuration updates: ~100 µs
  • With encryption: ~120 µs
  • Batch operations: ~10,000 ops/sec

Minimum Supported Rust Version

This crate requires Rust 1.75 or later.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Contributing

See CONTRIBUTING.md for contribution guidelines.