Open Source • Stable
cowcow CLI
Offline-first data capture and processing tool built with Rust. Designed for researchers, developers, and data scientists working in environments with limited connectivity.
RustSQLiteWebAssemblyCLI
v1.2.4
Latest Release
~2MB
Binary Size
3 OSs
Linux, macOS, Windows
Installation
Using Cargo
# Recommended
cargo install cowcow
Using Homebrew
# macOS
brew install cowcow
Using Curl
# All platforms
curl -sSf https://get.cowcow.dev | sh
Usage Examples
# Initialize a new project
cowcow init my-project
# Capture data from stdin
echo '{"name": "John", "age": 30}' | cowcow capture --format json
# Process a CSV file
cowcow process data.csv --transform normalize --output processed.json
# Sync with remote endpoint
cowcow sync --endpoint https://api.example.com/data
Example Data Outputs
See what types of data you can capture and process with cowcow
Field Survey Data
JSONOffline survey responses with metadata
{
"survey_id": "field_2024_001",
"responses": [
{
"participant_id": "P001",
"location": {
"lat": 34.05,
"lon": -118.25
},
"timestamp": "2025-11-17T19:10:11.341Z",
"answers": {
"q1": "Agree",
"q2": 5,
"q3": "Agree"
}
}
],
"sync_status": "pending",
"captured_offline": true
}IoT Sensor Stream
CSVReal-time sensor data with quality scores
timestamp,sensor_id,temperature,humidity,quality_score 2025-11-17T19:10:11.341Z,SENS_001,22.7,45.2,0.99 2025-11-17T19:11:11.341Z,SENS_001,22.5,45.3,0.96 2025-11-17T19:12:11.341Z,SENS_001,22.3,45.2,0.99 2025-11-17T19:13:11.341Z,SENS_001,22.5,45.0,0.98
Processed Analytics
JSONAggregated results after transformation pipeline
{
"processing_pipeline": "normalize > filter > aggregate",
"execution_time_ms": 201,
"results": {
"total_records": 15420,
"filtered_records": 12336,
"aggregations": {
"by_region": {
"north": 3387,
"south": 3113,
"east": 1865,
"west": 3971
},
"avg_quality_score": "0.74"
}
}
}Architecture
CLI Interface
Command-line interface with intuitive commands and flags
Data Processor
Multi-threaded processing pipeline with custom transformations
Storage Layer
Optimized SQLite with automatic backups and conflict resolution
Sync Engine
Efficient delta synchronization with retry logic
Use Cases
Research Data Collection
- •Field studies in remote locations
- •Offline survey collection
- •Experimental data capture
- •IoT sensor data processing
Business Applications
- •Point-of-sale systems
- •Inventory management
- •Mobile workforce tracking
- •Local analytics processing
Edge Computing
- •Real-time sensor networks
- •Distributed data processing
- •Low-latency applications
- •Bandwidth-constrained environments
Development Workflows
- •Scriptable automation
- •CI/CD pipeline integration
- •Data validation testing
- •Custom processor plugins