← Back to Site Policy Cryo Lab Marketplace

Publishing Guidelines

Last updated: November 2024

These guidelines help ensure that all Packages on the Cryo Lab Marketplace maintain high quality standards and provide value to the community. Please read them carefully before publishing.

1. Package Naming

1.1 Naming Convention

All packages must follow the naming convention:

Good examples: cryo-shader-utils, cryo-scene-graph, cryo-texture-loader

Bad examples: my-module, CryoUtils, cryo_shader, cryo-awesome-super-mega-ultra-module-v2

1.2 Reserved Names

The following name patterns are reserved:

2. Package Structure

2.1 Required Files

Every package must include:

2.2 package.json Requirements

Your package.json must include:

{
  "name": "cryo-your-module",
  "version": "1.0.0",
  "description": "A clear, concise description",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "license": "MIT",
  "author": "Your Name",
  "keywords": ["cryo-lab", "your", "keywords"],
  "repository": {
    "type": "git",
    "url": "https://github.com/username/repo"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "peerDependencies": {
    "cryo-lab": "^1.0.0"
  }
}

2.3 Recommended Structure

cryo-your-module/
├── src/
│   ├── index.ts
│   └── ...
├── dist/
│   ├── index.js
│   └── index.d.ts
├── tests/
│   └── ...
├── package.json
├── README.md
├── LICENSE
├── CHANGELOG.md
└── tsconfig.json

3. Documentation Requirements

3.1 README.md

Your README must include:

3.2 Code Comments

For TypeScript packages:

4. Code Quality Standards

4.1 General Requirements

4.2 Security Requirements

Security Note: Packages with security vulnerabilities will be immediately unpublished. Repeated violations may result in account suspension.

4.3 Performance Guidelines

5. Versioning

5.1 Semantic Versioning

All packages must follow Semantic Versioning:

5.2 Pre-release Versions

Use pre-release identifiers for unstable versions:

5.3 Changelog

Maintain a CHANGELOG.md file documenting all changes between versions.

6. Vue.js Project Guidelines

6.1 Structure

Vue.js projects should follow Vue 3 best practices:

6.2 Styling

7. Dependencies

7.1 Dependency Guidelines

7.2 Peer Dependencies

Use peer dependencies for:

8. Testing

While not strictly required, we strongly recommend:

9. Prohibited Practices

The following will result in immediate package removal:

10. Review Process

10.1 Automated Checks

All packages undergo automated validation:

10.2 Manual Review

Packages may be subject to manual review for:

11. Pre-Publish Checklist

Before publishing, verify:

12. Support & Community

As a publisher, we encourage you to:

13. Contact

For questions about these guidelines or the publishing process, please visit our contact page.