Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STABLE : ADDED HONO.js and DENO as the main Driver #12

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

kiritocode1
Copy link
Contributor

Well , this is a big one

so after discussing soo much about express and how to handle things correctly , i decided , why not dissolve the conflict with a better rewrite , this time , Harder ,Better ,Faster ,Stronger.

image

Advancements

Type safety

  • Env variables are now typesafe out of the box , for more details checkout backend-hono/env.ts folder.
  • Every Request is now validated on a protocol level , meaning we check on a call level if it's the type we expect
  • every db query is now validated via supabase client for sql injections and knows what data type is present in the database , making DX blazingly fast.

Speed

  • 4X faster than Express pool calls , at-least
  • harder to mess up , everything is typed and LLMs help anyone to increase the speed of developement
  • calls are now data safe meaning you can fetch and recieve an object {ok :true , message : data} in correct format for validation if call went correct or not. .

Extensibility

  • this version of this service is deployable anywhere and will run anywhere with zero runtime problems .
  • hono client is useful to make requests typesafe on any framework , no hassle
  • cloudflare would work just fine to host this entire app in seconds .

Simplicity

  • ask any llm , infact anyone with as little as 20 mins can understand how everything is working , there is no complexity to this application.
  • just 4 files .
  • no need to install node_modules , everything just works out of the box.

this took me a whole day to plan and work on , im excited to show this to you both ; D

@kiritocode1
Copy link
Contributor Author

DO NOT merge

@kiritocode1
Copy link
Contributor Author

@Codimow , @sarvesh371 check krr lo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants