Stacks Registry
Key Paths
- Core package:
storage/framework/core/registry/src/ - Config:
config/stacks.ts - Package:
@stacksjs/registry
Source Files
registry/src/
└── index.ts # Registry definition and exports
API
import { registry } from '@stacksjs/registry'
import type { Registry } from '@stacksjs/registry'
type Registry = StackExtensionRegistry
const registry: Registry = [
{
name: 'stacks',
url: 'stacksjs.com',
github: 'stacksjs/stacks',
},
]
export default registry
The registry is a simple array of StackExtensionRegistry entries containing framework extension metadata — name, URL, and GitHub repository.
Usage
import { registry } from '@stacksjs/registry'
// Access extension metadata
registry.forEach(ext => {
console.log(ext.name, ext.url, ext.github)
})
Gotchas
- Minimal package — currently just a static array with the core Stacks framework entry
- Type comes from
@stacksjs/types—StackExtensionRegistryis defined in the types package - Used for framework metadata — not a package manager or dependency registry
- Config in
config/stacks.ts— theStackExtensionRegistryconfig is defined there