MCPcopy
hub / github.com/growthbook/growthbook

github.com/growthbook/growthbook @v4.4.0 sqlite

repository ↗ · DeepWiki ↗ · release v4.4.0 ↗
9,175 symbols 34,816 edges 2,438 files 155 documented · 2%
README

GrowthBook

Open Source Feature Flags, Experimentation, and Product Analytics

<a href="https://github.com/growthbook/growthbook/github/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/growthbook/growthbook/ci.yml?branch=main" alt="Build Status" height="22"/></a>
<a href="https://github.com/growthbook/growthbook/releases"><img src="https://img.shields.io/github/v/release/growthbook/growthbook?color=blue&sort=semver" alt="Release" height="22"/></a>
<a href="https://slack.growthbook.io?ref=readme-badge"><img src="https://img.shields.io/badge/slack-join-E01E5A?logo=slack" alt="Join us on Slack" height="22"/></a>

Create a free GrowthBook Cloud account to get started quickly.

Or run it yourself with:

git clone https://github.com/growthbook/growthbook.git
cd growthbook
docker compose up -d

Then visit http://localhost:3000. View the full Self-Hosting Instructions for more details.

GrowthBook Screenshot

Our Philosophy

The top 1% of companies spend thousands of hours building their own in-house experimentation, feature flagging, and analytics platforms. The other 99% are left paying for expensive 3rd party SaaS tools or hacking together unmaintained open source libraries.

We want to give all companies the flexibility and power of a fully-featured in-house platform without needing to build it themselves.

Major Features

  • 🏁 Feature flags with advanced targeting, gradual rollouts, and experiments
  • 💻 24 SDKs including React, Python, Android, and iOS. View all
  • 🆎 World class experiment stats engine (CUPED, Sequential, Bayesian, Post-Strat, Bandits, SRM checks).
  • ❄️ Warehouse Native. Query 11 data sources including BigQuery, Snowflake, and Databricks. View all.
  • 🎯 Flexible SQL-backed metric definitions. Simple conversion rates, ratios, quantiles, and more.
  • 📊 Built-in Product Analytics suite to build dashboards and share with your team.
  • 📝 Document everything with screenshots, custom meta fields, and Markdown throughout.
  • 🔔 Webhooks and a full REST API for building integrations and custom workflows.
  • 🤖 MCP server to create features, start experiments, clean up stale flags, and more.

Documentation and Support

View the GrowthBook Docs for info on how to configure and use the platform.

Join our Slack community if you get stuck, want to chat, or are thinking of a new feature.

Or email us at hello@growthbook.io if Slack isn't your thing.

We're here to help - and to make GrowthBook even better!

Contributors

We ❤️ all contributions, big and small!

Read CONTRIBUTING.md for how to setup your local development environment.

If you want to, you can reach out via Slack or email and we'll set up a pair programming session to get you started.

License

GrowthBook is an Open Core product. The bulk of the code is under the permissive MIT license. There are several directories that are governed under a separate commercial license, the GrowthBook Enterprise License.

View the LICENSE file in this repository for the full text and details.

GrowthBook Repository Stats

Extension points exported contracts — how you extend this code

AuthConnection (Interface)
(no doc) [4 implementers]
packages/back-end/src/services/auth/AuthConnection.ts
MetricDrilldownContentProps (Interface)
* Inner content component that's rendered inside LocalSnapshotProvider. * This allows it to use useSnapshot() to get th
packages/front-end/components/MetricDrilldown/MetricDrilldownModal.tsx
WithRunExperimentProps (Interface)
(no doc)
packages/sdk-react/src/GrowthBookReact.tsx
DimensionInterface (Interface)
(no doc)
packages/shared/types/dimension.d.ts
Window (Interface)
(no doc)
packages/sdk-js/test/plugins/auto-attributes.test.ts
StepperProps (Interface)
(no doc)
docs/src/components/Stepper.tsx
SourceIntegrationInterface (Interface)
(no doc) [2 implementers]
packages/back-end/src/types/Integration.ts
BasePresetOptions (Interface)
Common options shared by all presets
packages/front-end/services/rampPresets.ts

Core symbols most depended-on inside this repo

setValue
called by 917
packages/back-end/src/util/cookie.ts
get
called by 815
packages/sdk-js/src/sticky-bucket-service.ts
set
called by 520
packages/sdk-js/src/sticky-bucket-service.ts
getContextFromReq
called by 445
packages/back-end/src/services/organizations.ts
throwPermissionError
called by 401
packages/shared/src/permissions/permissionsClass.ts
roleToPermissionMap
called by 340
packages/shared/src/permissions/permissions.utils.ts
useAuth
called by 321
packages/front-end/services/auth.tsx
useDefinitions
called by 292
packages/front-end/services/DefinitionsContext.tsx

Shape

Function 6,525
Method 1,476
Interface 810
Class 363
Enum 1

Languages

TypeScript93%
Python7%

Modules by API surface

packages/stats/gbstats/models/tests.py125 symbols
packages/back-end/src/integrations/SqlIntegration.ts111 symbols
packages/sdk-js/src/GrowthBook.ts78 symbols
packages/stats/gbstats/models/statistics.py75 symbols
packages/shared/src/util/features.ts71 symbols
packages/shared/src/experiments/experiments.ts70 symbols
packages/back-end/src/models/BaseModel.ts70 symbols
packages/back-end/src/services/experiments.ts68 symbols
packages/back-end/src/controllers/features.ts66 symbols
packages/back-end/src/types/Integration.ts62 symbols
packages/back-end/src/models/ExperimentModel.ts60 symbols
packages/back-end/src/services/features.ts59 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.0 · 1×
@ai-sdk/google3.0.0 · 1×
@ai-sdk/mistral3.0.0 · 1×
@ai-sdk/openai3.0.0 · 1×
@ai-sdk/xai3.0.0 · 1×
@aws-sdk/client-athena3.1031.0 · 1×
@aws-sdk/client-cloudwatch3.1031.0 · 1×
@aws-sdk/client-s33.1031.0 · 1×
@aws-sdk/client-sts3.1031.0 · 1×
@aws-sdk/credential-providers3.1031.0 · 1×
@aws-sdk/s3-presigned-post3.1031.0 · 1×
@aws-sdk/s3-request-presigner3.1031.0 · 1×

Datastores touched

AITokenUsageCollection · 1 repos
AuditCollection · 1 repos
AuthRefreshCollection · 1 repos
DataSourceCollection · 1 repos
DimensionCollection · 1 repos
DimensionSlicesCollection · 1 repos
DiscussionCollection · 1 repos
EventWebHookCollection · 1 repos

For agents

$ claude mcp add growthbook \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact