• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

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

Repository Details

πŸ’­ Gobo: Your social media. Your rules.

Gobo Build Status

Gobo is a responsive web-based social media aggregator with filters you can control. You can use Gobo to control what’s edited out of your feed, or configure it to include news and points of view from outside your usual orbit. Gobo aims to be completely transparent, showing you why each post was included in your feed and inviting you to explore what was filtered out by your current filter settings.

Try it out at https://gobo.social.

Gobo is a project of the MIT Center for Civic Media, at the MIT Media Lab. It was created by Jasmin Rubinovitz, Alexis Hope, Rahul Bhargava and Ethan Zuckerman, with generous support from the Knight Foundation.

Installation

Gobo is a Flask-based server side, which uses React & Redux in the browser to render the UI.

Backend

Gobo uses Python 3.7.x.

Create config.py in server/config/ using the provided template to hold the right api keys and database url.

PyEnv

We manage different versions with pyenv. Install this with HomeBrew:

brew update
brew install pyenv

Then install the versions of Python we need:

pyenv install 3.7.3

PyEnv-VirtualEnv

For managing a virtual enviromnent with a specific version of python for our project, we use pyenv-virtualenv. Install this with homebrew as well

brew install pyenv-virtualenv

As noted in their readme, you'll need to add these two lines to your .bash_profile file (or you .profile file). Then open a new terminal session:

eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

And then create a virtualenv for this project. The name is important, because the .python-version file refers to it so it loads automatically when you enter the directory (if eval "$(pyenv virtualenv-init -)" is in your .profile):

pyenv virtualenv 3.7.3 gobo-3.7.3

Requirements and Database

Install all requirements:

$ make requirements-local.py

To set up the database run:

$ export FLASK_ENV=dev
$ make db-setup

Front-end

In another terminal window, cd to /client.

If you haven't already, install Node Version Manager.

Install and use version node version 10.13.0:

$ nvm install 10.13.0
$ nvm use 10.13.0

Install requirements and build static assets:

$ npm install
$ npm run build 

Running

In development mode Gobo has multiple pieces you need to run:

  1. The Flask server handles authentication and interactions between the client and the various APIs.
  2. The Redis queue holds jobs for analyzing content with the plug-in algorithms, and requests to fetch posts.
  3. Celery runs the workers to do things in the queue.
  4. We use npm to run the front-end React code that drives the UI.

Run the Flask server locally:

$ ./run.sh

In order to fetch posts from Facebook, Twitter, and Mastodon you need to run the redis-server and celery worker locally. Open 2 new shell terminals. Then run:

$ redis-server

And in the other one:

$ celery -A server.scripts.tasks worker

In another terminal window open cd to /client and then:

$ nvm use 10.13.0
$ npm start

After that you should be able to see Gobo at localhost:5000

Recurring Tasks

You need to set up three recurring tasks. The first adds tasks to the queue to fetch FB and Twitter posts for users that have been using the system recently. Run this every hour or so:

$ python -m server.scripts.queue_prioritized_user_posts

The second updates the posts from news organizations (used for the "perspectives" filter). Run this every 6 hours or so:

$ python -m server.scripts.queue_latest_news_posts

The third removes old posts (Gobo only tracks the posts within the last two weeks). Run this once a night:

$ python -m server.scripts.delete_old_posts

Manual Tasks

To delete a specific user:

$ python -m server.scripts.delete_user [user_id]

Documentation and tasks for creating and sharing rules found via the flask CLI:

$ flask 

Configuration

Beta Password

You can choose to only allow signup to people that have a special password. Add the following vars in config.py:

LOCK_WITH_PASSWORD = True
BETA_PASSWORD = 'password_you_want'

To remove the password just set LOCK_WITH_PASSWORD = False.

Set up Google Analytics:

Edit the GA ID in client/app/index.js

Development

When updating models that result in a table change (e.g. column added/removed), generate migrations with:

$ flask db migrate

This will generate a new migration file in migrations/versions that should be added to version control.

Deploying

