Skip to content

IbrahimDev00/bahas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BAHAS

A modern, cross-platform terminal web search and reader powered by SerpAPI and Go!

Features

  • 🌐 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

Installation

Prerequisites

Build from source

# Clone the repo
$ git clone https://github.com/IbrahimDev00/bahas.git
$ cd bahas

# Build for your platform
$ go build -o bahas

Cross-compile (example for Windows and Mac)

# 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-arm64

Usage

Set your SerpAPI key

bahas config <your-serpapi-key>

Search the web

bahas search <your query>
  • Select an article number to read it in markdown format.
  • Quit anytime with q.

Example

$ 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...

Configuration & API Key

  • Your SerpAPI key is stored securely in ~/.bahas/.env.
  • You can update it anytime with the config command.

Contributing

Pull requests and issues are welcome! Please open an issue for bugs or feature requests.

License

MIT


Made with ❤️ by IbrahimDev00

About

A GoLang based CLI browser for minimal distraction browsing for devs and focused work

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages