Before you go, check out these stories!

Hackernoon logoAn Introduction to the Xanny Framework by@getspooky

An Introduction to the Xanny Framework

Author profile picture

@getspookyYasser Ameur El Idrissi

I'm a full stack web developer with the skills & knowledge necessary to create user-friendly, intera

Xanny finally reached version 1.0 in Dec 2020. According to its official repository, Xanny is a simple, fast and low HTTP router and URL marcher for building Deno servers.

You can assume Xanny as a layer built on the top of the Deno that helps manage a server and routes. It provides a robust set of features to develop web and mobile applications.

Let's see some of the core features of Xanny framework:

  • Developer friendly, very expressive, and helps the developer in their daily use, without sacrificing performance and security.
  • Lightweight and modular design allows for a flexible framework.
  • Focus on high performance.
  • Middleware support, incoming HTTP request can be handled by a chain of middlewares and the final action.
  • Excellent and fluent documentation.

Installing Xanny

Assuming youโ€™ve already installed Deno, create a directory and

file to hold your code, and make that your working directory.

$ mkdir xanny-app
$ cd xanny-app
$ touch xanny_example.ts

So to use version 1.0.0 of xanny, you would want to import

Let's start registering a couple of URL paths and handlers:

Here we register two routes mapping URL path to handler. if an incoming request URL matches one of the paths, the corresponding handler is called passing.

We believe development must be an enjoyable and creative experience to be truly fulfilling (

) as parameters.

As you can see Xanny provides a very simple and expressive method of defining routes and behavior without complicated routing.

To see the results you need to start a web server on your development machine.

You can do this by running the following command in the


deno run --allow-net xanny_example.ts

To see your application in action, open a browser window and navigate to http://localhost:8080. You should see the Xanny

Hello Xanny.

We encourage you to contribute to Xanny! Please check out the guidelines about how to proceed.

Whether youโ€™re helping us fix bugs, improve the docs, or spread the word, weโ€™d love to have you as part of the Xanny community! ๐Ÿ’ช๐Ÿ’œ See for more information on what weโ€™re looking for and how to get started.

๐Ÿ‘‰ Github Repository

Author profile picture

@getspookyYasser Ameur El Idrissi

Read my stories

I'm a full stack web developer with the skills & knowledge necessary to create user-friendly, intera


Join Hacker Noon

Create your free account to unlock your custom reading experience.