Share your repls and programming experiences

← Back to all posts
Search engine with quick results and a nice design!
ExplosionScratc (474)

Search engine!

I shamelessly made a search engine called "google". It gets search results from my api and shows it as search results. It also supports cool mode, incognito (no history pushed and no title changes) shareable urls' no tracking (unlike actual google) news and images searching!

EDIT

Lots of people are asking about incognito and cool mode, just type the konami code!

Stuff I used

A response to criticism

Many people (CsharpIsGud) have said that this took no work whatsoever, and that it's easy to make this in 15 minutes:

Okay, here are the steps to take to make this:
1) Design something
2) Make another repl for an api
3)

var google = require("google-it");
 app.get("/google", async (req, res) => {
   res.json(await google({ query: req.query.q }));
 });

Instant 80+ upvotes.
Now imagine you're me and actually spend enough time looking at the > repl to realize its easy to do in less than 15 minutes, and that you > see them on the front page of repl all the time drowning out most of > the impressive projects.

Now I want to try to respectfully respond to this criticism. I worked for an extremely long period of time to create this, and while (as CsharpIsGud said) the google API part took about 15 minutes, the other parts of this search engine took much, much longer to make. I put real effort into this, and when people say otherwise, it makes me feel sad that I ever shared it with this hateful community. If you don't agree with me here are some of the things other than the base search which I implemented, which took much more time:

  • Embeds
    • YouTube videos, scratch profiles, github gists and more are embedded automatically for easy previewing of pages
  • Images and news search
    • I implemented a lightbox for images, lazy loading, and a graceful search implementation.
    • News search, this was tricky to make. I had to create an API key with New York Times to search news and show it on the page in a similar way to other search results.
  • Quick answers, dictionary lookups and math
    • This took me hours. There are quick answers from the Wolfram Alpha AI, so if you look up something like "Who is president" or "Who is Kanye West" it'll come up with a quick answer.
    • Dictionary lookups are also supported, via searching "Define <term>", these also use my API and embed audio files with pronunciation as well.
    • Math is also included, if your search is parseable by the JSMath library you will get a quick answer with the results for your math.
  • Ease of use
    • I made this search engine simple to use, have a nice theme, dark mode, incognito mode where it doesn't push an entry to history
    • Nice styling that looks good.
  • Searching without reloading
    • This enables users to search without reloading the page, useful for conserving internet
  • Offline use
    • Any searches you have previously made will work offline, and the homepage will load offline
  • PWA support
    • This search engine supports installing as a Progressive Web Application, meaning it works offline, and can be installed as a desktop app.

I hope you guys reconsider your opinions about this, and I truly hope that for your own sake you will learn to actually look at the projects, rather then make assumptions about the work that went into them.

About tracking

I'm not trying to track you guys, I honestly have no idea what that cookie's from, any help would be great!

Cookies:

  • These are the cookies in use on the site, I never set any cookies in the code so I'm not sure why this happens:
Comments
hotnewtop
xXToluwaXx (58)

Me: *uses real google* tmi bruhhhh
*uses this* noice this is better
Me: *stressing out cuz I didn't hit upvote*
*clicks upvote*

ThanhTails (14)

@xXToluwaXx In your picture, a frog drink tea.....(what is this firm?).:)V

xXToluwaXx (58)

@ThanhTails its........ pog(play of the game)

CSharpIsGud (962)

@xXToluwaXx (You're still using real google if you are using this and I should stop reading the comments here because I am getting more and more annoyed with every comment I see thinking he made a search engine without even looking at his api repl as well as even more amazed at how things like this get so many upvotes and god why do I accurately label my posts I should just lie and say they are all 100 times more complicated than they actually are or just use preexisting apis to do everything in 20 lines of code and then get 1000000 upvotes)

xXToluwaXx (58)

Yes, Lipton for everyone @tussiez

xXToluwaXx (58)

@CSharpIsGud Well, I think his api shows the steps he took to making this so please don't be mad and keep chill.

CSharpIsGud (962)

@xXToluwaXx Okay, here are the steps to take to make this:
1) Design something
2) Make another repl for an api
3)

var google = require("google-it");
  app.get("/google", async (req, res) => {
    res.json(await google({ query: req.query.q }));
  });

Instant 80+ upvotes.
Now imagine you're me and actually spend enough time looking at the repl to realize its easy to do in less than 15 minutes, and that you see them on the front page of repl all the time drowning out most of the impressive projects.

poppt1 (0)

your not funny

xXToluwaXx (58)

@poppt1 cough cough haters better leave

