divyashriravichandran/bookmark-cli
Composer 安装命令:
composer require divyashriravichandran/bookmark-cli
包简介
A fast and private PHP command-line tool to save, index, and search your favorite web pages entirely from your terminal.
README 文档
README
A fast PHP command-line tool to save, index, and search your favourite web pages entirely from your terminal.
✨ Features
- Instant Search: 1-2ms search responses using a local Redis cache.
- Smart Scraping: Automatically crawls and extracts HTML from unindexed sites on cache misses
- Reliable Storage: Keeps your data safe with local file storage and fuzzy text search via Elasticsearch.
System Requirements
- PHP 8.1 or higher
- Composer (PHP dependency manager)
- Redis Server (Running on port
6379) - Elasticsearch v7.17+ (Running on port
9200with Machine Learning disabled)
🛠️ Installation
- Install globally via Composer using the official Packagist Registry Listing:
composer global require divyashriravichandran/bookmark-cli:dev-main
-
Update your system PATH:
Add the Composer global binaries to your shell profile (~/.zshrc or ~/.bashrc):
export PATH="$HOME/.composer/vendor/bin:$PATH"
🚀 Usage
-
Start Services
Make sure your local database services are running:
# Start Redis
brew services start redis
# Start Elasticsearch
ES_JAVA_HOME=$(brew --prefix)/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home elasticsearch
-
Available Terminal Commands
Run these commands in your terminal:
# Add and index a webpage
bookmark add <website-url>
# Search your bookmarks using fuzzy matching
bookmark search <keyword>
# Clear the Redis cache
redis-cli flushall
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-18