Back to home

Vibe Hush

A lightweight caching service to improve performance of legacy applications.

Go
Gin
SQLite
CLI
REST API
Simple endpoints for cache operations
  • PUT /cache - Store data in cache
  • GET /cache - Retrieve cached data
  • DELETE /cache - Remove from cache
Caching Mechanism
Efficient and reliable storage
  • In-memory map for fast access
  • SQLite persistence for durability
  • Configurable TTL for entries
Command Line Interface
Powerful CLI for cache management
  • Set, get, and delete cache entries
  • View cache statistics
  • Flush entire cache when needed

REST API Usage

Storing data in cache:

curl -X PUT http://localhost:8081/cache/user-profile-123 \
  -H "Content-Type: application/json" \
  -d '{
    "name": "John Doe",
    "email": "john@example.com",
    "preferences": {
      "theme": "dark",
      "notifications": true
    }
  }' \
  -H "X-Cache-TTL: 3600"

Retrieving cached data:

curl http://localhost:8081/cache/user-profile-123

Removing from cache:

curl -X DELETE http://localhost:8081/cache/user-profile-123

Terminal UI

Vibe Hush includes a beautiful terminal UI for monitoring cache performance and managing entries.

terminal

The Terminal UI provides an interactive way to monitor your cache performance and manage entries.

Install Vibe Hush

Choose your preferred installation method

go install github.com/gabrielalmir/hush/cmd/vibe-hush@latest

This will install the latest version of the CLI tool. Make sure your Go bin directory is in your PATH.

After installation, you can run:

vibe-hush --help

Ready to get started?

Check out the documentation for detailed usage instructions.