Files
awesome-opencode/data/examples/fork.yaml
T
John SmithandClaude Opus 5.5 56fad94c34 feat(schema): add kind, topics, compat, npm and path; reject unknown fields and non-root repo URLs
Entries gain a fixed kind and 1-3 topics (replacing 374 one-off tags as the categorization axis), an OpenCode API compat field (required for plugins), and npm/path for packages and monorepo folders. repo must be a repository root; unknown fields such as install: or repository: are rejected. Cross-entry rules (one entry per repo+path, kind must fit the category, no placeholder owners or mojibake) live in scripts/utils/catalog.js, and validate.js now always loads the whole catalog and fails on unparseable YAML. Adds npm run fmt for canonical formatting and drops the unused glob dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 13:00:22 -04:00

93 lines
2.5 KiB
YAML

# Example Fork Entry
# Forks are modified builds of OpenCode with custom features or patches.
# Place actual entries in: data/projects/your-fork-name.yaml
# ============================================================================
# REQUIRED FIELDS
# ============================================================================
name: Example Enterprise Fork
repo: https://github.com/example/opencode-enterprise
tagline: OpenCode fork with enterprise authentication and audit logging
description: A fork of OpenCode designed for enterprise environments.
-Additions
- SAML/SSO authentication
- Audit logging for compliance
- Custom model routing
- Air-gapped deployment support
kind: fork # plugin, theme, agent, skill, mcp-server, client, tool, config, guide, fork
topics: # 1-3 from the fixed list in data/schema.json; the first is used for README grouping
- environment
# ============================================================================
# OPTIONAL FIELDS
# ============================================================================
# Note: Forks don't use 'scope' - they replace the entire OpenCode installation
tags:
- enterprise
- fork
- authentication
- audit
min_version: "1.0.0"
homepage: https://example.com/opencode-enterprise
installation: |
## Prerequisites
- Go 1.21+ (for building from source)
- Or: Docker (for containerized deployment)
## Installation from Source
```bash
# Clone the fork
git clone https://github.com/example/opencode-enterprise
cd opencode-enterprise
# Build
go build -o opencode-enterprise ./cmd/opencode
# Install (replaces standard opencode)
sudo mv opencode-enterprise /usr/local/bin/opencode
```
## Docker Installation
```bash
docker pull example/opencode-enterprise:latest
alias opencode='docker run -it --rm \
-v ~/.config/opencode:/root/.config/opencode \
-v $(pwd):/workspace \
example/opencode-enterprise'
```
## Configuration
Enterprise-specific configuration in `opencode.json`:
```json
{
"enterprise": {
"sso": {
"provider": "okta",
"domain": "company.okta.com"
},
"audit": {
"enabled": true,
"destination": "s3://audit-logs/"
}
}
}
```
## Files Modified
- `/usr/local/bin/opencode` (replaced binary)
- `~/.config/opencode/opencode.json` (enterprise config)
## Reverting to Standard OpenCode
```bash
# Reinstall standard OpenCode
curl -fsSL https://opencode.ai/install | bash
```