• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Get an abbreviated description made by an AI of you based on your latest tweets. What do other users perceive from what you tweet?

Logo de abbreviame

Originally: A proof of concept to know if an AI can answer any question about any user reading all their timeline.

At the end: Get an abbreviated description made by an AI of you based on your latest tweets. What do other users perceive from what you tweet?

What you can do with this

You can do several things, like:

  • Replicate original abbrevia.me service.
  • Pivot original abbrevia.me for other use cases, e.g. a service for corporates.
  • Use it for other questions. Actually, the code was prepared to accept other questions, beyond the original one. It was never used in production, but you can send an "anotherQuestion" parameter in your query 😱 Be creative! For example, you can say: "Specify 10 keywords that match this user."

Some limits you must be aware of:

  • Twitter apps have a rate limit. Check what does this mean for your use case.
  • OpenAI has a max quota of 120 $. If you expect to spend more, fill the form you will find in their site soon.

Installation & local execution

If you have any question or you find a bug, please, let me know. If you want to contribute, go ahead and do it. If you want to do something similar with that code, DM me for help; especially if you belong to an underrepresented group in technology. I might not answer, but if I have time, I am willing to help.

You can adapt this code to use any database or server. In my case, I use firebase, so this is a guide to make it work in firebase.

firebase use --add
  • Inside functions folder
cd functions
  • Copy .env-example file to .env
cp .env-example .env
  • Edit ".env" file and add your own API keys (from twitter and openAI)

  • Use node 16. I usually use NVM in order to use different node versions.

nvm use
  • Install dependencies
npm install
  • Change the ROLE_SYSTEM and the prompt, in following files:

    • functions/app/gpt/query-gpt-chat.js (ROLE_SYSTEM_INSTRUCTIONS variable)
    • functions/app/prompt.js (PROMPTS variable)
  • In your root folder again

cd ..
  • Add a "service-account.json" for firebase database connection.

  • Run an emulator

firebase emulators:start

The rest of this, I leave it to you!

License

MIT License. Read LICENSE.md

It is not mandatory to notify me if you use this code, but it would be great to know that you use it.

Recognition & Contribution

Thanks @dianait_ for the abbreviame logo.

More Repositories

1

cypress-cucumber-example

An example skeleton with Cypress and Cucumber
JavaScript
82
star
2

ric-escape

RIC escape is a short, fast paced, conversational adventure escape game for Google Assistant
JavaScript
11
star
3

tdd-bai

TDD BAI: TDD Based on AI. Experiments to understand if a development flow can be used with GPT writing code from test specifications
JavaScript
10
star
4

simonly

simon.ly - play simon with your family
JavaScript
6
star
5

cypress-cucumber-examples-features

Gherkin features for cypress-cucumber-examples
Gherkin
4
star
6

jest-plugin-yeelight

A Jest plugin to change yeelight smart lights based on test results. Make your room red when your tests are failing. Light it green when everything is ok
JavaScript
3
star
7

scure

Script Creation Utilities for Ric Escape (Conversational Adventure Games)
JavaScript
2
star
8

escape-monolith

Escape del Monolito - Un extraño monolito aparece de la noche a la mañana en las costas de Maine. ¿Quién lo ha enviado? ¿Con qué intención? Un mensaje aún más extraño indica que tenemos una hora para demostrar la valía de la raza humana. Pero, ¿a quién?
Vue
2
star
9

escape-maldicion-museo

Escape de la Maldición de Museo, es un escape room ideado para ser teatralizado a un grupo de amigos/as.
Vue
2
star
10

empezar-tdd-facil-php-jquery

Empezar TDD es fácil si sabes cómo. Ejemplos con PHP y jQuery
HTML
2
star
11

commitia

JavaScript
2
star
12

katayuno-escape-countdown

A VueJS countdown timer for Katayuno Escape Edition (fully done with TDD). My first VueJS component.
JavaScript
2
star
13

escape-blackout

A turn-based escape room experience. Streaming the development on twitch.
JavaScript
2
star
14

commpanion

Whatsapp for organizations
1
star
15

taller-serverless-vicenc

JavaScript
1
star
16

tcr-mars-rover

Mars Rover Kata implemented through TCR (test commit revert)
JavaScript
1
star
17

fastai-selfie-counter

A People in Selfie Counter made with fastai after lesson2
Python
1
star
18

airtame-usb-setup

Setup your Airtame Wifi properties through USB
JavaScript
1
star
19

tooche-game

Tooche game - a game whose progress you can follow
JavaScript
1
star
20

test-commit-revert-node

A node implementation of TCR (test, commit or revert), the TDD paradigm proposed by @KentBeck
JavaScript
1
star
21

tooche

Keep Talking And Nobody Explodes meets Dixit - an open side project that you can follow: https://medium.com/@itortv/voy-a-compartir-todo-el-trabajo-de-mi-futuro-pet-project-me-acompa%C3%B1as-4ff3d6c69cd
HTML
1
star
22

readkey

A simple node key listener to read keys pressed on keyboard (based on a config object)
JavaScript
1
star
23

viajes-de-coco

¡Busca a coco a lo largo de sus vacaciones en Bretaña y Normandía!
JavaScript
1
star
24

the-anomaly-web

Experimento para ver si se puede replicar la experiencia de un walkie talkie, comunicándose con una aplicación de Dialogflow (el framework de referencia para Google Assistant).
Vue
1
star
25

mansion-espiritus

La Mansión de los Espíritus es un juego de Google Assistant en el que debes escapar de una mansión encantada mientras cierras la puerta al infierno
JavaScript
1
star