How ashish0kumar/stormy works
Project type and purpose
• stormy is a standalone, command-line weather utility written in Go.
• It fetches weather data from external APIs (OpenMeteo or OpenWeatherMap), parses it, and renders an ASCII art summary in the terminal.
• Its architecture is modular, with a CLI entrypoint, configuration loader, pluggable provider implementations, data models, and display logic.
File structure
Top-level files and directories:
• main.go – CLI entrypoint; flag parsing and orchestration
• internal/weather/ – core domain logic
– config.go – loads and validates ~/.config/stormy/stormy.toml
– models.go – defines Go structs matching API responses
• assets/ – screenshots and ASCII art samples (used for documentation)
• .github/, goreleaser, go.mod – CI/CD, packaging, and dependency management
README for additional insights
• Two provider implementations (no-key OpenMeteo, key-based OpenWeatherMap) – implies a strategy pattern for “provider.”
• Outputs to a terminal; no persistent storage beyond config file.