Thank you for your interest in contributing! 🎉
# Clone the repo
git clone https://github.com/omercnet/opencode-plugin-langfuse.git
cd opencode-plugin-langfuse
# Install dependencies
bun install
# Build
bun run build
# Watch mode
bun run dev
# Type check
bun run typecheck
# Lint
bun run lint
# Format
bun run format# In plugin directory
bun link
# In your project
cd /path/to/your-opencode-project
bun link opencode-plugin-langfuseThen configure in .opencode/opencode.json:
{
"plugin": ["opencode-plugin-langfuse"]
}In your .opencode/opencode.json:
{
"plugin": ["file:../opencode-plugin-langfuse"]
}- TypeScript strict mode
- ESLint + Prettier
- 2 spaces indentation
- Semicolons required
- Single quotes for strings (except in JSON)
Follow conventional commits:
feat:- New featuresfix:- Bug fixesdocs:- Documentation changeschore:- Build/tooling changesrefactor:- Code refactoring
Examples:
feat: add support for custom metadata per trace
fix: prevent memory leak in trace cleanup
docs: update README with self-hosting guide
- Fork the repo
- Create a feature branch:
git checkout -b feat/my-feature - Make your changes
- Run tests:
bun test(when tests exist) - Type check:
bun run typecheck - Lint:
bun run lint - Format:
bun run format - Commit with conventional commits
- Push and open a PR
# Update version in package.json
npm version patch|minor|major
# Build
bun run build
# Publish
npm publishOpen an issue or discussion on GitHub!