Documentation Index
Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Extension publishing
Publish an extension when it should be reused across projects or installed as a first-party or third-party package.Prerequisites
- A passing extension test suite (see Extension testing).
- A publish target: an npm scope, a JSR scope, or both.
- Authentication for the publish target (
npm loginordeno publishJSR credentials).
Package checklist
- Export the extension factory as the default export.
- Set
veryfront.extension: trueindeno.jsonorpackage.json. - Declare capabilities in package metadata and in the factory.
- Declare contract metadata through
contractsor staticprovides. - Include tests for the factory and contract implementation.
- Publish to npm or JSR.
Install path
Users install the package and Veryfront discovers it:Versioning
Use semver for package releases. Treat contract shape changes as breaking changes when downstream projects compile against the old contract.Verify it worked
After publishing:- Install the released package in a fresh test project.
- Add the factory to
veryfront.config.tsand runveryfront dev. - The dev log should list the extension under the published name. Calling the contract from app code should resolve through the published package rather than any local copy.
Next
- Building and deploying: production builds and deployment
- Configuration: project configuration options
Related
- Extensions: extension overview
- Extension testing: test before publishing
veryfront/extensions: extension API reference