skip to content
denisdev02 / contributions

13 selected improvements and 3 investigations, with evidence and outcome

contributions

open-source projects accept improvement proposals from anyone. in each piece of work below, I identified a problem, showed the evidence and submitted the fix; the badge next to it says whether it was accepted, validated by the maintainers or is still under review. I also documented bugs in Next.js and Mastra that the teams themselves fixed.

I grew up using open-source software at home with my dad, and it is fulfilling to help projects this size. recently it became almost a hobby again. this page is a selection: it keeps the work where the problem and the result hold up. not everything I sent was like that. I have gotten it wrong, with a long, confusing issue that cost the maintainers more work than it saved. since then, I write less, show the evidence first and only brag once the team accepts the change.

merged
the maintainers accepted the change and merged the code into the project.
validated
the maintainers confirmed the result and credited me in the solution they adopted.
open
the change has been submitted and is still under review. the link opens its current status on GitHub.
investigation
I reproduced and documented the bug; the project's team implemented the fix.
01nestjs/nest3 mudanças

NestJS

a framework for building the server side of TypeScript applications, separating routes, business rules and data access into modules.

GitHub stars
76,921
weekly package downloads
16.5M

documented use at

  • sportswear and footwear brand.
  • technology company that sells software, cloud and consulting to other businesses.
  • platform where teams store code, review changes and automate software releases.
  • German maker of cars and motorcycles.
  • company that builds programming tools such as IntelliJ IDEA, and the Kotlin language.

source: docs.nestjs.com

  1. merged#18308+245−269

    a NestJS application is split into modules that use one another, and each module can run a routine when it starts and another when it shuts down, such as opening and closing the database connection. the documentation promises that a module starts after the modules it depends on and shuts down before them. since version 11.0.9, when a module was also reached through a longer path, that order could flip: a service queried the database before the connection opened and again after it closed. the fix computes each module's position from the longest path to it, and the promised order holds again for any shape of dependencies.

    what has been verifiedthe service queried a disconnected database; startup, shutdown and middleware-order tests fail before the change and pass after. ordering 2,000 modules went from 260 ms to 1 ms

    fix(core): run the hooks of imported modules before their importers

    see the pull request
  2. merged#18343+652−56

    NestJS can warn when two routes answer the same path, refuse to start the server in that case, and sort routes so a fixed path, like /releases/v1, wins over a path with a variable, like /releases/v:version. to compare them, it split the path on slashes and only understood segments that were entirely a variable. optional parts (users{/:id}) and text next to a variable (v:version, :name.:extension) were misread: routes that answered the same request went unreported, the sorting sent /releases/v1 to the route with the variable, and two routes that never overlap stopped the server from starting. the fix reads each path with the routing library, including these formats, and the warning, the startup check and the order now reflect the routes that actually overlap.

    what has been verifiedGET /users/5 went to the wrong route with no warning; 11 new tests and real requests against an Express server fail before the change and pass after

    fix(core): read optional groups and mixed segments when comparing routes

    see the pull request
  3. merged#18305+111−9

    one service can answer on several hostnames, and NestJS checks whether two identical routes compete for the same hostname. to do that, it only checked that both lists had the same length and that every hostname in the first appeared in the second. so a list that repeated a hostname was treated as equal to a list with a different hostname: the second route was dropped and anyone using the other hostname got "not found"; with the strictest conflict rule, the server did not even start. the fix compares the lists in both directions, and both routes stay active.

    what has been verifiedthe route on the second hostname returned 404; tests with real requests fail before the change and pass after it

    fix(core): tell host lists apart when one repeats a host

    see the pull request
02Mastra-ai/mastra5 changes · 2 investigations

Mastra

a TypeScript framework for building AI agents that research, use tools, and complete tasks inside a product.

GitHub stars
29,125
weekly package downloads
2.2M

used in production at

  • a platform companies use to track customers, sales, and support in one place.
  • a database applications use to store and query information.
  • Japanese conglomerate that buys and finances technology companies worldwide.
  • a corporate card and expense management platform.
  • an environment for building and running applications directly in the browser.

source: mastra.ai

  1. merged#21067+457−49

    for the agent to search inside documents, each piece of text first has to be converted into numbers by an external service, and every request to that service is billed. Mastra sent one request per document, one at a time, even though batch sending already existed in the code and had been switched off by mistake. I turned batching back on, so documents now go to the service together.

    what has been verified500 documents required 500 calls before and only 2 after

    perf(core): batch Workspace search embedding on the eager path

    published diagnosisI opened issue #21066 with the measured problem before proposing the fix

    see the pull request
  2. merged#23080+209−13

    an agent can receive tools from memory, a browser, workflows, or the application itself. while gathering those sources for a call, Mastra checked the active model again and could repeat the lookup for every tool. the change shares one result within that conversion step and does not resolve a model when no tools are present.

    what has been verified3 sources shared 1 resolution per conversion; 0 resolutions when no tools were present; overrides are covered in generate and stream

    fix(core): resolve dynamic models once across tool sources

    published diagnosisI opened issue #23017 with the measured problem before proposing the fix

    commit creditthe merged commit message includes “Co-Authored-By: DenisCDev” in the project history

    see the pull request
  3. merged#21199+108−19

    the settings screen and documentation offered a “translation quality” option, but both “quality” and “speed” ran the same code. I removed the misleading control, kept the field for backward compatibility, and documented the setting that actually changes the behavior.

    what has been verifiedthe option was stored but never read anywhere in the class

    fix(core): stop warning LanguageDetector's translationQuality, which does nothing

    published diagnosisI opened issue #21198 with the measured problem before proposing the fix

    see the pull request
  4. validated#23370+157−37

    when an agent continues a conversation, it needs the most recent messages. on postgres, Mastra read the entire history and counted every row even when it only wanted the last ten. I submitted an index-backed read. the maintainer confirmed the diagnosis and the project landed that fix in another PR.

    what has been verifiedPGlite, 20,000 messages in one conversation: the old plan read 20,000 rows; the index-backed plan reads 10

    fix(pg): last-N memory reads use the thread/createdAt index

    published diagnosisI opened issue #23359 with the measured problem before proposing the fix

    see the pull request
  5. validated#23377+126−24

    after the index fix, postgres still counts every message in the conversation on each agent turn, even though history only needs the latest ones. I submitted a read that skips that count: the database returns only the requested page and looks at one extra row to know whether another page exists. the project landed that fix in another PR.

    what has been verifieda request for 10: the query does not count the conversation; it reads 11 to see if there is more

    fix(pg): skip unused totals on agent last-N reads

    published diagnosisI opened issue #23376 with the measured problem before proposing the fix

    see the pull request
  6. investigationissue #23434 · fixed

    When an agent creates a subagent, Mastra copies the conversation so the subagent works on a copy. To make that copy, the server loaded the content of every message into process memory and then discarded it, because it only needed the new IDs. I measured that step in isolation: in a 2,000-message conversation, each copy added 29.6 MB of memory use, and parallel subagents repeat the cost.

    what happened nextThe team confirmed the problem and now copies the messages inside the database itself; content is only loaded when the caller needs it. The Mastra team implemented the fix in two PRs.

    conversation copy that loaded every message into memory

    fix by the Mastra teamview PR #23567 that implemented the fix

    fix by the Mastra teamview PR #23674 that implemented the fix

    view the issue
  7. investigationissue #25965 · fixed

    So the agent can search inside files, Mastra splits each file into slightly overlapping chunks and sends each chunk to a service that converts it into numbers. At the end of the file, the split still created an extra chunk containing only lines the previous one already covered. In a 7,991-character file, that produced 5 chunks instead of 4: one extra paid call and one extra index entry, with 1,599 repeated characters.

    what happened nextI published a runnable reproduction. The team confirmed the cause, made the split stop once a chunk reaches the end of the file and closed the issue; the fix shipped in the stable release. The Mastra team implemented the fix.

    repeated chunk in the file search index

    published reproductionview the test and comparison results

    fix by the Mastra teamview PR #26166 that implemented the fix

    view the issue
03vercel/next.js1 investigation

Next.js

a framework for building websites and apps with React, bringing pages, navigation and server code into one project.

GitHub stars
143,172
weekly package downloads
67.7M

documented use at

  • an AI assistant made by Anthropic.
  • a livestreaming platform where creators interact with their viewers.source: blog.twitch.tv · 2023
  • a company that builds AI models and products such as ChatGPT.
  • a sportswear and footwear brand that sells directly online.

source: nextjs.org/showcaseblog.twitch.tv

  1. investigationissue #96982 · fixed

    When checking files at intervals, Next.js could miss rapid changes. I reproduced the bug: 3 of 25 edits never appeared on the page, even though they were written to disk; the native watcher detected all 25.

    what happened nextI published the reproduction and report so the bug could be investigated. The team upgraded the file watching library, added a test for this case and closed the issue. The Next.js team implemented the fix.

    edits that disappeared during development

    published reproductionview the test and comparison results

    fix by the Next.js teamview PR #98737 that implemented the fix

    view the issue
04withastro/astro1 change

Astro

a tool for building content websites: pages reach the browser ready to read, and only the interactive parts load extra code.

GitHub stars
63,520
weekly package downloads
7.3M

documented use at

  • software and cloud company behind Windows, Office and Azure.how it is usedthe website for Fluent 2, the design system used across Office, Windows and Teams, is built with Astro.source: astro.build
  • Google's platform for building apps, with a ready-made database, sign-in and hosting.how it is usedthe Firebase blog was rebuilt with Astro, and publishing a post went from hours to minutes.source: astro.build
  • managed hosting company for WordPress websites.how it is usedthe documentation for Atlas, its headless WordPress product, uses Starlight, Astro's documentation template.source: astro.build
  • VPN service that protects people's internet connections.

source: astro.build/case-studiesastro.build

  1. merged#18451+27−0

    with the site running in development mode, running the type check or the production build in another terminal broke the page's interactive parts: the temporary process behind those tasks wrote React's production build over the files the running server was using. the page only recovered after restarting the server. the fix gives that process its own folder, so the running server is no longer affected.

    what has been verifiedthe new test fails without the change and passes with it; in the reproduction, sync, check and build no longer modify the running server's folder

    Fix `astro sync` replacing a running dev server's optimized dependencies

    published diagnosisI opened issue #18449 with the measured problem before proposing the fix

    see the pull request

OpenTelemetry

an open standard and toolkit for recording what happens inside applications, including requests, errors, and performance, without tying the system to one observability vendor.

GitHub stars
3,506
weekly package downloads
15.8M

adopted by organizations including

  • a platform where people and companies build, store, and collaborate on software projects.
  • a platform for starting, running, and growing businesses that sell online and in physical stores.
  • a financial institution offering cards, bank accounts, credit, and payment services.
  • a Latin American ecosystem spanning ecommerce, payments, credit, and logistics.
  • an online marketplace connecting buyers and sellers around the world.

source: opentelemetry.io/ecosystem/adopters/

  1. merged#7060+53−11

    ten controls set how many attributes, events, and links can be kept and how long text values may grow. zero is valid, but the configuration treated it as “not provided” and restored the default limits. I corrected all ten mappings and added a regression test proving that zero reaches the model used to initialize the SDK unchanged.

    what has been verified10 variables covered; the test previously received the default 128 and now receives 0

    fix(configuration): preserve zero-valued limits

    see the pull request
  2. open#7107+51−6

    for every proposed change, the project runs its tests on four Node.js versions, and each of those four jobs compiled the same code from scratch before testing. I proposed compiling once and handing the compiled output to all four. in the observed runs, the jobs used less machine time in total, but test results arrived 31 to 45 seconds later because compilation now happens before them.

    what has been verifiedthe 4 repeated compilations added up to about 245 s per run; on an earlier version of the PR, the run used 716 s versus 776 and 791 in two runs without the change (separate runs, not a controlled test)

    chore: reuse compiled packages across Node test matrix

    see the pull request

Hermes Agent

Nous Research’s AI agent can create new skills from experience, consult earlier conversations, and continue working on a remote server.

GitHub stars
257,700

documented business adoption

  • a global platform for website hosting, servers, and cloud services.how it is usedturned Hermes into a managed commercial service with one-click setup, integrations, and platform-operated security.source: hostinger.com
  • a sales team at a US residential solar and battery company.how it is usedBased AI’s deployment account records eight representatives using a Hermes-based agent every day.source: github.com/NousResearch

source: hostinger.comgithub.com/NousResearch

  1. validated#90043+746−109

    every time the agent reads a file, it asks the operating system for help, and on Windows each request starts a program from scratch, which takes about 53 milliseconds. Hermes made five requests per read; I combined them into two. the maintainer repeated the test on another machine and confirmed the gain. Hermes moved on with a broader version that reads in a single execution and also reduces work on writes. on September 20, the project closed my issue as fixed in the main code and recorded that I was the first to propose combining these reads.

    what has been verifiedmaintainer benchmark: a small file dropped from 5 executions / 210 ms to 2 / 110 ms

    fix(tools): coalesce read_file into two Git Bash execs

    published diagnosisopened issue #90039 with problem measurement before proposing correction

    independently reproducedthe Hermes Agent maintainer repeated the benchmark on another machine and confirmed the improvement

    credit recordedPR #101599, which supersedes this proposal, cites #90043 and my username when documenting where the work came from

    incorporated into the projectthe Hermes Agent maintainer closed the issue as fixed on the main branch and recorded that this contribution paved the way

    see the pull request
07fastify/fastify1 change

Fastify

a framework for building Node.js web servers, designed to respond quickly and spend little processing per request.

GitHub stars
37,308
weekly package downloads
15.4M

used in production at

  • software engineering consultancy.
  • company that builds tools to run and operate Node.js applications.
  • open-source hospital management system, built to work even without a stable internet connection.

source: fastify.dev/organizations

  1. open#7164+49−1

    when the server shuts down, Fastify runs the cleanup routines the application registered, such as closing the database connection. if one of those routines finished immediately, without the completion signal Fastify expected (a form JavaScript itself accepts), an unhandled error appeared and shutdown waited forever. the fix treats these routines the way the language does: an error reaches whoever requested the shutdown, and shutdown completes.

    what has been verifiedtwo new tests: without the change, shutdown never completes; with it, it does

    fix(hooks): settle close() when an onClose asyncDispose is not async

    see the pull request

how the data was verified

numbers, statuses and investigation outcomes were checked on October 27, 2026. each project includes the source for its usage data or the platforms it runs on. the links open the GitHub records so you can check the work and its outcome.

My projects

End of page, keep rolling

return home now →