Ali SadeghiPortfolio detail page
Go to Ali's portfolio

Node.js

Backend, Bots & Automation

Used Node.js to build Telegram bots, backend services, local automation tools, server utilities, and integrations across personal, open-source, and production projects.

Node.js logo

Where It Helps

  • Building backend services and connecting applications, APIs, databases, and external systems
  • Creating Telegram bots, background tools, and automation that can run independently of the browser
  • Working with files, processes, local services, APIs, and lightweight server-side applications

Story

Continue readingCollapse the story

I started working with Node.js in 2023.

I've always liked building things that can run on their own. At the time, I was already comfortable with JavaScript and React, but I wanted to build tools for my own computer that weren't limited to running inside a browser.

That's what led me to Node.js.

Like with most technologies I learned, I created a repository called Learning-NodeJS and used it as a scratchpad for experimenting, breaking things, rebuilding them, and learning how everything worked.

Most of my learning came from different YouTube videos, and I tried not to just watch tutorials. I would give myself small projects and use what I had learned to actually build something.

What really got me interested in Node.js was building Telegram bots.

I built three bots for the CS Internship program, and two of them became part of the program's regular workflow and were used for a long time.

I really enjoyed building those bots because I wasn't just making something that existed on a page anymore. It could keep running, receive messages, make decisions, and actually do something on its own.

The mental model of Node.js never felt too unfamiliar to me. It was still JavaScript, but now I could work with files, create and modify them, run processes, communicate with other services, and use a few new concepts and rules around server-side development.

Because of that, I became comfortable with it pretty quickly.

I also built an internal tool called CS Server Waker for the program.

It ran on Windows and started automatically when the system booted. At different times, it would send requests to the program's servers and make sure they were still available. If one of the servers had gone down, it would use the user's system to try to wake it back up.

That was exactly the kind of tool that made me enjoy Node.js in the first place: a small application quietly running in the background and doing its job without someone constantly having to watch it.

For a while, I also explored building APIs and documenting them with Swagger. It was useful and taught me a lot, although compared to building bots and automation, that part felt a little drier to me.

Later, I started using Node.js for more practical backend projects.

For one of my projects at MelkRadar, I built a backend that received data from an Android application I had also built, stored it in a simple database, processed what was needed, and then sent the result to the team through Telegram.

I also used Node.js for my personal Fabrexa AI project.

Fabrexa is a locally running Telegram bot connected to Ollama. It lets me interact with local LLMs directly through Telegram using my own prompts and configuration.

The bot also uses session-based memory to keep conversation context and can switch between different models and personalities.

Node.js is now one of those technologies I'm very comfortable working with.

Whether I need a small internal utility, a bot, some background automation, or a lightweight backend connecting a few different systems together, I can usually get where I need to go with it pretty comfortably.

And I think the reason I still like it is the same reason I started learning it in the first place: it lets me use a language I already know to build things that can actually do work outside the browser.

Ask ChatGPT

Get a summary or ask questions about this page.

Open in ChatGPT