Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add option to preserve username case in zod-transform-socials (GitHub/Twitter/AO3)

Open
#49 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
tooling

Research direction

Start by locating the zod-transform-socials implementation and tracing where the full URL is lower-cased before service matching. Compare the handling needed for GitHub, Twitter/X, AO3, and NPM, then clarify whether the change should use preserveCase, canonicalCase, or both. Done means host detection remains case-insensitive while supported usernames and paths retain the intended case, with observable output and breaking-change behavior documented.

Written by the indexing model from the issue text.

Description

zod-transform-socials

zod-transform-socials lower-cases the whole URL before matching, which means usernames are also lower-cased for services that preserve case. For example, github.com/FujoWebDev/AO3.js is reported as fujowebdev/ao3.js.

Lower-casing is needed for host detection (so BSKY.APP matches bsky.app), but it should not apply to the username (or at least, it should be an option not to apply it).

Among services affected:

  • GitHub— org and repo names preserve case.
  • Twitter/X — handle display preserves case.
  • AO3 — usernames and pseuds preserve case.
  • NPM is affected in that older package names could be uppercase/lowercase, but now they're all lowercase. With that said, the install is case sensitive.

This changes observable output, so it is a breaking change. We could mitigate it by adding a preserveCase setting and/or a canonicalCase option for known addresses that one may want to keep consistent. We could also consider exporting convenience methods like "isSameProfile".

Dominant language
TypeScript
Stars
27
Forks
7
Avg merge
6m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from FujoWebDev/fujocoded-plugins

All issues in FujoWebDev/fujocoded-plugins

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.