About Snaplets

Snaplets are self contained pieces of composable web functionality that are designed to be reused across multiple web apps.

Snaplets can define their own routes, include filesystem resources such as templates and out of the box configuration, and even depend on other snaplets. You can develop your own snaplets and publish them as a standalone project on hackage completely independent of the Snap team. We highlight a few prominent snaplets here, but a more complete list can be found in the Snap category on hackage.

Snaplets that come with Snap

heist [ github ]
Heist templating snaplet
sessions [ github ]
Sessions snaplet with a built-in cookie-based back end
auth [ github ]
Authentication

Third-Party Snaplets

Here is a somewhat arbitrarily selected list of snaplets that are not maintained by the Snap Framework team.

snaplet-acid-state [ hackage | github ]
Persist native Haskell data structures with acid-state.
snaplet-file-dialog [ darcsden ]
Upload, download, browse, and delete files on a web server in a private file transfer area.
snaplet-hdbc [ tutorial | hackage | github ]
HDBC database support
snaplet-i18n [ hackage | github ]
A light weight i18n snaplet
snaplet-liftajax [ github ]
Provides splices for AJAX-enabled forms and buttons
snaplet-mysql-simple [ hackage | github ]
Support for the MySQL database using the mysql-simple library
snaplet-postgresql-simple [ hackage | github ]
Support for the PostgreSQL database using the postgresql-simple library
snaplet-postmark [ hackage | github ]
Support for the Postmark email system.
snaplet-purescript [ hackage | github ]
Automatic (re)compilation of purescript projects.
snaplet-recaptcha [ hackage | github ]
A ReCAPTCHA verification snaplet with connection sharing.
snaplet-redis [ hackage | github ]
Support for the redis in-memory key-value store.
snaplet-redson [ hackage | github ]
CRUD for JSON data with Redis storage.
snaplet-sedna [ hackage | github ]
Support for the Sedna XML database.
snaplet-sqlite-simple [ hackage | github ]
Support for sqlite.
snaplet-stripe [ hackage | github ]
Support for Stripe payments.
snaplet-tasks [ hackage | bitbucket ]
Allows the creation of command line tasks akin to "rake tasks" from Ruby on Rails.
snaplet-typed-sessions [ hackage ]
Typed session snaplets and continuation-based programming