-
Notifications
You must be signed in to change notification settings - Fork 38
Support scoped packages for GitHub organizations (like npm's @scope/package) #137
Description
Describe the feature
Currently, VPM package names follow the format username.packagename, where the username is derived from the GitHub account used to log in and publish. This works well for individual developers but creates friction for GitHub organizations that want to publish multiple related packages under a unified namespace.
Use Case
When a user (e.g., meiseayoung) is a member/owner of a GitHub organization (e.g., v-hono) and wants to publish packages from organization repositories, they face these issues:
The package prefix is tied to the login account (meiseayoung), not the repository owner (v-hono)
There's no way to publish packages under an organization namespace
Publishing from organization repositories may fail silently
Proposed Solution
Support scoped packages similar to npm's @scope/package convention:
@v-hono/hono
@v-hono/hono-middleware
@v-hono/hono-auth
- Allow users to publish packages under organizations they have write access to
- Package name format: @orgname/packagename or orgname.packagename
- During publish, let users choose between their personal account or an organization
- Validate that the user has appropriate permissions for the organization repository
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Version used
V 0.5.0
Environment details (OS name and version, etc.)
| V full version | V 0.5.0 49bade567852d01003fa48c777259ec36dd7d2b6 |
|---|---|
| OS | macos, macOS, 26.2, 25C56 |
| Processor | 14 cpus, 64bit, little endian, Apple M3 Max |
| Memory | 2.42GB/36GB |
| V executable | /Users/ryan/Documents/v/v |
| V last modified time | 2026-01-02 09:18:53 |
| V home dir | OK, value: /Users/ryan/Documents/v |
| VMODULES | OK, value: /Users/ryan/.vmodules |
| VTMP | OK, value: /tmp/v_501 |
| Current working dir | OK, value: /Users/ryan/Desktop/v-hono-group |
| Git version | git version 2.50.1 (Apple Git-155) |
| V git status | 0.5-5-g49bade56 |
| .git/config present | true |
| cc version | Apple clang version 17.0.0 (clang-1700.3.19.1) |
| gcc version | Apple clang version 17.0.0 (clang-1700.3.19.1) |
| clang version | Apple clang version 17.0.0 (clang-1700.3.19.1) |
| tcc version | tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin) |
| tcc git status | thirdparty-macos-arm64 1867108f |
| emcc version | N/A |
| glibc version | N/A |