A modern, cross-platform terminal web search and reader powered by SerpAPI and Go!
- 🌐 Search the web from your terminal using SerpAPI
- 📖 Read articles in clean, readable markdown
- 🎨 Beautifully styled output with glamour
- 🔒 Securely store your SerpAPI key in
~/.bahas/.env
- Go 1.20+
- A SerpAPI API key
# Clone the repo
$ git clone https://github.com/IbrahimDev00/bahas.git
$ cd bahas
# Build for your platform
$ go build -o bahas# Windows
$env:GOOS = "windows"
$env:GOARCH = "amd64"
go build -o dist/bahas-windows-amd64.exe
# Mac (Apple Silicon)
$env:GOOS = "darwin"
$env:GOARCH = "arm64"
go build -o dist/bahas-darwin-arm64bahas config <your-serpapi-key>bahas search <your query>- Select an article number to read it in markdown format.
- Quit anytime with
q.
$ bahas search golang generics
[1] Go Generics: The Complete Guide
https://example.com/go-generics
Learn how to use generics in Go...
Enter the number of the result to read (q to quit): 1
...article content rendered in markdown...
- Your SerpAPI key is stored securely in
~/.bahas/.env. - You can update it anytime with the
configcommand.
Pull requests and issues are welcome! Please open an issue for bugs or feature requests.
MIT
Made with ❤️ by IbrahimDev00