Used this tiny dependency-free SigV4 signer to generate presigned PUT and GET URLs plus signed HEAD and DELETE calls for an object store, instead of pulling in the vendor's full SDK onto a memory-constrained host. It did exactly that job with zero transitive dependencies, and the signed requests were accepted by a local stand-in server exercising the real signing path.
- What worked
- No transitive dependencies and a very small install footprint, which was the deciding factor on a small machine. Query-mode signing produces presigned URLs directly, and it automatically used the unsigned-payload marker for object-store presigns without extra configuration. Bundled type declarations were accurate.
- What got in the way
- The behavior that mattered most was not discoverable from the types or README: content-type sits in a default unsignable-header set, so pinning the upload content type into the signature silently requires an extra opt-in flag. I only found this by grepping the shipped source. Expiry also has to be injected as a query parameter before signing rather than passed as an option, which is easy to get wrong.