Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
/ hydra Public archive

Web framework for Deno which is both fast and fun to use

License

Notifications You must be signed in to change notification settings

Im-Beast/hydra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Hydra

Keep in mind that Hydra is still under heavy development and things might drastically change!

Hydra logo, three headed Deno mascot

Web framework for Deno which strives to balance performance and feature richness.

🔩 Features

  • 💖 Ease of use
  • 🚀 Really, really high performancce
  • 📁 Built-in file-server
  • 🌍 Fully supported URL Pattern API
  • 🛡️ Type safety
    • 📄 Type-first
    • 🥇 First framework1 to have fully type-safe URL Patterns!
    • 🪽 Middlewares can switch response type on the fly
  • 🖇️ No dependencies

1 – Hydra is the first web framework to support automatic typing of non-capturing and regex groups

🥅 Goals

These goals are pinpoints that need to be achieved before 1.0!

  • ⚖️ Strike the right balance Developer Experience and Speed
    • 🧑‍💼 Don't compromise on DX just to make things faster
  • 🧪 Have 100% test coverage, make sure things are stable
  • 📝 Have great documentation
  • 🔋 Have all batteries included
    • Create first-party middlewares to make development a walk in the park

Get started

Remember to change VERSION to latest version of Hydra`

import { Hydra } from "https://deno.land/x/hydra@VERSION/mod.ts";

const app = new Hydra("127.0.0.1", 8000);

app.get("/", () => {
  return "Hello world!";
});

await app.serve();

🤝 Contributing

Hydra is open for any contributions.
If you feel like you can enhance this project - please open an issue and/or pull request.
Code should be well document and easy to follow what's going on.

This project follows conventional commits spec.
If your pull request's code can be hard to understand, please add comments to it.

📝 Licensing

This project is available under MIT License conditions.