Deno is all around with its hype since its launch on 13 May 2020. Since there are several enhancements like security, no package manager, built-in testing tools, etc. in Deno as compared to Node.js. So, the question is that “Is there any frameworks in Deno like express, Hapi and Koa, like we have in Node.js.

First, let me give you a brief introduction to these frameworks. A Framework is a combination of different libraries, helpers, and tools to help us build our application with less effort.
The Express.js, Hapi, and Koa are the most popular frameworks of Node.js, which provides different possibilities to create REST API and other different functions.
Table of Contents
Frameworks in Deno:
We have different frameworks available in Deno. Some of them are oak, pogo, servest, opline etc.
Oak:
Oak is a middleware framework for Deno’s http server and routing request . It’s popular because it is encouraged by koa, a promising Node.js middleware. Although it is very similar to koa, even then, the express.js users should be comfortable with using oak.
Now, let us create an elementary “Hello World” application using oak. For this, we import oak from the oak module, which you can easily find at https://deno.land/. Then create an instance of an app that handles all incoming requests with the text “Hello World”.
import { Application } from 'https://deno.land/x/[email protected]/mod.ts';
const app = new Application();
const port = 3000;
app.use((ctx) => {
ctx.response.body = "Hello World"
})
app.listen({port})
console.log(`localhost:${port}`)
Now, run the app, and Deno will download all the dependencies

And now, listen on port 3000

Next time, when you will run the command, Deno will skip the installation process because those packages are already cached.

Opine:
Opine is a Deno framework which is hooked from Express.js. Opine’s creation was to offer a similar environment as express.js because it is one of the leading frameworks which is currently used in Node.js. Although there are many other frameworks available but very few offer Express like API with the same depth.
Let us create a simple “Hello World!” app.
import opine from "https://deno.land/x/[email protected]/mod.ts";
const app = opine();
const port = 3000
app.use((req, res) => {
res.send("Hello World!");
});
app.listen({port});
console.log(`localhost:${port}`)
Run the code, Deno will download all the dependencies, and it will be cached into your system so that it will not need to download again next time.

Now, open the port 3000.

Pogo:
Pogo is a friendly framework for creating web servers and applications. Hapi as a popular Node.js framework, inspires it. Pogo provides much flexibility in terms of routes, just like Hapi.
Following is an example of a simple “Hello World!!!” app
import pogo from 'https://deno.land/x/pogo/main.ts';
const server = pogo.server({ port : 3000 });
server.router.get('/', () => {
return 'Hello world!!!';
});
server.start();
On running this script it will download all the dependencies of pogo.

You can check the response on port 3000.

Conclusion:
Frameworks play an essential part when you are working on some big projects. Deno provides us different frameworks such as oak, opine, and pogo, which is based on koa, express.js, and hapi respectively. There are other frameworks as well other than I mentioned in this article. Now, it is time to see which framework will lead the market in the upcoming time.