selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

switchfeat logo

Self-host switchfeat

Feature flag and A/B testing platform you host yourself

AlphaOpen SourceAGPL-3.0
Updated2 years ago
LanguageTypescript
Setup difficultyModerate
Stars
205
Ports
4000 (HTTP API and web UI), 3000 (Development UI server)
Docker
ghcr.io/switchfeat-com/switchfeat
Install with Docker
SwitchFeat dashboard showing feature flags and A/B test configuration

What is switchfeat?

This Node.js and React application lets teams manage feature toggles and run split tests from their own servers. A REST API serves flags to client code while a web dashboard handles configuration. Deployment uses a single Docker image or docker-compose, listening on port 4000. Optional MongoDB storage and Google OAuth sign-in are configured through environment variables. The codebase is early-stage (pre-1.0 versions) with no formal releases published, distributed under the AGPL-3.0 licence.

Should you self-host switchfeat?

switchfeat scores 35/100 on selfhost.directory (how scoring works) and ranks #147 of 166 in Developer Tools. It has 205 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is openhands (87/100, 92 094 stars). It scores higher overall, so compare the two before you pick. See switchfeat vs openhands side by side.

Features

  • A/B Testing
  • Feature Flags
  • Google OAuth sign-in
  • REST API
  • User Segments
  • Web Dashboard

switchfeat README

How to install switchfeat

Install switchfeat with Docker

docker run --name switchfeat-com -d -p 4000:4000 ghcr.io/switchfeat-com/switchfeat:main

Requires configuring .env file with SessionSecret and optional DbUri/AuthProvider

How to configure switchfeat

  • AuthProviderAuthentication provider (e.g. 'google'), empty to disable auth

    Authentication provider (e.g. 'google'), empty to disable auth

    values: google

  • DbUriMongoDB connection URI (optional)

    MongoDB connection URI (optional)

  • GoogleClientIdGoogle OAuth client ID

    Google OAuth client ID

  • GoogleClientSecretGoogle OAuth client secret

    Google OAuth client secret

  • PORT4000Port the API server listens on

    Port the API server listens on

  • SessionSecretRequired session secret for express-session

    Required session secret for express-session

More in Application Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…