CSharpIsGud (962)

@xXToluwaXx Uh did you mention the wrong person.
Either way the word hater is thrown around on replit too loosely for it to matter.
Calmly pointing out how something that gets 100 upvotes can be done in just 15 minutes is basically the same as getting super annoyed every time you see something with so many upvotes that doesn't even accurately describe what it is and that people fall for it.
So what is the point of bothering to come out sounding "nice".
According to repl you're a hater if you do anything but mindless praise, even when it is completely obvious(Excluding this, because the obvious part is in a separate repl almost no one here bothered to look at.) that it wasn't that difficult to do.

While I used to take my time editing everything I say to make it sound "nicer" the more things like this get praised for using up space in trending the more annoyed I get.
It's not like I'm scared people won't upvote my posts because they think I'm a "meanie" or something either. I rarely post anything because I wait until I have something more complex to post, and even then I don't get more upvotes than if I were to just make the super low effort version of the same thing and post that instead, in fact the super low effort version usually gets 3-4 times as many.

Pizzaz4me (63)

ok that's it I'm removing my upvote from this repl @CSharpIsGud

Pizzaz4me (63)

time to remove my upvote then ig @CSharpIsGud

Whippingdot (620)

Hey ummm @CSharpIsGud is moi friend and i um way dumber than him so uuuuuuu i ain't upvoting. Also I think you should listen to him as he is one of the most logically / smart coders on this website and he knows wut he is saying.

ExplosionScratc (474)

@CSharpIsGud That's pretty mean to me, yes, that's the API to get google search results, but it takes much more time to intregate youtube video embeds, styling, news and image search, quick answers from an ai, dictionary lookups, math answers, embeds of github gists, scratch accounts, and much more. This project took me several weeks to create, and the part you describe took me, yes, about 15 minutes. But after that 15 minutes I did not have a project that I liked, or that was comparable to google.

ExplosionScratc (474)

@Pizzaz4me 😭 Do you realize how much time I actually spent on this?

CSharpIsGud (962)

@ExplosionScratc The other parts are good, but yeah I guess things here only get upvotes if you publish the easy parts and have the harder ones hidden away

StringentDev (211)

@CSharpIsGud @CSharpIsGud @Whippingdot @ExplosionScratc
Now, i do not care about the backend. What I love... is when people take the time to create a polished Frontend. [Blue, Red and Yellow so not go together well.]

Even though the main API may be easy to make, i still respect that. Ik some of you may be like **scough** uh who cares? but quite a majority of users care.

Well... im gonna create a search engine now that scapes the web itself, you have caused me to finally actually start this projects for once :D

CSharpIsGud (962)

@StringentDev Plenty of people on repl can already do that. It doesn't matter how pretty it is if you are calling it something it isn't.
I know at least a few people here came because they thought they were going to see a search engine, not just the front end of a search engine

Retrospicer (10)

@ExplosionScratc This is so cool! You definitely put a lot of effort into this!

It could be better if it opened the results full-tab in a new tab like a google or bing search.
(I'll fork it and try to do that)

xruichen0411 (1)

haha csharp so funny

Battledash2 (79)

This is very rude to the person who made this. You have no clue how long it took. So respectfully, SHUT UP. @CSharpIsGud

Battledash2 (79)

Nobody thinks he made his own search engine, just a cool / nice creation. @CSharpIsGud

Battledash2 (79)

Clearly not. Maybe you're just trying to make your friend look better because he made a huge mistake by disrespecting the creator of this repl. @Whippingdot

CSharpIsGud (962)

@Battledash2 Uh no, there are lots of people here that think that.

CSharpIsGud (962)

@Battledash2 And don't start that "You have no clue how long it took" crap, because you can tell very easily when something didn't take long. The design probably took the longest to make of this which does look good and the part of the api that makes it function did take not that long. At least not most of it.

StringentDev (211)

@CSharpIsGud Thats exactly my point. Im more happy he BOTHERED about the UI. Plus im afraid you have not heard of a metasearch engine, like Gigablast.

Metasearch
These are Search Engines that use other search engines to provide search results. Unfortunately, it may be that one of the modules may be requesting the cookies as a result.

Critsism
Ik his backend may be simpler but a metasearch is still, no matter how you thing about it, a search engine. Look at DuckDuckGo for example, it uses the Yandex search index hence why you must use the Yandex Webmaster to add your website.

ExplosionScratc (474)

A response to criticism

Many people (CsharpIsGud) have said that this took no work whatsoever, and that it's easy to make this in 15 minutes:

Okay, here are the steps to take to make this:
1) Design something
2) Make another repl for an api
3)

var google = require("google-it");
 app.get("/google", async (req, res) => {
   res.json(await google({ query: req.query.q }));
 });

Instant 80+ upvotes.
Now imagine you're me and actually spend enough time looking at the > repl to realize its easy to do in less than 15 minutes, and that you > see them on the front page of repl all the time drowning out most of > the impressive projects.

Now I want to try to respectfully respond to this criticism. I worked for an extremely long period of time to create this, and while (as CsharpIsGud said) the google API part took about 15 minutes, the other parts of this search engine took much, much longer to make. I put real effort into this, and when people say otherwise, it makes me feel sad that I ever shared it with this hateful community. If you don't agree with me here are some of the things other than the base search which I implemented, which took much more time:

  • Embeds
    • YouTube videos, scratch profiles, github gists and more are embedded automatically for easy previewing of pages
  • Images and news search
    • I implemented a lightbox for images, lazy loading, and a graceful search implementation.
    • News search, this was tricky to make. I had to create an API key with New York Times to search news and show it on the page in a similar way to other search results.
  • Quick answers, dictionary lookups and math
    • This took me hours. There are quick answers from the Wolfram Alpha AI, so if you look up something like "Who is president" or "Who is Kanye West" it'll come up with a quick answer.
    • Dictionary lookups are also supported, via searching "Define <term>", these also use my API and embed audio files with pronunciation as well.
    • Math is also included, if your search is parseable by the JSMath library you will get a quick answer with the results for your math.
  • Ease of use
    • I made this search engine simple to use, have a nice theme, dark mode, incognito mode where it doesn't push an entry to history
    • Nice styling that looks good.
  • Searching without reloading
    • This enables users to search without reloading the page, useful for conserving internet
  • Offline use
    • Any searches you have previously made will work offline, and the homepage will load offline
  • PWA support
    • This search engine supports installing as a Progressive Web Application, meaning it works offline, and can be installed as a desktop app.

I hope you guys reconsider your opinions about this, and I truly hope that for your own sake you will learn to actually look at the projects, rather then make assumptions about the work that went into them.

About tracking

I'm not trying to track you guys, I honestly have no idea what that cookie's from, any help would be great!

Cookies:

  • These are the cookies in use on the site, I never set any cookies in the code so I'm not sure why this happens:
FlaminHotValdez (615)

@ExplosionScratc As multiple people in the comments have proven, this does indeed track you. You may as well remove the part about not tracking from the post.

xxpertHacker (926)

@ExplosionScratc What we care about is the blatant lie that is the title and first sentence of the post:

I shamelessly made a search engine...

This is not a whole search engine, it doesn't no crawling of it's own, nor does it store indexed/crawled data somewhere, nor does it implement searching though the DB when queried, Google does all of that for you.

If you had correctly branded your work in the first place, the entire situation would've been avoided, and everyone would be happy with your work, even I'd have came by to say "good job!" and tossed a cycle your way.

Please, just rebrand the post: it's an alternative frontend to Google.

RodneyBerry (0)

@ExplosionScratc can u make it to where it donst use your real google browser so i can watch yt and school and stuff?u would be a life savor

Th3Coder (119)

@ExplosionScratc I think when you import the Google API (or something like that), part of the code sets cookies! Of course that still counts as tracking though. Google, you creep.

Also yes, it is technically kind of a lie you made the search engine so you might want to change that... nonetheless I appreciate your effort!

Battledash2 (79)

In a bad way or like is google tracking you? @FlaminHotValdez

ThanhTails (14)

WOW!This is amazing
I can't believe this.Another search engine.


More than incredible!!!!!!!!!!!!! LOL XD

CSharpIsGud (962)

@ThanhTails

var google = require("google-it");
  app.get("/google", async (req, res) => {
    res.json(await google({ query: req.query.q }));
  });

cough cough

FlaminHotValdez (615)

yknow...considering your api basically uses google to get results, I'd say it does track you, as proven by several people in the comments.

Th3Coder (119)

@FlaminHotValdez I can confirm this statement

Peaseboy2234 (3)


Your get the official approval from the unites states of kirb

LingWu1 (90)

pog this is amazing

AryyanVineeth (18)

BEST THING ON REPL.IT

CSharpIsGud (962)

@AryyanVineeth Actually the best thing on replit are the very few real operating systems.
This literally uses google (his api just makes a request to google for the results)

CSharpIsGud (962)

