Skip to content

Narayan-Kumar-Yadav/MySearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySearch (Wikipedia Edition)

Live Demo

MySearch is a fully functional Google-style search engine web app that uses the Wikipedia API to provide real-time search results, completely free and without requiring any API keys.

Overview

This project is built purely with HTML, CSS, and Vanilla JavaScript. It mimics the classic Google search interface while routing all search queries correctly to fetch data from Wikipedia. image

Features

  • Google-Style Homepage: Clean layout, responsive design across mobile and desktop.
  • Wikipedia Search Integration: Uses Wikipedia Search API (action=query&list=search) to fetch articles.
  • Image Previews: Uses the Wikipedia Page Summary API (api/rest_v1/page/summary/) to display thumbnail images automatically for results.
  • Dark Mode: Toggle button that remembers your preference in localStorage.
  • Search History: Saves recent searches into localStorage and provides suggestions when the search input is focused.
  • Voice Search: Utilizes the modern Web Speech API to search by voice (available on supported browsers).
  • Keyboard Shortcuts: Start typing quickly on the page by using the / key to focus the search bar.

How to run

  1. Clone or download this project.
  2. Open index.html in your web browser.
  3. No build steps, Node.js, or server required (thanks to Wikipedia API CORS origin=*).

APIs Used

  • Search Query API: https://en.wikipedia.org/w/api.php
  • Featured Image API: https://en.wikipedia.org/api/rest_v1/page/summary/
  • No API key is needed. Safe and free to run!

Project Structure

mysearch/
├── index.html
├── results.html
├── README.md
├── css/
│   └── style.css
├── js/
│   ├── home.js
│   ├── results.js
│   └── darkmode.js
└── assets/

About

MySearch is a Google-style search engine built using Wikipedia API. It provides fast, clean, and informative search results with a modern UI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors