WhatTheEarl
projects/ai - 2026-02-12T18:23:53-08:00

Ai

AI CLI 1. Setup This project is a command-line interface tool that connects to OpenRouter models to generate text responses. To set it up: - Install dependencies with `npm install` - Set the `OPENROUTER` environment variable with your OpenRouter API key - Run the CLI using `node main.ts` or by executing the script directly if running in a compatible environment The tool uses the following packages: - `@openrouter/sdk` for interacting with OpenRouter's AI models - `commander` for parsing command-line arguments - `@types/node` for Node.js type definitions 2. Use Cases This CLI tool is designed for: - Generating text responses from AI models based on prompts - Including file contents as context for AI processing - Quick access to different AI models through command-line interface - Cost tracking of AI model usage - Processing code-related tasks using coding-specific models 3. Examples Basic prompt: ```bash export OPENROUTER=*** ai "Explain quantum computing in simple terms" ``` Using specific model: ```bash ai "Write a Python function to sort a list" -m openai/gpt-5.2 ``` Including files as context: ```bash ai "Review this code for bugs" -f main.ts package.json ``` The tool automatically formats file contents with appropriate syntax highlighting and presents them to the AI model along with your prompt. It streams the response in real-time and displays the cost of each operation at the end.

-1
More info
projects/tracker - 2026-02-12T18:23:53-08:00

Tracker

Sleep Tracker 1. Setup - Creates a local SQLite database at `~/.local/share/tracker/tracker.db` - Automatically syncs data with a remote server using rsync - Database contains a `days` table with columns for various sleep/health metrics - Uses command-line arguments for interaction via the Commander.js library 2. Use Cases - Track daily sleep and health metrics - Record anger levels, back pain, brain fog, and skin conditions - Log boolean flags for items like blankets, lotion, pillows, sheets, and shower usage - Track quantifiable activities such as sitting time, steps taken, and yoga sessions - View historical data in a formatted table - Update existing day entries with new information - Delete specific day entries by date 3. Examples ```bash List all tracked days tracker list Set today's data tracker set --steps 8000 --shower 1 --pillow 1 Set specific date's data tracker set 2023-12-01 --anger_level 2 --skin_level 3 --yoga 30 Update existing entry tracker set --lotion 1 --sheets 1 Delete a specific date tracker delete 2023-12-01 ```

0
More info
Ready
Offline