Skip to main content

N8N: creating your first complex automation

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

At its core, n8n uses a node-based workflow system. Think of a workflow as a visual flowchart. Each step in the automation is represented by a node, and these nodes are connected to each other to define the flow of data [1]. Data flows from the output of one node to the input of the next, allowing you to build complex logic visually.

Each node performs a specific task, like:

  • Triggers: The starting point of a workflow. This could be a webhook, a scheduled time, or an event in an external app.
  • Actions: The workhorse nodes that perform an action, such as sending an email, creating a record in a database, or uploading a file.
  • Logic: Nodes that control the flow, like a conditional IF statement, a loop, or a data transformation node.

The ability to chain these nodes together is what gives n8n its immense flexibility.

Deep dive into pydantic BaseModel class decorators

· 9 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Pydantic BaseModel class decorators are a powerful and modern way to customize a model's behavior and validation logic. While a lot of Pydantic's functionality is configured through class attributes or the ConfigDict, decorators offer a more explicit and code-centric approach, especially for complex validation.

Pydantic V2 introduced several new decorators to enhance validation and model configuration. The most important ones are:

  • @model_validator
  • @field_validator
  • @computed_field

These decorators are typically imported from pydantic.

n8n vs. Zapier: A Comprehensive Comparison

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

n8n vs. Zapier: A Comprehensive Comparison

When it comes to workflow automation, n8n and Zapier are two leading platforms, but they serve different user needs. While both can connect apps and automate tasks, they differ fundamentally in their architecture, flexibility, and pricing model.

Using Given-When-Then for Readable Python Tests

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The "Given-When-Then" structure is a style for writing clear, readable docstrings and comments in Python tests. It's a way of describing a test's behavior in a human-readable format, making the test's intent easy to understand for anyone reading the code. This structure is borrowed from Behavior-Driven Development (BDD) frameworks like Cucumber or Behave, but you can apply it to any testing framework, including pytest or unittest.

Supabase Pitfalls: Avoid These Common Mistakes for a Robust Backend

· 13 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Supabase Pitfalls: Avoid These Common Mistakes for a Robust Backend

Supabase offers a powerful open-source alternative to Firebase, built around PostgreSQL. Its ease of use makes it a favorite for rapid development, but this very convenience can lead developers down paths that introduce technical debt, performance bottlenecks, and security vulnerabilities. Understanding and avoiding these common pitfalls is crucial for building a robust and scalable application.

Regex for searches in VSCode

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Visual Studio Code (VS Code) provides a powerful, built-in regex engine for its Find and Search functions. This feature allows you to perform highly specific and complex searches and replacements across a single file or an entire project.

Is Supabase Vendor Lock-in a Problem? Debunking the Myths

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Supabase has minimal vendor lock-in by design because it's built on a foundation of popular open-source technologies, most notably PostgreSQL. This is a core part of their philosophy and a key differentiator from closed-source alternatives like Firebase. However, while minimal, some "stickiness" exists in their value-added services.

Benchmark: msgspec vs. Pydantic v2

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

msgspec is an extremely fast serialization and validation library that consistently outperforms Pydantic v2 in benchmarks. This performance advantage comes from its design as a lean, compiled-code-based library focused on a narrow set of data handling tasks, whereas Pydantic v2 is a feature-rich framework.

The performance differences are most pronounced in two key areas: parsing/decoding (converting data like JSON into Python objects) and serialization/encoding (converting Python objects into data like JSON).

Looking for more content?
Hrekov Blog contains 165 articles. Browse the blog archive or Explore the full timeline.