git404hub

what is dancer2 fr?

relequestual/dancer2 — explained in plain English

Analysis updated 2026-07-19 · repo last pushed 2014-08-08

PerlAudience · developerComplexity · 2/5DormantLicenseSetup · easy

tl;dr

A lightweight web framework for Perl that lets you build web apps and APIs with minimal code, handling routing and HTTP plumbing so you can focus on your app's logic.

vibe map

mindmap
  root((repo))
    What it does
      Routes web requests
      Sends HTTP responses
      Minimal code needed
    Tech stack
      Perl
      Plugin ecosystem
      Template engines
    Use cases
      Internal dashboards
      Prototyping services
      Legacy web front-ends
    Audience
      Perl developers
      Startup teams
      Legacy maintainers
    Ecosystem
      Database plugins
      Email and sessions
      REST API support

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Build a database-driven web app using plugins for DB connections and sessions

VIBE 2

Prototype a REST API service quickly with minimal boilerplate

VIBE 3

Create an internal dashboard for a startup or small team

VIBE 4

Add a web front-end to an existing legacy Perl codebase

what's the stack?

Perl

how it stacks up fr

relequestual/dancer2busches/clocrelequestual/dancer
LanguagePerlPerlPerl
Last pushed2014-08-082016-06-092016-02-01
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Requires a Perl environment with Dancer2 installed from CPAN.

Open source under the same terms as Perl itself, meaning you can use and distribute it freely under the Perl license.

in plain english

Dancer2 is a lightweight web framework for the Perl programming language. It lets you build a web application with very little code, the README shows a complete "Hello World" app in just four lines. You run the script, open your browser to a local address, and the page is live. At its core, the framework handles the plumbing of web development: it takes incoming HTTP requests, matches them to routes you define, runs the code you've attached to each route, and sends the response back to the browser. You focus on what your app actually does rather than on the mechanics of getting a web server up and running. The project has a healthy ecosystem of plugins that extend what it can do without you having to build those pieces yourself. There are plugins for connecting to databases, sending email, handling user sessions via cookies, building REST APIs, working with MongoDB queues, generating paginated content, caching for performance, and detecting what browser a visitor is using. Several template engines are also available if you want to generate dynamic HTML pages. This tool is aimed at Perl developers who want to quickly stand up a web app or API without the overhead of a heavier framework. A startup building a simple internal dashboard, a developer prototyping a new service, or a team maintaining a legacy Perl codebase that needs a web front-end would all find it useful. The plugin list suggests it's practical for things like database-driven web apps, REST services, and applications that need authentication or email features. As a "next generation" rewrite of the original Dancer framework, it represents a modernized approach to the same idea, keeping web development in Perl simple and approachable. The project is open source under the same terms as Perl itself.

prompts (copy fr)

prompt 1
Write a Dancer2 app with a route that returns JSON for a REST API endpoint at /api/status that returns a simple status object
prompt 2
Create a Dancer2 web app with a database plugin connected to SQLite that stores and lists notes, with routes for adding and viewing notes
prompt 3
Build a Dancer2 app that uses a session plugin to require login before accessing a protected dashboard route
prompt 4
Show me a minimal Dancer2 app with a template engine that renders a dynamic HTML page with a variable passed from the route handler

Frequently asked questions

what is dancer2 fr?

A lightweight web framework for Perl that lets you build web apps and APIs with minimal code, handling routing and HTTP plumbing so you can focus on your app's logic.

What language is dancer2 written in?

Mainly Perl. The stack also includes Perl.

Is dancer2 actively maintained?

Dormant — no commits in 2+ years (last push 2014-08-08).

What license does dancer2 use?

Open source under the same terms as Perl itself, meaning you can use and distribute it freely under the Perl license.

How hard is dancer2 to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is dancer2 for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.