dif.sh allows you to manage feature flags and A/B tests directly within your codebase using Markdown files. It integrates seamlessly with your repository, offering a CLI for installation and management without requiring any signup. Features include segmentation, conflict checks, and analytics, all managed through simple file structures and commands.
How to use dif.sh?
Install the CLI with `npm install -g @dif.sh/cli`. Create feature flags and A/B tests as Markdown files in your `dif/experiments/active/` directory. Use commands like `dif init` to set up, `dif new` to draft, `dif validate` to check for conflicts, and `dif build` to compile a typed client for your application. Manage experiments and track learnings directly in your repo.
dif.sh 's Core Features
Feature flags and A/B tests managed as Markdown files in your repository.Single CLI for installation, drafting, validation, and building.Experiments versioned in Git, reviewable in Pull Requests.Automatic conflict detection and resolution at build time.Surface-specific learnings logged for institutional memory.Agent context (`context.json`) generated for coding assistants.Optional Dif Cloud for cross-repo experiment overview and PR-based decisioning.
dif.sh 's Use Cases
Implementing feature flags for gradual rollouts.Running A/B tests on UI elements and copy.Managing holdouts and staged rollouts within the codebase.Tracking experiment performance and learnings directly in Git.Integrating with coding agents for context-aware development.Ensuring CI/CD pipeline safety with build-time conflict checks.Centralizing experiment management across multiple repositories via Dif Cloud.
dif.sh 's FAQ
Most impacted jobs
Software Engineer
Product Manager
Frontend Developer
Backend Developer
DevOps Engineer
dif.sh 's Tags
dif.sh 's Alternatives