/ Docs

Instant Answers

Instant answers (IA) provide a better user experience by providing direct information without the need for user to click on any result. This feature can easily be disabled in settings.

Adding instant answer

All instant answers code is located in /src/modules/Search/components/TabGeneral/components/InstantAnswer

Create a folder with a descriptive name and make sure that everything is wrapped with <IAWrapper />, then add your logic for displaying Instant Answer in index.tsx similar to how others are displayed conditionally.

All available instant answers

Below is a list of all currently available Instant Answers, some of them might still be work in progress but offer enough functionality to still be included and be useful. More will be available in the future.

1. Calculator

Keywords: calculator, calc

This is an instant answer

Toggle

2. Calendar

Keywords: calendar, cal

This is an instant answer

Toggle

3. Coin Flip

Keywords: coinflip, coin flip

This is an instant answer

Toggle

4. Currency Converter

Condition: Search query contains any currency code, ex. EUR to USD

Data provided by Open Exchange Rates

Toggle

5. Dice Roll

Keywords: dice, dice roll

This is an instant answer

Toggle

6. Downloader

Keywords: downloader, ytdl, youtube download, yt to mp3, etc.

This is an instant answer

Toggle

7. Equation

Condition: /(?:(?:^|[-+_*/])(?:s*-?d+(.d+)?(?:[eE][+-]?d+)?s*))+$/

This is an instant answer

Toggle

8. What's my IP

Keywords: whats my ip, what's my ip, my ip

What's my IP

Toggle

9. Lyrics

Condition: Query contains word lyrics

10. Password

Keywords: random password, password

Random strong password

Toggle

11. RNG

Keywords: random number, rng, random number generator

This is an instant answer

Toggle

12. Stopwatch

Keywords: stopwatch

This is an instant answer

Toggle

13. TicTacToe

Keywords: tictactoe, tic tac toe

This is an instant answer

Toggle

14. Time In

Condition: query.includes("time in")

Data provided by TimeAPI

Toggle

15. Timer

Keywords: timer, alarm

This is an instant answer

Toggle

16. Time Zone

Condition: time zone

Data provided by TimeAPI

Toggle

17. Translate

Keywords: translate

This is an instant answer

Toggle

18. Unit converter

Condition: Search query contains any measurement unit, ex. m to km

This is an instant answer

Toggle

19. Random UUID

Keywords: random uuid, uuid, unique id

Random UUID v4

Toggle

20. Weather

Condition: Search query starts with weather, can also contain location like weather New York

Data provided by ...

Toggle

Read more