transloadit / transloadit/node-sdk

Reduce dependencies

Open
#344 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
73
Forks
26
Avg merge
10h 51m
Merged PRs (30d)
18

Description

@transloadit/node pulls in ~189 dependencies which feels like a lot, particularly as we mostly just use it to call the createAssembly function. It's not causing any tangible issues for us, I just wanted log an issue on the oft-chance there were any quick / easy wins.

Dependencies can be visualized with this tool: https://node-modules.dev/grid/depth#install=@transloadit/node

It seems migrating from the older got to either native fetch or the recommended ky (fetch wrapper made by the same people as got) could be a nice first stab.

Thank you for your work, v4 has been going great! Happy Transloadit customers over here 👍

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dependency graph at node-modules.dev and inspect how @transloadit/node currently uses got when calling createAssembly. Compare native fetch and ky as possible replacements, then verify that the dependency count is reduced without changing the SDK's createAssembly behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.