AkashRajpurohit / easy-gif

πŸ•ΊπŸΌ Effortlessly Find and Share Gifs on the Fly!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Bongo cat

Easy GIF!

Effortlessly Find and Share Gifs on the Fly!

Bug report Β· Feature request

Deployed to Cloudflare Workers Powered by Tenor Visitors count follow on twitter GitHub

Motivation πŸ’ͺ

Simple utility service which helps me save ~5 seconds for every time I want to send a GIF to communicate with someone.

These numbers adds up pretty quickly if you are a heavy GIF user as well. πŸ‘€

It uses Tenor GIF API to fetch the relevant GIF based on text search and returns the GIF image directly as the API response (not the URL).

Preview

You can self host it easily using Cloudflare Workers, see deployment section below for more details.

Endpoint πŸš€

  • ${HOST_URL}/${my awesome text} -> pass the text in URL format after slash.

    For example -> https://example.com/bongo-cat. Replace example.com with whatever your self hosted worker host name is.

Deployment ☁️

Self hosting this is pretty straight forward, there are two ways.

The simplest way is to use the "Deploy with Workers" button and deploy the current version of service on your Cloudflare account.

Deploy to Cloudflare Workers

Another way is to fork this repository under your own Github account which will run the deploy-to-cf Github action workflow.

This workflow requires some environment variables so make sure add those

Github Actions

Add these to the forked repository github actions variables.

  • CF_API_TOKEN -> This is your Cloudflare API token which has permissions for Worker scripts.

    Add the API tokens from here

  • CF_ACCOUNT_ID -> This would be your Cloudflare Account ID.

Cloudflare Worker

  • TENOR_API_KEY - Get your tenor API key from here and save it on the worker environment one it is created.

Once these are added, run the workflow and you should see the service being deployed on Cloudflare workers.

Take the worker URL and start sending GIFs πŸŽ‰

Technology Stack πŸ’»

Bugs or Requests πŸ›

If you encounter any problems feel free to open an issue. If you feel the project is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull requests are also welcome.

Where to find me? πŸ‘€

Website Badge Twitter Badge Linkedin Badge Instagram Badge Telegram Badge

About

πŸ•ΊπŸΌ Effortlessly Find and Share Gifs on the Fly!

License:MIT License


Languages

Language:TypeScript 98.2%Language:JavaScript 1.8%