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

fs.realpathSync(vaultPath) recomputed once per wikilink

Closed Beginner friendly
#373 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

A pull request for this has already been merged.

  • #452 by @Kuldeep2822k — merged

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
82/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
nodejs, typescript
Domain
backend

Research direction

Start in src/storage/wikilink.ts: resolveWikilinkTarget (around line 207) calls realpathSync(vaultPath) on every call, and resolveWikilinkRoadmap (around line 382) loops over sections and links. Read both functions to see how the vault root reaches the target resolver. Done means the vault root is canonicalized once per roadmap resolution, the resolved root is passed in as a parameter, and existing wikilink tests still pass.

Written by the indexing model from the issue text.

Description

core priority: low refactor

Location: src/storage/wikilink.ts:207 (from resolveWikilinkRoadmap :382)

resolveWikilinkTarget calls realpathSync(vaultPath) on every invocation; resolveWikilinkRoadmap loops all sections x links, so the vault root is canonicalized N times for an N-link roadmap.

Fix: Hoist realpathSync(vaultPath) into resolveWikilinkRoadmap and pass the resolved root in.

From the 2026-10-10 codebase audit sweep (CODEBASE_AUDIT.md).

Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
21h 20m
Merged PRs (30d)
176

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from Kuldeep2822k/cli

All issues in Kuldeep2822k/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.