The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


App::mojopaste - Pastebin application




Mojopaste is a pastebin application. There's about one million of these out there, but if you have the need to run something internally at work or you just fancy having your own pastebin, this is your application.

Text and code

The standard version of App::mojopaste can take normal text as input, store it as a text file on the server and render the content as either plain text or prettified using Google prettify. (Note: Maybe another prettifier will be used in future versions)


In addition to just supporting text, this application can also make charts from the input data. To turn this feature on, you need to specify "enable_charts" in the config or set the PASTE_ENABLE_CHARTS environment variable:

  $ PASTE_ENABLE_CHARTS=1 script/mojopaste daemon;

The input chart data must be valid CSV:

CSV data is similar to "Just data" above, except the first line is used as "xkey,ykey1,ykey2,...". Example:

  # Can have comments in CSV input as well
  2015-02-04 15:03,120,90

CSV input data require Text::CSV to be installed.


A paste can be embedded in other pages using the query param "embed". Examples:


You can try mojopaste here:


Install system wide with cpanm:

  $ cpanm --sudo App::mojopaste

Don't have cpanm installed?

  $ curl -L | perl - --sudo App::mojopaste
  $ wget -O - | perl - --sudo App::mojopaste

It is also possible to install App::mojopaste using Docker. Check out for more information.


  • Simple single process daemon

      $ mojopaste daemon --listen http://*:8080
  • Save paste to custom dir

      $ PASTE_DIR=/path/to/paste/dir mojopaste daemon --listen http://*:8080
  • Using the UNIX optimized, preforking hypnotoad web server

      $ MOJO_CONFIG=/path/to/mojopaste.conf hypnotoad $(which mojopaste)

    Example mojopaste.conf:

        brand_link    => "index",
        brand_logo    => "/images/logo.png",
        brand_text    => "Mojopaste",
        paste_dir     => "/path/to/paste/dir",
        enable_charts => 1, # default is 0
        hypnotoad     => {
          listen => ["http://*:8080"],

    "enable_charts" is for adding a button which can make a chart of the input data using morris.js

    Check out Mojo::Server::Hypnotoad for more hypnotoad options.



Jan Henning Thorsen -