{"id":16393539,"url":"https://github.com/francescocoding/tte-text-to-emoji","last_synced_at":"2026-02-28T19:01:19.383Z","repository":{"id":210811637,"uuid":"724735615","full_name":"FrancescoCoding/TTE-text-to-emoji","owner":"FrancescoCoding","description":"😀 Text-to-Emoji is a lightweight, easy-to-integrate React hook that converts text into emojis by using OpenAI's GPT-4 model.","archived":false,"fork":false,"pushed_at":"2025-09-14T10:38:08.000Z","size":270,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T12:26:54.217Z","etag":null,"topics":["gpt-4","gpt-api","openai","openai-api","text-to-emoji","tte"],"latest_commit_sha":null,"homepage":"https://tte.fran-dev.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FrancescoCoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-28T17:30:24.000Z","updated_at":"2025-09-14T10:38:10.000Z","dependencies_parsed_at":"2023-12-05T03:24:06.634Z","dependency_job_id":"750ec4b1-2388-4651-8604-b760e8dba73f","html_url":"https://github.com/FrancescoCoding/TTE-text-to-emoji","commit_stats":null,"previous_names":["francescocoding/tte-text-to-emoji"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FrancescoCoding/TTE-text-to-emoji","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCoding%2FTTE-text-to-emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCoding%2FTTE-text-to-emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCoding%2FTTE-text-to-emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCoding%2FTTE-text-to-emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancescoCoding","download_url":"https://codeload.github.com/FrancescoCoding/TTE-text-to-emoji/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCoding%2FTTE-text-to-emoji/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29948228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt-4","gpt-api","openai","openai-api","text-to-emoji","tte"],"created_at":"2024-10-11T04:53:33.186Z","updated_at":"2026-02-28T19:01:19.345Z","avatar_url":"https://github.com/FrancescoCoding.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text-to-Emoji React Hook (powered by ChatGPT api)\n### [🔗 Live Demo](https://tte.fran-dev.com/)\n\n\u003cimg src=\"https://github.com/FrancescoCoding/TTE-text-to-emoji/assets/64712227/13e5cbcb-a5f0-40f6-b002-a0e7990d132d\" alt=\"TTE-Demo\" width=\"800\"/\u003e\n\n## Description\n### 📝🔀😃\nText-to-Emoji is a lightweight, easy-to-integrate React hook that converts text into emojis. Leveraging OpenAI's GPT-4 model, it offers accurate and context-aware emoji translations by using thought out prompt based requests. This hook is perfect for adding a fun and interactive element to any React project. Its versatile nature allows for a variety of creative implementations, such as:\n\n- **Enhancing Website Titles and Headings**: Automatically append relevant emojis to your website's titles or headings, making them more engaging and eye-catching.\n- **Interactive Blog Posts**: Use it in blog platforms to automatically suggest emojis based on the content of the posts, adding a playful touch to written content.\n- **Dynamic Form Inputs**: Enhance user input fields in forms by automatically suggesting emojis based on the text they enter, which can be particularly amusing for social media platforms or messaging apps.\n- **Email or Text Editors**: Integrate it with email or text editors to offer emoji suggestions, adding a layer of expressiveness to communication.\n- **Feedback \u0026 Review Systems**: Utilize it in feedback and review systems to translate user sentiments into emojis, offering a quick visual representation of their feelings.\n\nThese are just a few scenarios where the Text-to-Emoji React App can be creatively used to enhance user experience and engagement across various web platforms.\n\n## Features\n- **Real-Time Emoji Translation**: Converts text to one or more emojis in real time.\n- **Flexible Output**: Options to choose between a single emoji or a sequence of emojis.\n- **OpenAI GPT-4 Integration**: Utilizes the latest in AI technology for precise translations.\n- **Easy Integration**: Designed as a React hook, it can be easily integrated into any React application.\n\n## Usage\n### In Your Project\n\nYou can directly use the `useTextToEmoji` hook in your React application. Here's how to do it:\n\n1. Import the hook into your React component:\n\n    ```javascript\n    import useTextToEmoji from './path-to-useTextToEmoji';\n    ```\n\n2. Initialize the hook with the necessary parameters:\n\n    ```javascript\n    const [emoji, isLoading] = useTextToEmoji(textPrompt, singleEmoji, apiKey);\n    ```\n\n    - `textPrompt`: The text you want to convert to emojis.\n    - `singleEmoji`: Boolean value to determine if you want a single emoji (true) or multiple emojis (false).\n    - `apiKey`: Your OpenAI API key.\n\n3. Use the `emoji` and `isLoading` values in your component as needed.\n\n## Run Demo Locally\n\nIf you want to run the Text-to-Emoji hook demo locally, follow these steps:\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/FrancescoCoding/TTE-text-to-emoji\n    cd text-to-emoji\n    ```\n\n2. Install the necessary dependencies:\n\n    ```bash\n    npm install\n    ```\n    \n3. Start the application:\n\n    ```bash\n    npm start\n    ```\n\n4. The app will be available at `http://localhost:3000`.\n\n## Configuration\n\nEnsure you have a valid OpenAI API key to use the Text-to-Emoji functionality. Set your API key in the hook's parameters or in your environment variables.\n\n## Contributing\n\nContributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Contact\n\nPortfolio - [fran-dev.com/portfolio/contact](https://fran-dev.com/portfolio#about/contact)\n\nProject Link: [TTE: Text-to-Emoji](https://github.com/FrancescoCoding/TTE-text-to-emoji)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescocoding%2Ftte-text-to-emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescocoding%2Ftte-text-to-emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescocoding%2Ftte-text-to-emoji/lists"}