Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



17 Commits

Repository files navigation


A simple PHP flat-file pastebin for Twitter.

Ever started replying to someone on Twitter, knowing as you did it that there's no way you could fit it all into 140 characters? Did it drag on into two, three, four tweets, cluttering up everyone's list? Twixt can help.

Having done just that several times, I was after a simple, disposable way of putting more than 140 characters up somewhere on the internet that I can link from a single tweet. Thus, I created this simple PHP script. Give it a block of text, and it'll generate you a unique web page and grab you an short URL for it.

It used to be integrated with SuccessWhale and run at, but has now been discontinued. The gh-pages branch of this repository is used to host a non-functional archive of the old pastes.

If you'd like to run this from your own server, you can get the source code from GitHub. To run it, you'll need a web server that can run PHP, and the directory the script sits in must be writable by whatever user you run your web server as.


Twixt also provides an API for use by applications such as my own SuccessWhale. To use it, simply provide it with a properly URLEncoded “tweet” argument, for example:

Twixt will return an HTTP 302 redicrect to the text-format output page of's “shorten” API, which will be either an HTTP 200 OK containing the shortened URL, or an HTTP 500 Internal Server Error containing the error message.

If you prefer not to use, you can also supply the raw parameter with value true, like so:

This will return either an HTTP 200 OK containing the URL, or an HTTP 500 Internal Server Error containing the error message. This URL will not be shortened, so it will be based on the path on which you are running twixt, e.g. You can then pipe this through a shortening service of your own, if you like.


Twixt is currently at version 1.2.

Twixt is mature, released software, and as far as I know there are no major bugs that affect it. If you find any bugs or would like to request any new features, please add an issue on GitHub.


A pastebin for Twitter.







No releases published


No packages published