---
title: "Loknath Patel (@loknath-dev) | Hashnode"
description: "Building with code, exploring AI, and sharing practical lessons in web development and Node.js. Read the latest articles by Loknath Patel on Hashnode."
url: "https://hashnode.com/@loknath-dev"
---

@loknath-dev

# Loknath Patel

@loknath-dev · India · Joined October 2026

Building with code, exploring AI, and sharing practical lessons in web development and Node.js.

### [Your Website Works With a Mouse, But Fails With a Keyboard](https://loknath-codes.hashnode.dev/your-website-works-with-a-mouse-but-fails-with-a-keyboard?utm_source=hashnode&utm_medium=feed)

Fix keyboard accessibility issues, from clickable divs and hidden focus outlines to broken dialogs and form errors.

8 min read · [loknath-codes.hashnode.dev](https://loknath-codes.hashnode.dev/your-website-works-with-a-mouse-but-fails-with-a-keyboard?utm_source=hashnode&utm_medium=feed)

[Oct 23](https://hashnode.com/posts/your-website-works-with-a-mouse-but-fails-with-a-keyboard/6adb3a4256e2060aa13dc0b1)

### [How to Call an API with JavaScript fetch() and Handle Errors Properly](https://loknath-codes.hashnode.dev/how-to-call-an-api-with-javascript-fetch-and-handle-errors-properly?utm_source=hashnode&utm_medium=feed)

fetch() doesn't throw on 404 or 500. Learn how to check response.ok, parse JSON, and handle errors and timeouts in JavaScript, step by step.

8 min read · [loknath-codes.hashnode.dev](https://loknath-codes.hashnode.dev/how-to-call-an-api-with-javascript-fetch-and-handle-errors-properly?utm_source=hashnode&utm_medium=feed)

[Oct 18](https://hashnode.com/posts/how-to-call-an-api-with-javascript-fetch-and-handle-errors-properly/6ad4438032882ddf38cbff64)

### [Session-Based Authentication in Node.js and TypeScript with HttpOnly Cookies and CSRF Protection](https://loknath-codes.hashnode.dev/session-based-authentication-in-node-js-and-typescript-with-httponly-cookies-and-csrf-protection?utm_source=hashnode&utm_medium=feed)

Learn session-based auth in Node.js & TypeScript: HttpOnly cookies, secure session management, password hashing, and CSRF protection.

32 min read · [loknath-codes.hashnode.dev](https://loknath-codes.hashnode.dev/session-based-authentication-in-node-js-and-typescript-with-httponly-cookies-and-csrf-protection?utm_source=hashnode&utm_medium=feed)

[Oct 14](https://hashnode.com/posts/session-based-authentication-in-node-js-and-typescript-with-httponly-cookies-and-csrf-protection/6acf7c6720dd14555e88d2ab)

### [Why Your Node.js API Is Slow in Production: 10 Mistakes That Pass Code Review](https://loknath-codes.hashnode.dev/why-your-node-js-api-is-slow-in-production-10-mistakes-that-pass-code-review?utm_source=hashnode&utm_medium=feed)

Tested fixes for 10 Node.js production mistakes: blocked event loops, timeouts that never fire, N+1 queries, bad pools and more. Repo included.

23 min read · [loknath-codes.hashnode.dev](https://loknath-codes.hashnode.dev/why-your-node-js-api-is-slow-in-production-10-mistakes-that-pass-code-review?utm_source=hashnode&utm_medium=feed)

[Oct 12](https://hashnode.com/posts/why-your-node-js-api-is-slow-in-production-10-mistakes-that-pass-code-review/6acc63c17180d75446d6c36d)

### [7 Node.js Built-in Features That Can Replace npm Packages](https://loknath-codes.hashnode.dev/7-node-js-built-in-features-that-can-replace-npm-packages?utm_source=hashnode&utm_medium=feed)

A practical guide to 7 Node.js built-in features that can replace popular npm packages like axios, jest, nodemon, and dotenv. Fewer deps!

9 min read · [loknath-codes.hashnode.dev](https://loknath-codes.hashnode.dev/7-node-js-built-in-features-that-can-replace-npm-packages?utm_source=hashnode&utm_medium=feed)

[Oct 11](https://hashnode.com/posts/7-node-js-built-in-features-that-can-replace-npm-packages/6acb2a400ad3f7fcae3b144b)