@FlaminHotValdez A few other people made some too, but there are a couple of good games and stuff out there, no doubt strangled by boring multi choice text adventures.
He said best thing on replit, and I don't see anything that can be better on replit than an operating system.

FlaminHotValdez (615)

@CSharpIsGud I agree lol, although maybe a text editor? A coding tool for coders on a coders' forum?

CSharpIsGud (962)

@FlaminHotValdez If you find one of those on repl, there is a very high chance it just uses monaco or ace. And you will still see people getting impressed by it.

Whippingdot (620)

Hey, i don't see any repl.it anywhere... I use replit.com so maybe check that out ;) @AryyanVineeth

@CSharpIsGud hmmm try not to say wut are the best things on replit cause there are many and you cannot state them all in one line

@FlaminHotValdez cough cough advertisement

FlaminHotValdez (615)

@Whippingdot bro I haven't made any text editors

CSharpIsGud (962)

@Whippingdot An operating system quite literally is the best thing on replit.
Just getting one to run on replit is an achievement, making one is even more so.
And there are not that many, a lot of repl are just text adventures and chat websites and the like. The ones that are very good still don't surpass creating an entire operating system from scratch. I could very likely state them all in one line.

Whippingdot (620)

O then was it jb who did? I kinda get confused between the two of you @FlaminHotValdez

FlaminHotValdez (615)

@Whippingdot How do you confuse me and jb lol

Whippingdot (620)

I don’t know... and WAIT how did you catch up to me in cycles? @FlaminHotValdez

FlaminHotValdez (615)

@Whippingdot idk glitch probably

EDIT: now that I think about it I've seen a lot of people just randomly gain cycles then lose them after a while, rip I'm gonna be back at 440

Wuru (42)

What about the few real programming languages :-) @CSharpIsGud

IMayBeMe (399)

@CSharpIsGud Honestly some of the languages made on replit are also fantastic. I have seen some unbelievable ones get less than twenty upvotes while cheap terminal games get 200+.

Note: Yes, I know that my word bank may not have been the highest quality.
Battledash2 (79)

At least he put work into it. @CSharpIsGud

CSharpIsGud (962)

Yes the design is nice, and probably took some time. Except the part about being able to be done in less than 15 minutes was mostly exaggeration. But I am sure if you just threw out all the design it would be(Again don't forget I was talking about the actual search engine, not whatever extras you added onto it with design or through totally different services).

Even though I've lost the whole will to edit my comments into some perfect paragraph that doesn't sound 'mean' at all which I am sorry about but it makes me feel sad that I ever shared it with this hateful community. does not help anything. 20% of repl will just upvote anything and if anything it is far in the opposite direction.

While I did go a bit overboard I don't recall ever outright saying it sucked. The design is fine, everything but the google api part is good.

FlaminHotValdez (615)

@CSharpIsGud then there are people like me, who upvote about 50 posts total on their over a year of activity on replit.

PyCoder01 (71)

If google published a new version of google on replit it would instantly get 200+ upvotes

TimothyClark222 (25)

there should be easter eggs like real google

myspacebarbroke (0)

your just webscraping off of google.. how is this called a search engine?

PikachuB2005 (8)

just redirects to google, but nice design!

EllieBrown123 (5)

lol i found both my yt channels :) an upvote from me bro!

IGamer123 (56)

This is my new google

IGamer123 (56)

Lol what am I doing with meh life
'Sound Thing?'

NathanTodd2 (11)

How do you make the chrome os app

TechStudent11 (1)

hmmm noice. this has potential.

Whippingdot (620)

O hoi there explosion. Long time no see

FlaminHotValdez (615)

@Whippingdot

o hoi there whippingdot

long time no language

Whippingdot (620)

Fine foine fence ai well oose mee lansage @FlaminHotValdez

Battledash2 (79)

wat wot wheet what as iz languige @Whippingdot

MarzanBin (0)

just awesome👍👍

SilvermoonCat (440)

huh
I searched up my instagram and it said I had 2 less followers than I actually had xD

nice search engine, the design is rlly nice :D

StringentDev (211)

this is classified as a meta-search engine, using other search engines to search the web. This is easier to set up but now... i better set up my own eventually.

Th3Coder (119)

Great attempt! Speaking of design, it's much better than Google...

...but for every other aspect, it's basically just Google!

Why?

IT TRACKS YOU and it won't work when we block the cookies! Proof:

To make it work, I unblocked the cookies... and there's yet another flaw.

It biases results! Proof:

The first result above is searx.me, which is not the real Searx. Compare that with DuckDuckGo, where the first result is searx.ir (which is the real Searx):

As a human that respects privacy, I recommend to not use this since it tracks you and biases results, just like Google!

Note: I don't mean to hate this post (I actually like the UI!), but just saying IT'S LITERALLY JUST GOOGLE.

xxpertHacker (926)

@Th3Coder It's no coincidence, check his API Repl, find ./google.js

Th3Coder (119)

@xxpertHacker

module.exports = app => {
  var google = require("google-it");
  app.get("/google", async (req, res) => {
    res.json(await google({ query: req.query.q }));
  });
  app.get("/google/help", (req, res) => {
    res.send("Googles the q query in the get request given.");
  });
};

You're right! It biases results in the exact same manner as Google!

Also, if you don't mind, can I ask you something? There's a file caled ip.js and here's the content:

module.exports = (app) => {
	var geoip = require('geoip-lite');
	app.get("/ip", (req, res) => {
		var ip = req.query.ip || req.query.q || req.headers['x-forwarded-for'] || 
     req.connection.remoteAddress || 
     req.socket.remoteAddress ||
     (req.connection.socket ? req.connection.socket.remoteAddress : null);
		if (!ip){
			res.json("No IP found. Use the 'ip' or'q' query to specify one, if left blank it should use your IP adress.");
		}
		res.json(geoip.lookup(ip));
	})
}

Does this mean it collects IP Addresses? (I mean, it literally says it should use your IP address so I think so) Thanks!

xxpertHacker (926)

@Th3Coder Seems like it takes the client's IP, and the client would be the user of the website, I guess this means that they lied?

Th3Coder (119)

@xxpertHacker oh ok, thanks! But they 'lied'? I don't see any lie here... Except for the fact this search engine still tracks us despite being said otherwise

Th3Coder (119)

@xxpertHacker (slaps self for not noticing the obvious) and for the third time I'll say this: thanks!

ExplosionScratc (474)

@Th3Coder No, it most certainly doesn't. That endpoint in the API returns your IP adress, but it does not track it. The search engine does not interact with this api endpoint in any way, nor does it record any information about its users.

ExplosionScratc (474)

@xxpertHacker I did not lie. This is a part of my API, which does not track anyone. This API endpoint returns the user's IP adress or parses one passed through the 'q' parameter. In no way does my search engine use this part of my API or track any information about the user.

Th3Coder (119)

@ExplosionScratc thanks for replying!

The search engine does not interact with this api endpoint in any way, nor does it record any information about its users.

I have several questions:

  1. Why would it return the IP Address if it doesn't track users? That doesn't really make sense for me...

  2. Even if it doesn't track IP Addresses, why does it use cookies? (It obviously does, the screenshot above is the proof).

CSharpIsGud (962)

@Th3Coder 1. You might need to know your own IP address for some reason or just find it cool. It is highly unlikely anyone here would waste processing resources on trying to ddos random ips anyway, you would just restart your modem or something and get a new IP.
2. Just because a site uses cookies doesn't mean they are used to track you. If a site literally stops working when cookies are blocked then it is far more likely that it was being naive and using cookies as a way of storing its own data.
The most common use of cookies is keeping you signed in to websites so you don't have to login every time.

Th3Coder (119)

@CSharpIsGud wow I didn't know that! Thanks!

  1. Indeed, I might need to know my own IP Address! (But this search engine doesn't show my own IP Address, so why is it collected?) Also good logic.

  2. I know websites like Replit use cookies to keep us signed in (the cookies I despise are tracking cookies), but using cookies for storing its own data? That's new!

Anyways, thanks for clearing things up!

CSharpIsGud (962)

@Th3Coder His api is not just the google API, the IP lookup is the only thing that even looks at ips and it doesn't collect it at all, it just sends it right back with info about it.
If you google what is my ip google will tell you your IP too

Th3Coder (119)

@CSharpIsGud ohh cool! Also it's pretty ironic how your profile picture is C instead of C#

xxpertHacker (926)

@ExplosionScratc Well, if anything, you claimed to have created a search engine, but your API pulls data directly from another search engine.

You didn't do any of the searching on your own.

FlaminHotValdez (615)

anyone notice the surprising amount of people who have 0 cycles, 0 comments and 0 posts? And how many of their repls seem an awful lot like school assignments?

Are you begging your classmates for upvotes?

CyberHacker101 (118)

yeah...um.. WHY IN THE BLOBING WORLD DIDNT I KNOW I WAS ON THE INTERNET jdk jalkndj awoidjo;alwk n @ExplosionScratc