The breve package

[Tags:mit, program]

Breve is a web application that provides a simple interface to shortening long urls creating links smaller and easier to remember.


[Skip to Readme]

Properties

Versions 0.0.1.0, 0.0.2.0, 0.0.2.1, 0.0.2.2, 0.0.3.0, 0.0.4.0, 0.1.0.0, 0.1.1.0, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.4.3.0, 0.4.3.1, 0.4.4.0
Dependencies aeson, base (>=4.8 && <5.0), binary, blaze-html, bytestring, configurator, cryptohash, directory, hashtables, http-types, mtl, random, Spock, Spock-core, text, tls, transformers, wai, wai-extra, wai-middleware-static, warp, warp-tls, xdg-basedir [details]
License MIT
Copyright (C) Michele Guerini Rocco 2015
Author rnhmjoj
Maintainer micheleguerinirocco@me.com
Stability Unknown
Category Web
Home page https://github.com/rnhmjoj/breve
Source repository head: git clone https://github.com/rnhmjoj/breve
Uploaded Tue Feb 21 16:13:20 UTC 2017 by rnhmjoj
Distributions NixOS:0.4.4.0
Downloads 1537 total (13 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
Last success reported on 2017-02-21 [all 3 reports]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for breve

Readme for breve-0.4.4.0

Breve

a url shortener

Breve is a web application that provides a simple interface to shortening long urls creating links smaller and easier to remember.

You can find a running instance on brve.bit

It creates links in the form of "/emeaoinqua": easier to remember than alphanumeric strings like "/1Cqw8lHw" used by several services.

It was inspired by hastebin.

Installing

Install the app with cabal-install. Run

$ cabal install breve

and start it with

$ breve

The app will start serving on https://localhost:3000, listening on every active interface.

Configure

You can change the options by editing the config file. When you start the app an empty one will be created in: $XDG_CONFIG_HOME/breve, ~/.config/breve if unset, or you can pass a path as the first argument of breve.

The default values are:

hostname = "localhost"
port     = 3000
baseurl  = "https://localhost:3000/"
urltable = "$XDG_CONFIG_HOME/breve"
tls {
  cert  = "/usr/share/tls/breve.crt"
  key   = "/usr/share/tls/breve.key"
  chain = []
}

urltable is the location of breve url hashtable

chain is a list of chain certificate files

License

Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html