Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autotune

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autotune

Automatically tune JavaScript apps

  • 0.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
93
increased by1228.57%
Maintainers
1
Weekly downloads
 
Created
Source

autotune: automatic A/B testing for any app

Everyone knows that A/B testing is critical to optimizing any app, but implementing tests and analyzing results can be awkward and time-consuming.

As developers, we want adding A/B tests to any app to be as simple as adding a line of code. We also want machine learning algorithms to analyze our test results and optimize our app for us, automatically, without having to think twice.

This is why we created Autotune. With Autotune, you create special variables in your program that Autotune will automatically tune over time to improve outcomes.

Not sure what your main call-to-action should be, or what color to use for the button? Not sure which social sharing features will be most relevant for your audience? Just make a few good guesses and let Autotune automatically discover and make the best decisions.

Examples

"Log in" or "Sign in"?

Not sure if your main CTA should be Log in or Sign in? Let Autotune pick the one that works best:

import * as autotune from "autotune";

autotune.init("11397F73-FF90-4831-B7F7-85023F1741E4");

ReactDOM.render(
  <div>
    <h1>Welcome to my app!</h1>
    <button onClick={autotune.complete}>
      {autotune.flipCoin("cta") ? "Log in" : "Sign in"}
    </button>
  </div>,
  document.getElementById("root")
);

Autotune will flip a coin to decide whether to use Log in or Sign in, and over time will favor the choice that gets more users to click the button.

Which hero message should we use?

Here we add an autotuned welcome message to a simple React app:

import * as autotune from "autotune";

// 1. Initialize
autotune.init("11397F73-FF90-4831-B7F7-85023F1741E4");

// 2. Create a variable
const title = autotune.oneOf(
  "👋 Please sign in.",
  "Welcome! Please sign in.",
  "Bienvenidos! Please sign in."
);

ReactDOM.render(
  <div>
    // 3. Use the variable
    <h1>{title.value}</h1>
    <button
      onClick={() =>
        /* 4. Indicate when a goal is completed */ autotune.complete()
      }
    >
      Sign in
    </button>
  </div>,
  document.getElementById("root")
);

Autotune will experiment with different titles on this page, and automatically tune the app to use the title that causes the most users to click 'Sign in' over time.

FAQs

Package last updated on 31 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc