Job

Move one Express 4 app to Express 5 with route patterns and error handling tested

Upgrade one Express 4 app to Express 5: converted route patterns, removed methods replaced, async errors reaching your error handler, and a before-and-after URL table proving the same responses.

What you get

  • The changed code and lockfile as a pull request
  • The route inventory with the old and new pattern for each changed route
  • The before-and-after URL table and the new or changed tests

and 1 more

Price
From $645Final price agreed before we start
You pay
After the agreed checks pass and you sign off.
Term
One job
How soon
We set up the day after you ask and start work within three days.

No passwords, keys, card details or admin invites needed to start.

Price and terms in full

From $645 Final price agreed before we start

From $645 for one app within those limits. We read the lockfile and the route list before a final fixed quote. A middleware without an Express 5 release, a runtime below Node.js 18 or runtime-generated routes lead to a separate decision or a stop.

You pay
After the agreed checks pass and you sign off. No advance payment.
Includes
One Express 4 app with up to 60 routes and 10 custom middleware modules; Route-pattern conversion and removed-method replacement; Before-and-after URL table and error-path tests
Term
One job
Technology
Node.js, Express, npm, Express 4 to Express 5
Delivery
Start window and delivery date agreed in writing after eligibility and access checks.

Nothing is charged or booked when you send your details. The written quote confirms the total price and any tax before you accept.

What usually happened

You might be seeing

  • Package audits or reviews list Express 4 as the framework major version behind
  • Some routes use wildcard or optional-parameter patterns and nobody is sure how they behave on a newer version
  • Async route handlers sometimes hang the request because errors are not reaching the error handler

Who it’s for: A founder or engineering lead whose Node.js API or website is built on Express 4 and who needs the web layer on the current major version without changing what the app does.

The result: The app runs on Express 5. Every route pattern is converted or confirmed, every removed method is replaced, and a table of agreed sample URLs returns the same status and body shape before and after the upgrade, apart from differences you have accepted in writing. Errors thrown in async handlers reach your error handler.

When it starts, and why it happens

Usually starts when: A dependency or the team's standards now require Express 5, a security or support review asks why the web framework is a major version behind, or a Node.js runtime upgrade has put the framework next in line.

Express 5 changes how paths are matched and how errors flow, and removes several methods. Wildcards must be named, optional parameters use braces and regular-expression characters are no longer allowed in paths, so a pattern that matched on Express 4 can silently stop matching or fail at start-up. Rejected promises in handlers are now passed to the error handler, request properties change shape, and static dotfile handling is stricter. An app can start cleanly and still return different statuses for a few URLs.

What you get

All 4 things you get
  • The changed code and lockfile as a pull request
  • The route inventory with the old and new pattern for each changed route
  • The before-and-after URL table and the new or changed tests
  • A short note on any behaviour that changed and was accepted

Included

  • One Express 4 application with up to 60 routes and up to 10 custom middleware modules
  • An inventory of every route pattern, converting wildcards, optional parameters and any regular-expression paths to the Express 5 path syntax
Show 3 more
  • Replacing every method and argument form that Express 5 removed, such as the old status-argument forms of json and send, req.param, app.del and the string 'back' redirect
  • Checking request properties whose behaviour changed: body when no parser ran, the query getter, parameter shape, host with port and static dotfile handling
  • A before-and-after table of agreed URLs and methods, with status and response shape, and tests for the error path of async handlers

Not included

  • Moving the Node.js runtime, which is a separate job and can be done first
  • Changing to another framework, rewriting routes into a new structure or adding features
  • Upgrading unrelated dependencies beyond what Express 5 requires
  • Deploying to production, which stays with your team
Show 1 more
  • Load, performance or security testing

How we know it’s done

Agreed with you before work starts. Each check produces evidence you keep.

Express 4 to 5 upgrade: 4 checks and the evidence you keep4 checks, each with the evidence you keep: 1 Same status and shape; each difference listed, accepted (evidence: Before-and-after table, row per URL); 2 Wildcard, optional or regular-expression: documented conversion (evidence: Route inventory, old and new pattern); 3 Throws and rejects each produce error handler's response (evidence: Two test results on Express 5); 4 No removed form remains, existing test suite passes (evidence: Search result and test output). When all pass: sign-off (Review URL table, accepted differences; merge when satisfied). When a check fails: You do not pay and keep route inventory.What we checkEvidence you keep1 Same status and shape; each difference listed,acceptedBefore-and-after table, row per URL2 Wildcard, optional or regular-expression:documented conversionRoute inventory, old and new pattern3 Throws and rejects each produce errorhandler's responseTwo test results on Express 54 No removed form remains, existing test suitepassesSearch result and test outputAll pass: sign-offReview URL table, accepted differences; merge whensatisfiedA check failsYou do not pay and keep route inventoryYou decide here Express 4 to 5 upgrade: 4 checks and the evidence you keep4 checks, each with the evidence you keep: 1 Same status and shape; each difference listed, accepted (evidence: Before-and-after table, row per URL); 2 Wildcard, optional or regular-expression: documented conversion (evidence: Route inventory, old and new pattern); 3 Throws and rejects each produce error handler's response (evidence: Two test results on Express 5); 4 No removed form remains, existing test suite passes (evidence: Search result and test output). When all pass: sign-off (Review URL table, accepted differences; merge when satisfied). When a check fails: You do not pay and keep route inventory.1 Same status and shape; eachdifference listed, acceptedEvidence: Before-and-after table, row perURL2 Wildcard, optional orregular-expression: documentedconversionEvidence: Route inventory, old and newpattern3 Throws and rejects each produceerror handler's responseEvidence: Two test results on Express 54 No removed form remains, existingtest suite passesEvidence: Search result and test outputAll pass: sign-offReview URL table,accepteddifferences; mergewhen satisfiedA check failsYou do not pay andkeep routeinventoryYou decide here
The checks we run, the evidence you keep for each, and what happens next. Drawn from the checks on this page.
The 4 checks in full, with the evidence you keep
  1. The agreed URL and method table returns the same status code and response shape on Express 5 as on Express 4, with each difference listed and accepted by you in writing

    Evidence: The before-and-after table, one row per URL and method, produced from a run on a copy

  2. Every route pattern in the app that used a wildcard, optional parameter or regular expression has a documented conversion and at least one URL that must match and one that must not

    Evidence: The route inventory with old pattern, new pattern and the sample URLs

  3. A test that throws and a test that rejects a promise inside an async route handler each produce your error handler's response rather than a hung request

    Evidence: The two test results on Express 5

  4. No removed Express 4 method or argument form remains in the code, and the existing test suite passes as it did before

    Evidence: A search result showing none left, and the test output before and after

Sign-off. You review the URL table and the list of accepted differences and merge the pull request when satisfied. A match on the agreed URLs does not prove every possible request behaves the same.

If it fails. If the agreed checks do not pass, you do not pay and you keep our route inventory and findings.

How we deliver

We arrange the work and independent review, then show you the result against the agreed checks. You keep authority over your systems.

Express 4 to 5 upgrade: how it is delivered, step by stepSteps in order: 1 Agree and record (URL and method list, definition of done); 2 List route patterns (every use of removed method or argument form); 3 Upgrade the dependency (convert each pattern, replace each removed form); 4 Review changed uses (body, query object, dotfile handling; fix or note); 5 Add tests (throw and reject inside async handlers, re-run table); 6 Independent review (diff and URL comparison; hand over pull request); 7 sign-off (Review URL table, accepted differences; merge when satisfied). You decide at step 1 and the sign-off. We stop and tell you if any of the 4 conditions listed on this page applies.1 Agree and recordURL and method list,definition of done2 List route patternsevery use of removedmethod or argumentform3 Upgrade thedependencyconvert each pattern,replace each removedform4 Review changedusesbody, query object,dotfile handling; fix ornote5 Add teststhrow and reject insideasync handlers, re-runtable6 Independentreviewdiff and URLcomparison; hand overpull request7 Sign-offReview URL table,accepted differences;merge when satisfiedWe stop and tell you ifany of the 4 conditions listed on this page appliesYou decide here Express 4 to 5 upgrade: how it is delivered, step by stepSteps in order: 1 Agree and record (URL and method list, definition of done); 2 List route patterns (every use of removed method or argument form); 3 Upgrade the dependency (convert each pattern, replace each removed form); 4 Review changed uses (body, query object, dotfile handling; fix or note); 5 Add tests (throw and reject inside async handlers, re-run table); 6 Independent review (diff and URL comparison; hand over pull request); 7 sign-off (Review URL table, accepted differences; merge when satisfied). You decide at step 1 and the sign-off. We stop and tell you if any of the 4 conditions listed on this page applies.1 Agree and recordURL and method list, definition of done2 List route patternsevery use of removed method or argumentform3 Upgrade the dependencyconvert each pattern, replace each removedform4 Review changed usesbody, query object, dotfile handling; fix ornote5 Add teststhrow and reject inside async handlers,re-run table6 Independent reviewdiff and URL comparison; hand over pullrequest7 Sign-offReview URL table, accepted differences;merge when satisfiedWe stop and tell you ifany of the 4 conditions listed on this pageappliesYou decide here
How we deliver it, in order. A box with a coloured border is where you decide. Drawn from the delivery steps on this page.
The 6 delivery steps in full
  • Agree the URL and method list and the definition of done, then run the app on a copy with Express 4 and record each status and response shape as the baseline
  • List every route pattern and every use of a removed method or argument form
  • Upgrade the dependency, convert each pattern to the Express 5 path syntax and replace each removed form with its documented equivalent
  • Review request-property uses that changed, such as the body when no parser ran, the query object and static dotfile handling, and fix or note each
  • Add tests that throw and reject inside async handlers and prove the error reaches your error handler, then re-run the URL table on Express 5
  • Independent review of the diff and the URL comparison, then hand over the pull request with the evidence and the steps to revert it

This is a one-off job, not emergency cover or a subscription. We confirm eligibility, the total price, a start window and a delivery date before you accept. Work starts only after agreed inputs, secure access, any licences and necessary permissions are in place. Hosting, platform and supplier charges are excluded unless the written quote includes them. No charge or booking is created by sending a message.

When it fits, and when we stop

It fits when

  • The app uses Express 4 and runs on Node.js 18 or newer, which Express 5 requires
  • There are up to 60 routes and up to 10 custom middleware modules, or you accept a quote for the difference
Show 2 more
  • You can supply a list of URLs and methods that matter, with expected statuses, or let us derive the list from the routes and tests
  • A person on your side can review and merge the pull request

We stop and tell you if

  • The app depends on an Express 4 middleware or plugin with no Express 5 compatible release and no maintained replacement
  • The app runs on Node.js older than 18 and the runtime cannot be moved first
Show 2 more
  • Routes are generated from data at runtime in a way that cannot be listed or tested on a copy
  • There is no safe way to exercise the app without production data

Check whether this job fits

Five short questions. Your answers stay on this page unless you choose to email them.

Answer 5 questions to see if it fits
Which Express version is in your lockfile?
Which Node.js version does it run on?
Do any routes use wildcards, optional parameters or regular expressions in the path?
About how many routes and middleware modules are there?
Are there automated tests for the routes?

Answer the questions to see whether this job fits.

Nothing is sent anywhere until you choose to email us.

Ask about this job

Checks you can run yourself
  1. Find the installed Express version

    Run this in a copy of the project folder after dependencies are installed.

    npm ls express

    Look for: A version beginning 4. Send the line, nothing else.

  2. List route strings with special characters

    Run this read-only search in a copy of the project folder. It skips installed dependencies and prints only the matching route strings, not the surrounding code. Send what it prints.

    grep -rhoE "\.(get|post|put|patch|delete|all|use)\(['\"][^'\"]*[]*?()[][^'\"]*['\"]" --include='*.js' --include='*.ts' --include='*.mjs' --include='*.cjs' --exclude-dir=node_modules --exclude-dir=vendor --exclude-dir=dist --exclude-dir=build .

    Look for: Route strings with an asterisk, question mark, brackets or parentheses, each printed after the method name. These are the patterns to convert first.

What could go wrong

The change is a pull request your team merges, so it can be reverted like any other. Before release keep the previous lockfile and build, and revert the dependency version if a live check fails.

3 risks, and how we handle each

Scroll the table sideways to read it all.

RiskHow we handle it
A converted pattern matches a different set of URLs than beforeEach changed pattern is covered by sample URLs that must and must not match, compared before and after.
Errors in async handlers now reach the error handler and expose a previously hidden failureWe test the error path on purpose and show you what now reaches your handler, so a hidden failure is reported rather than introduced.
Static files served from hidden directories, such as .well-known, change behaviourThe Express 5 guide says dotfiles are ignored by default and well-known paths return 404 unless allowed; we test the paths your app serves and set the option you agree.

A second reviewer re-reads every converted route pattern against the comparison table and checks the error-handler tests, and re-runs the URL table from the handover notes alone.

Need to keep it working?

A full-time AI agent can look after this kind of work, or tell us what you want looked after when you ask.

What ongoing work would cover, and what it does not

Discuss a monthly service that keeps dependencies current and runs the next major version in CI.

Ongoing work is separately scoped and quoted: no monitoring, response-time guarantee or automatic subscription is included in this job.

What you can check

Other ways to get this done
  • The Express project publishes a migration guide and a codemod recipe for the mechanical changes. If your team can review and test the result against your real URLs, start there. expressjs.com
  • If you only need the runtime on a supported Node.js line, Express 4 may keep working while that is done; do the runtime first and treat Express 5 as its own step.

Questions

Can the Express codemod do this for me?

It handles some mechanical changes. It cannot tell you whether a converted route still matches the URLs your users and integrations send, which is what the before-and-after table checks.

Do I need to upgrade Node.js first?

Express 5 needs Node.js 18 or newer. If you are below that, move the runtime first, as its own job.

Will my API responses change?

They should not. The job compares status and response shape for the agreed URLs and lists any difference for you to accept or reject.

Ask about this job

What to send us, what comes later, and who owns what

Send us

  • The Express version in the lockfile and the Node.js version in production
  • A rough count of routes and middleware, and whether the routes are in a few files or generated
  • Any routes you know use a wildcard, an optional parameter or a regular expression
  • Whether the app has tests and how they are run

Later, once you agree

  • A controlled copy of the source and lockfile with secrets removed, through the agreed company-controlled secure handoff
  • How to start the app and run any tests locally, plus synthetic fixtures if routes need data
  • A list of important URLs and methods, or agreement for us to derive it from the code and confirm it with you
  • A company-controlled secure handoff agreed before access: no live passwords, keys, private code or customer records by ordinary email.

You own the code and the live system. We prepare the change from an authorised copy with secrets removed and return a pull request that your team reviews and merges and deploys under its own gates. We never ask for passwords or tokens in your first message.

Add detail (optional)

A web address anyone can open, with no login in it. No code or logs.

We reply by email. Sending this emails your request to our team; nothing is kept in a website database. Please do not send passwords, keys or customer records. Privacy notice.

Email fallback: open your mail app

If website submission is unavailable, review and send the fallback email yourself. An email fallback is not a website receipt. Or write to hello@syntheticindustry.ai and say which job you mean.

Last revised 13 October 2026