---
title: "Resource Names for Enterprise TypeScript Monorepos"
url: https://daily.dev/posts/resource-names-for-enterprise-typescript-monorepos-enplldi7g
source_url: https://www.robinwieruch.de/typescript-monorepo-resource-names/
type: article
source: "Robin Wieruch"
author: "Robin Wieruch"
published: 2026-03-30T11:48:52.738Z
updated: 2026-03-31T08:00:15.292Z
tags: ["general-programming", "architecture", "typescript", "microservices"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Resource Names for Enterprise TypeScript Monorepos

**[Robin Wieruch](https://daily.dev/sources/robinwieruch)** · [@rwieruch](https://daily.dev/rwieruch) · 8 min read · 0 upvotes · 0 comments

## Summary

Multi-service TypeScript monorepos often suffer from inconsistent resource naming — each team invents its own string interpolation patterns. Inspired by the Google API Design Guide, this post proposes treating resource names as first-class structured data with shared encode/decode utilities. Relative resource names follow a `collection/id` hierarchy, while full resource names prepend `//service.domain/` for cross-service identification. Resource types (`service.domain/TypeName`) handle 'what kind' of resource. A typed `ServiceName` union prevents typos at compile time, and domain-specific constants are constructed via `encodeResourceType` rather than hardcoded. The utilities live in a shared monorepo package, giving every service a single source of truth for resource identity.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.robinwieruch.de/typescript-monorepo-resource-names/>

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#architecture](https://daily.dev/tags/architecture), [#typescript](https://daily.dev/tags/typescript), [#microservices](https://daily.dev/tags/microservices)

[View this post on daily.dev](https://daily.dev/posts/resource-names-for-enterprise-typescript-monorepos-enplldi7g)
