Choose the owner before the format
Start with who should own the component after delivery, not which mechanism seems more modern. With an npm package, the publisher normally owns the implementation, while consumers depend on a released interface. With a registry item, the CLI writes source and related configuration into the project, where the consumer can change them directly. These are useful defaults, not laws. A package may expose source maps, extension points, or readable source; a registry publisher may provide update tooling or migration notes. Inspect the actual artifact and support contract.
| npm package | shadcn registry | dual delivery | |
|---|---|---|---|
| Best fit | Consumers want a maintained, versioned interface. | Consumers expect to own and edit delivered source. | Different consumers genuinely need different ownership levels. |
| Implementation owner | Usually the package publisher. | The consuming team after files are copied. | The publisher owns the shared upstream source; package and copied-source consumers then work within their separate boundaries. |
| Update acquisition | Select and install a new package version. | Fetch or inspect a new item, then reconcile it with local source. | Release both routes from one revision and verify their parity. |
| Local customization | Use supported options, composition, wrappers, patches, or a fork. | Edit the copied files and accept local divergence. | Choose the route per consumer and document where divergence is allowed. |
| Compatibility promise | Expressed through the public interface, versioning, peer ranges, and support evidence. | Expressed through the delivered source, dependencies, project assumptions, and migration guidance. | Must be stated separately for both routes, even when their behavior should match. |
| Rollback | Restore the prior package and lockfile state, then verify the consumer. | Revert the recorded file and dependency changes, then verify the consumer. | Retain a reversible identity for each route and test both. |
| Agent use | An agent edits dependency and import usage within granted permissions. | An agent may write several source, config, and dependency changes that require diff review. | The agent must be told which route applies to the named consumer. |
Don't choose from slogans
"Packages are black boxes" and "copied source has no update path" are category-level shortcuts. A sound decision requires the exact artifact, its extension points, its dependency graph, its update process, and the support promised to the named consumer.
Define what was actually delivered
An npm installation gives you a package identity, selected version, resolved dependency graph, lockfile changes, and imports or runtime entry points. A registry installation may include an item URL or namespace, item metadata, copied files, registry dependencies, newly installed npm dependencies, CSS variables, and configuration changes. Write down those facts before anyone edits the result.
Don't collapse delivery, adoption, and correctness into one status. Delivery means the expected artifact reached the project. Adoption means the named consumer actually uses it. Correctness means someone observed the required behavior under recorded conditions. A clean CLI exit proves only part of delivery.
Copy the delivery-and-adoption record
delivery_record:
decision_date: "YYYY-MM-DD"
named_consumer: "project, surface, and component"
supported_environment: "framework, runtime, styling system"
publisher_source_revision: "commit, tag, or release input"
route: "npm | registry | dual"
artifact_identity:
npm_package_and_version: "value or not_applicable"
registry_item_url_or_namespace: "value or not_applicable"
install_invocation: "exact reviewed command"
dependency_evidence:
added: []
changed: []
registry_dependencies: []
project_changes:
files_written: []
files_modified: []
imports_or_entry_points: []
local_modifications: []
compatibility_claim: "what is supported, by whom, and where recorded"
update_owner: "publisher | consumer | shared with named boundary"
update_route: "how a later revision is acquired and reconciled"
rollback_route: "exact prior identity or reversible project change"
expected_behavior: "observable result for this consumer"
observed_behavior: "open until checked"
disposition: "accept | revise | block | pending_observation"The record works for every route. A registry item needs file and dependency evidence because its command may write more than the component you expected. A package needs version, lockfile, import, and compatibility evidence. Dual delivery needs both records and a parity result.
Route the decision through lifecycle cases
A static feature list hides the costs that appear after installation. Walk each candidate route through changes your team is likely to face. Before running a case, write down the expected owner and rollback.
Case 1: an upstream defect needs an urgent fix
With npm, the publisher fixes the defect and releases a new package. Each consumer still has to learn about the release, select it, resolve compatibility, test the named surface, and retain a rollback version. Central maintenance helps only if consumers can acquire and verify the fix quickly enough.
With copied registry source, the consumer owns the installed implementation. An upstream correction may be available, but it won't necessarily replace locally modified files safely. The team must identify the installed revision, inspect the upstream change, merge it with local edits, and test the result. Registry delivery is a poor fit if urgent fixes must propagate centrally and consumers can't support that reconciliation.
For dual delivery, run the same defect fixture through both outputs. Block the release if the package contains the correction but the registry artifact doesn't, or if the two routes require undocumented behavior changes.
Case 2: the product needs a deliberate local customization
First ask whether the change belongs in the shared component. A package consumer can use a documented option, compose a wrapper, contribute upstream, carry a patch, or fork. The least invasive route that preserves the public contract is usually easiest to update. Still, a wrapper that fights the internal structure can cost more than owning the source.
A registry consumer can edit the component directly. Record the reason, changed files, intended scope, and the upstream boundary the team no longer expects to match. "We own the code" isn't enough. Someone must own the next upstream comparison. If the customization should remain unique, a named local variant is often clearer than a silent change to a shared primitive.
Case 3: an interface or dependency breaks
A package update can expose a changed export, peer range, runtime assumption, or component contract. Its version tells you which artifact is selected, but it doesn't prove that the project is compatible. Verify the supported environment, migration responsibility, and representative behavior separately.
A registry item can also introduce breaking changes through its source, npm dependencies, registry dependencies, aliases, or destination files. A copied component isn't isolated just because it lives in the repository. Before acceptance, review collisions, dependency changes, and every overwritten or newly written file.
Keep installation and compatibility separate
The command may succeed while the consumer still imports an older component, resolves the wrong token mapping, or fails in a state the installation never exercised. Record compatibility evidence against the named consumer, not the installer.
Case 4: a generated theme changes
A theme revision crosses several layers: the governed design decision, the delivered token or configuration artifact, the component mapping, local overrides, and the rendered product. Package and registry routes can both transport theme material, but neither proves that the named component adopted it.
For npm, record the package version carrying the mapping and verify that the project resolves it. For registry delivery, record the item identity, CSS or configuration files written, and any local changes that may override the new values. In both routes, inspect representative components in the required modes and states. If the design decision changed but the screen didn't, find the first divergent layer instead of reinstalling blindly.
Token specimen · real values
Ambient Sage
Live renderAmbient Sage's actual tokens — the same values its exports use.
Use dual delivery only with a parity gate
Dual delivery makes sense when named consumers need materially different ownership contracts. It isn't automatically better. Two routes mean two release surfaces, two installation paths, and two sets of compatibility evidence. Both should come from one governed source revision, but a common source isn't enough. Transformations, packaging, metadata, or release timing can still diverge.
| Must match | May differ by route | |
|---|---|---|
| Source identity | Both outputs trace to the same approved source revision. | Package version and registry item identity use different naming schemes. |
| Public behavior | The representative component performs the same supported task. | Imports, file locations, and extension mechanisms differ. |
| Required dependencies | Behaviorally required dependencies and compatible ranges remain aligned. | The package may bundle code that registry source imports directly. |
| Theme semantics | Equivalent roles produce the intended component treatment. | The route may map roles through different generated files. |
| Support boundary | The publisher states which behaviors are common and tests them. | Consumers own different kinds of customization and update work. |
| Rollback | Each route has a tested return to its prior accepted state. | The package rolls back by version; copied source rolls back through recorded project changes. |
- 1
Freeze the expectation
Name one component, one supported consumer, the common behavior, and every route-specific difference allowed by the contract.
- 2
Build both outputs from one revision
Record the source identity, package identity, registry identity, dependency evidence, and release time for each output.
- 3
Install into clean representative fixtures
Capture dependency, lockfile, import, configuration, and file changes. Don't reuse a fixture that hides prior state.
- 4
Exercise the same behavior
Run the same content, state, interaction, and theme case through both routes. Compare the observed behavior with the expectation, not with the shape of each route's implementation.
- 5
Test one update and rollback
Release a controlled upstream revision, acquire it through each route, then restore the prior accepted state.
- 6
Block unexplained divergence
Don't publish both routes when behavior, required dependencies, source identity, or rollback differs without an explicit contract and owner.
Inspect a complete kit before judging its delivery route
Browse a complete Identity Forge kit to see the colors, typography, spacing, and guidance that a delivery mechanism must carry. Then evaluate the registry as a route, separately from the kit itself.
Treat a coding agent as a governed consumer
An agent can install either route, but convenience doesn't change ownership. Before it runs, give it the exact named consumer, permitted directories, approved install command, artifact identity, package-manager policy, and files it may change. Require it to stop if it encounters unexpected overwrites, dependency changes, or destination collisions.
After the run, use the diff as the installation receipt. For a package, confirm the requested dependency and version, lockfile changes, imports, and absence of unrelated edits. For a registry item, confirm every written or modified file, npm dependency, registry dependency, alias destination, and collision. Then verify that the intended component actually consumes the delivered artifact.
- 1
State the expectation first
Describe the visible and behavioral result for one component, state, mode, and viewport before the agent changes the project.
- 2
Grant narrow permissions
Name the allowed command, destination, package manager, and mutable files. Unexpected scope is a review failure, not permission to improvise.
- 3
Record the exact artifact
Capture the package name and resolved version or the registry item identity and publisher revision.
- 4
Review the complete diff
Inspect source, configuration, dependency, lockfile, and import changes. Identify overwrites and local substitutions explicitly.
- 5
Verify adoption
Trace the named consumer to the installed import, copied file, token mapping, or configuration. Its presence elsewhere in the repository isn't enough.
- 6
Observe the result
Run the representative case and record what happened. Keep the disposition pending if observation is unavailable.
Where Identity Forge fits
Identity Forge ships design kits through a shadcn registry, alongside other agent-ready artifacts. The registry can deliver governed kit material into a project. It doesn't establish that Identity Forge offers an npm component package, and this comparison shouldn't imply one. It also doesn't prove that a component uses the delivered roles or that the rendered interface is correct.
Ambient Sage is a bounded public example. Its kit includes coordinated semantic colors, typography, spacing, and guidance, and Identity Forge provides a registry route for applying its implementation material. After installation, the consuming project still owns its mappings, local overrides, component adoption, and rendered verification.
Product boundary
Identity Forge provides an implementation-ready visual system and supported delivery artifacts. The consuming project remains responsible for application behavior, dependency acceptance, local customization, component verification, and release approval.
Run one bounded adoption test
A successful first install isn't enough to standardize a route. Choose a representative component with a real customization need and a meaningful upstream lifecycle. Write the record, install the component in one named consumer, and preserve the full diff.
- Verify the initial artifact identity, dependencies, files or imports, adoption path, expected behavior, observed behavior, and rollback.
- Make one small local edit that the product genuinely needs. Record who owns it and how a later update should treat it.
- Produce or select one upstream revision. For npm, acquire the new version and test compatibility. For a registry item, compare and reconcile the new source with the local edit.
- Roll back to the previous accepted state using the route recorded before the test.
- Retain the route only if the actual ownership work, update path, and observed behavior match the contract. Otherwise, revise the route or reject it for that consumer.
After the test, keep the route whose future work matches what your team can own. Choose the package if you want upstream to maintain the implementation behind a versioned interface. Choose the registry if you need editable source and accept local maintenance. If both types of consumer exist, earn dual delivery with one source, explicit differences, and a parity gate that can block release.
Sources
- What is a Component Registry? | Vercel Academy: Vercel explains that registries distribute source code and metadata, while conventional packages are installed as dependencies and imported through a package interface.
- Stop picking npm or shadcn for your users: The article frames npm and shadcn delivery as different levels of consumer control and describes producing both routes from one source.
- shadcn/ui Registries Explained: How They Work (and How to Run Your Own): The guide describes registry item metadata, npm and registry dependencies, CLI resolution, and source files written into a consuming project.
- Shipping a UI Component Two Ways: npm Package and shadcn Registry From One Source: This worked example contrasts versioned package consumption with copied-source ownership and explains why dual delivery needs one source.
- The shadcn Registry Landscape: Which Ones Are Worth Adding: The guide recommends checking registry maintenance, transitive dependencies, and file collisions before adding an item.
- Identity Forge: Identity Forge publicly documents agent-ready design kits and shadcn registry delivery among its implementation routes.
- Ambient Sage Design Kit: The public Ambient Sage kit documents an installable design system with semantic colors, typography, spacing, and implementation guidance.