Coder Social home page Coder Social logo

emuarius's Introduction

emuarius

Bridge between Twitter and Mastodon (or any OStatus-compliant instance). Powered by go-ostatus.

For the moment, this is a read-only bridge: you'll be able to see Twitter activity from Mastodon (try to follow twitter_username@rootURL), but you won't be able to interact with it.

Usage

Your server must be configured with a domain name and HTTPS.

go get -u github.com/emersion/emuarius/cmd/...
cp emuarius.example.toml emuarius.toml
# Fill emuarius.toml with Twitter app credentials
emuarius

Docker

docker build -t emuarius .
docker run -p 4004:4004 \
-e "EMUARIUS_TWITTER_CONSUMER_SECRET=xxx" \
-e "EMUARIUS_TWITTER_ACCESS_TOKEN=xxx" \
-e "EMUARIUS_TWITTER_ACCESS_TOKEN_SECRET=xxx" \
-e "EMUARIUS_TWITTER_CONSUMER_KEY=xxx"  emuarius

Configuration

You can configure emuarius with a toml configuration file or environment variables. Environment variables will take precedence over toml values.

toml env default
PORT
address EMUARIUS_ADDRESS :4004 or 0.0.0.0:$PORT
rootURL EMUARIUS_ROOT_URL http://localhost:4004
databasePath EMUARIUS_DATABASE_PATH ./emuarius.db
twitter.consumerKey EMUARIUS_TWITTER_CONSUMER_KEY
twitter.consumerSecret EMUARIUS_TWITTER_CONSUMER_SECRET
twitter.accessToken EMUARIUS_TWITTER_ACCESS_TOKEN
twitter.accessTokenSecret EMUARIUS_TWITTER_ACCESS_TOKEN_SECRET

License

MIT

emuarius's People

Contributors

emersion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

emuarius's Issues

cmd different than the repo name

Just wondering -- is the mismatch intentional?

Observe: github.com/emersion/emuarius/cmd/emarius

The former also appears in config file name. The latter... does not. :)

Build error with entityURL

Easiest just to paste:

$ go get -v github.com/emersion/emuarius/cmd/emarius
....
...
src/github.com/emersion/emuarius/backend.go:113: cannot use entityURL literal (type entityURL) as type struct { Indices []int "json:\"indices\""; Url string "json:\"url\""; Display_url string "json:\"display_url\""; Expanded_url string "json:\"expanded_url\"" } in append
src/github.com/emersion/emuarius/backend.go:120: cannot use entityURL literal (type entityURL) as type struct { Indices []int "json:\"indices\""; Url string "json:\"url\""; Display_url string "json:\"display_url\""; Expanded_url string "json:\"expanded_url\"" } in append
src/github.com/emersion/emuarius/backend.go:127: cannot use entityURL literal (type entityURL) as type struct { Indices []int "json:\"indices\""; Url string "json:\"url\""; Display_url string "json:\"display_url\""; Expanded_url string "json:\"expanded_url\"" } in append
$ go version
go version go1.8 darwin/amd64

Tweets are not shown

Hi,
i am not sure if this i an issue with emuarius, go-ostatus or mastodon but i am not able to see tweets from twitter users inside mastodon (v2.4.0), only the profile with an empty timeline is visible. The output from the emuarius http api looks good and contains all the information.

I am willing to help with a PR but have no clue where to start.

Read-write bridge

Currently, the bridge is read-only. It would be cool to make it read-write.

Mastodon users would login once with their Twitter account on emuarius. That would make it possible for the bridge to mirror on Twitter their activity on Mastodon with Twitter users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.