iswangwenbin

ohmytrends is a Bun-only API / CLI for querying Google Trends and Baidu Index

17
3
85% credibility
Found May 28, 2026 at 17 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

ohmytrends is a command-line tool that helps you look up keyword trend data from Google Trends and Baidu Index. You log into your own Google and Baidu accounts through a guided browser window, then the tool fetches and organizes the trend information you want. You can compare multiple keywords, choose different time ranges, and get results either as readable tables in your terminal or as JSON data for use in other programs. The tool also includes a local web server mode so other applications can query trend data automatically.

How It Works

1
🔍 You want to track keyword trends

You discover you need to compare how popular different keywords are over time using Google and Baidu data.

2
📦 You install the tool

You download and set up ohmytrends on your computer, following simple installation steps.

3
🔑 You connect your accounts

The tool opens a browser window where you log into your Google and Baidu accounts normally, just like you would on any website.

4
Your accounts are saved securely

The tool remembers your login so you won't need to do this again next time you use it.

5
You choose how to query
💻
Use the terminal

Type your keywords directly and see beautiful tables of trend data right in your command window.

🌐
Start a local web server

Launch a small server on your computer that lets other programs or scripts fetch trend data.

6
📊 You enter your keywords

Type in the words you want to compare, like 'gpt,claude,gemini', and choose a time range like the last 30 days.

🎉 You get beautiful trend data

The tool shows you charts, daily values, and comparisons for your keywords in easy-to-read tables or clean JSON format.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 17 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ohmytrends?

ohmytrends is a TypeScript CLI and local API server that queries Google Trends and Baidu Index from a single command-line interface. It runs on Bun 1.3 or newer and handles authenticated requests through a guided browser-based login flow, persisting sessions so you do not need to re-authenticate on every run. The tool outputs trend data as readable terminal tables or unified JSON, and can serve results over HTTP for programmatic access.

You interact with it via simple commands: `bun run get -- --words "gemini,claude"` to pull data immediately, or `bun run serve` to start a background API that accepts HTTP requests with polling-based result retrieval. The CLI supports specifying date ranges, geographic regions for Google queries, and handles keyword comparison across both platforms.

Why is it gaining traction?

The main draw is unification: instead of maintaining separate scripts or browser extensions for Google and Baidu data, you get one tool that handles both. The persistent browser session approach means you log in once and the tool remembers your authentication state across runs, which eliminates repetitive login prompts.

The project includes visible-browser debugging mode for troubleshooting, rate limiting protection for Baidu to avoid account restrictions, and a SQLite-backed job queue for the API server that stores results persistently. The dual output formats (table for humans, JSON for machines) make it practical for both ad-hoc exploration and pipeline integration.

Who should use this?

SEO analysts and content strategists comparing search trends across Western and Chinese markets will find the dual-source querying most valuable. Developers building dashboards or automation that need trend data as JSON will appreciate the programmatic API. Marketing teams monitoring keyword popularity over time can use the CLI directly without writing code.

Verdict

At 17 stars, ohmytrends is early-stage but functional, with a credibility score of 0.8500000238418579% reflecting its modest adoption. The documentation is solid and bilingual (English and Chinese), and the codebase includes diagnostics logging for troubleshooting. However, the Bun-only requirement may frustrate developers locked into Node.js environments, and the browser-based authentication approach means relying on third-party UI stability.

For teams specifically needing Baidu Index data alongside Google Trends, this is currently the most practical open-source option. For Google Trends alone, the pytrends library offers more maturity. Evaluate whether Bun compatibility fits your stack before committing.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.