Setup

Gobo is set up to deploy to containerized hosts like Heroku or Dokku. Typically configuration is done with environment variables. For now we've got a system that involves editing the config file on a local branch. We'll get around to changing this eventually.

  1. Create a new local branch called "deploy": git checkout -b deploy
  2. Create a new app on the Heroku website, or with the command line in Dokku
  3. Add the heroku/dokku remote to the GitHub repo
  4. In "deploy" branch, edit .gitignore to not ignore config.py (make sure to also save a copy of config.py somewhere else on your computer)
  5. On your host (Heroku/Dokku), add a database and a redis instance
  6. Update config.py in the deploy branch to match the database and redis url
  7. Push to that deploy remote: git push deploy deploy:master

!!! - Make sure to not push this branch anywhere else!! as this contains sensitive data! - !!!

Versioning

Edit client/app/constants/index.js and bump up the semantic version number before every release. This shows up at the bottom of the About page.

Contributing

A pre-commit hooks will run JavaScript linting (e.g. when you commit, linting will be run). You can try to automatically fix JavaScript linting errors by running:

$ npm run lint_fix

Not all errors can be fixed this way and for more details about the linting error see eslint.

More Repositories

1

AI-generated-characters

AI-generated-character
Jupyter Notebook
455
star
2

Junkyard-Jumbotron

The Junkyard Jumbotron is a web tool that makes it really easy to combine a bunch of random displays into a single, large virtual display. It works with laptops, tablets, smartphones -- anything that can run a web browser. And the magic is that all you need to do to configure one is take a photograph of all the screens.
C++
199
star
3

medrec

medical records on the blockchain https://medrec.media.mit.edu/
JavaScript
156
star
4

unhangout-old

RETIRED
JavaScript
155
star
5

sherlock-project

This repository provides data and scripts to use Sherlock, a DL-based model for semantic data type detection: https://sherlock.media.mit.edu.
Jupyter Notebook
143
star
6

PersonalizedMultitaskLearning

Code for performing 3 multitask machine learning methods: deep neural networks, Multitask Multi-kernel Learning (MTMKL), and a hierarchical Bayesian model (HBLR).
Python
124
star
7

vizml

Plotly dataset-visualization pairs, feature extraction scripts, and model training code for VizML (CHI 2019)
Python
100
star
8

para

JavaScript
100
star
9

django-channels-presence

"Rooms" and "Presence" for django-channels
Python
78
star
10

viznet

VizNet is a repository providing real-world datasets that enable, among other things, (re)running empirical studies with higher ecological validity
Jupyter Notebook
74
star
11

MDAgents

Python
27
star
12

Health-LLM

Python
22
star
13

prg-raise-playground

Boilerplate for playing with and deploying Scratch 3.0 modifications!
JavaScript
19
star
14

MediaCloud-Dashboard

Front-end for the MediaCloud database
JavaScript
16
star
15

storybook-photoshop-jsx

JavaScript
16
star
16

ajl.ai

A web application for crowdsourcing image annotations.
JavaScript
16
star
17

ml-certs

Media Lab Digital Certificates
HTML
15
star
18

MITLegalForum

Transforming Law and Legal Processes for the Digital Age
15
star
19

AffectiveComputingQuantifyMeAndroid

The QuantifyMe platform helps researchers conduct single-case experiments in an automated and scientific manner.
Java
15
star
20

ai-generated-media

Jupyter Notebook
14
star
21

unhangout

Python
14
star
22

2019-MIT-Computational-Law-Course

MIT IAP 2019 Computational Law Course
Go
14
star
23

HERMITS_UIST20

Python
13
star
24

nmi-ai-2023

A repository for the paper "Beliefs about AI influence human-AI interaction and can be manipulated to increase perceived trustworthiness, empathy, and effectiveness" Nature Machine Intelligence 2023.
Jupyter Notebook
13
star
25

empathic-stories

HTML
11
star
26

Evolutron

A mini-framework to build and train neural networks for molecular biology.
Jupyter Notebook
11
star
27

eegreconstruction

Jupyter Notebook
10
star
28

OpenCyberDance

Open source Cybernetic Dance System
TypeScript
10
star
29

kukaslxctrl

A small library intended for controlling KUKA robots using KRC4 over KUKA RSI (Robot Sensor Interface) from Simulink.
C
10
star
30

word-tree

A Unity app designed to help children learn English letter-sound correspondence, sound blending, and sight word recognition.
C#
9
star
31

Terra-Incognita

Your personal media geography. Catherine's thesis project.
JavaScript
9
star
32

CityMatrixAI

CityMatrix is an urban decision support system augmented with artificial intelligence. This repo is the UI for the AI assistant of the project.
C#
9
star
33

2018-MIT-IAP-ComputationalLaw

MIT IAP Computational Law Course
8
star
34

bert-slu

Python
8
star
35

ai-false-memories

repository for the paper "AI-Induced False Memories in Simulated Witness Interviews with Large Language Model"
Jupyter Notebook
8
star
36

DeepABM-Pandemic

Python
7
star
37

Wearable-Sanitizer

Wearable Sanitizer
C++
7
star
38

promise-tracker-builder

Web app for developing and tracking civic monitoring campaigns
JavaScript
7
star
39

MAS.S60.Fall2020

Experiments in Deepfakes : Creativity, Computation, and Criticism
Jupyter Notebook
7
star
40

Generative-Autonomous-Legal-Entities

GALE - Exploring the Potential and the Perils of Autonomous Legal Entities Powered by Generative AI
7
star
41

FutureLaw

Future Law at the MIT Media Lab
6
star
42

Vida_Modeling

User Interface and Simulation Platform for a System Dynamics Model
Python
6
star
43

Realtime-Community-Sign

Software to run LED signs to show community information like bus arrival times and event calendars
Python
6
star
44

TI_EVM_logger

Sensor data log (+stream to websocket) for evaluation modules by Texas Instrument (tested with FDC2214 and LDC1614)
Python
6
star
45

NewsPix

NewsPix is a suite of apps by Matt Carroll, Catherine D'Ignazio and Jay Vachon that drive engagement in local news through pictures and visualizations. Our first app is a browser extension for Chrome and Firefox that delivers breaking news to the new tab window of a desktop user's browser.
CSS
6
star
46

MappingPoliceViolence-Scaper

Scripts that pull together data for our investigation into police violence against un-armed people of color in the US.
HTML
6
star
47

2021-MIT-IAP-Computational-Law-Course

5
star
48

livingmemory

JavaScript
5
star
49

TrustCoreID

For Human Dynamics open collaboration on CoreID project
JavaScript
5
star
50

ml-certs-website-archive

[ARCHIVE] Webpage for the Digital Certificates Project
HTML
5
star
51

Project-Captivate

Glasses project for crowds
C
5
star
52

tidstream

Tools for generating and manipulating live Vorbis and Opus streams
C
5
star
53

thefestival.media.mit.edu

Official website for the Festival of Learning at the MIT Media Lab
HTML
4
star
54

tidzam

Python
4
star
55

doodlebot

DoodleBot guide and resources
OpenSCAD
4
star
56

MIT-CLR

Public Facing GitHub Repo of MIT Computational Law Report
4
star
57

SAR-opal-base

A generalized Unity game builder designed for use in child-robot interactions.
C#
4
star
58

omniFORM

C++
4
star
59

storyspace

A simple storytelling game built in Unity3D / Mono, designed for use with a storytelling robot.
C#
4
star
60

Society-of-Neurons

Jupyter Notebook
4
star
61

SLIC

Sovereign Legal Identity Challenge
4
star
62

OpenMediaLegalHack

#hack4music at MIT Media Lab
4
star
63

MediaCloud-Tag-Explorer

Website you can use to explore MediaCloud tag sets
Python
4
star
64

spiral

Archimedean spiral generator for embroidered speaker coils
Python
4
star
65

AffectiveComputingQuantifyMeDjango

The QuantifyMe platform helps researchers conduct single-case experiments in an automated and scientific manner.
Python
4
star
66

Nightlights-Mobility

A project seeking to link remote observation nightlights data with telecoms-based mobility data
Python
4
star
67

Community-Sign-Server

Server software to manage a network of LED signs showing community information like bus arrival times and event calendars
PHP
3
star
68

tega_teleop

A python rosnode for teleoperating the Tega robot
Python
3
star
69

GDPR-Hack-Day

GDPR Sunrise Eve Hack Day
3
star
70

Computational-Law-IAP-Workshop-2020

3
star
71

jitsi-meet-server

Experimental Vagrant/Salt configuration for automatically deploying a Jitsi Meet video server
Shell
3
star
72

prg-s02-system-setup

Python
3
star
73

pugg

A demon of the second kind, designed to overthrow Pugg, the information pirate
Python
3
star
74

asr_google_cloud

subscribes to microphone feed and publishes ASR result over ROS
Python
3
star
75

DistributedIdentity

Collaborative Project of Sarah Schwettmann and Dazza Greenwood
3
star
76

rr_tools

Tools for analysis and processing for the relational robot project.
Python
3
star
77

MediaMeter-Coder

Code to compare historical coverage of US and World issues in US newspapers.
Ruby
3
star
78

Hack4Climate

Hack4Climate at the MIT Media Lab
3
star
79

LegalHackers

LegalHackers.org related research and development activities at law.MIT.edu, the Media Lab and MIT
3
star
80

unhangout-video-server

RETIRED
SaltStack
3
star
81

dcpctrl_v1

Code developed 2015-2016 to control the second iteration of the Digital Construction Platform.
MATLAB
3
star
82

promise-tracker-mobile

Mobile data collection client for civic monitoring campaigns
JavaScript
3
star
83

nytcorpus-ruby

A ruby parser for the New York Times Corpus
Ruby
3
star
84

opera-timeline

Interactive Timeline of Projects by the Opera of the Future
JavaScript
3
star
85

fbserver

FB Server
Ruby
3
star
86

physioHMD

The PhysioHMD platform introduces a software and hardware modular interface built for collecting affect and physiological data from users wearing a head-mounted display. The platform enables researchers and developers to aggregate and interpret signals in real-time and use them to develop novel, personalized interactions, as well as evaluate virtual experiences. Our design offers seamless integration with standard HMDs, requiring minimal setup effort for developers and those with less experience using game engines. The PhysioHMD platform is a flexible architecture that offers an interface that is not only easy to extend but also complemented by a suite of tools for testing and analysis. We hope that PhysioHMD can become a universal, publicly available testbed for VR and AR researchers.
Python
3
star
87

gee_custom_utilities

A collection of python utility functions for working with Google Earth Engine
Python
2
star
88

AttentionMapDemo

A geographical heatmap of media attention across the globe, from a variety of sources
JavaScript
2
star
89

dhm

Digital Humanitarian Marketplace
PHP
2
star
90

yourAd

ad design and replacement tool to reclaim your browser ads
JavaScript
2
star
91

speech-tapgame-aamas18

This repository contains the source code and associated executables for running the tap game described in "A Social Robot System for Modeling Children's Pronunciation"
Python
2
star
92

Global-Coverage-Study

A small study designed to compare geographic coverage between various types of online news sources
HTML
2
star
93

PopBlocks

JavaScript
2
star
94

subreddit-scripts

A repository for commonly used reddit scripts
Python
2
star
95

DigitalIdentitySessions

July 24 2017 at the MIT Media Lb
HTML
2
star
96

genderinmemoriam

Gender in Memoriam
JavaScript
2
star
97

fluid_statistics

Python Statistics Pipeline
Jupyter Notebook
2
star
98

text_analyses_tools

Matching phrases between source and query text files
Python
2
star
99

HCU400

An Annotated Dataset for Exploring Aural Phenomenology through Causal Uncertainty
2
star
100

omniFORM_2021

C++
2
star