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

couillard

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couillard

Couillard is a small trebuchet, you aim, and launch at your users.

  • 0.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Couillard

Couillard is a small trebuchet you aim and launch at your users. It's a lean A/B testing tool to validate hypotheses and determine what to build.

More About Lean A/B Testing

Install

yarn add couillard

Usage

// Your metrics store, can be Segment, Amplitude, SQL, mongo, or what ever you like.
const saveMetrics = metrics =>
  fetch('...', {
    method: 'POST',
    ...,
    body: metrics
  })

// Aim your experiment at your users.
aim('welcome', 50, ['A', 'B'], saveMetrics)

// Create variation A component.
const WelcomeA = launch('welcome', 'A', saveMetrics, props => (
  <p>
    Welcome I'm experiment A, {props.name},{' '}
    <button onClick={hit('welcome', 'A', saveMetrics)}>Click Me</button>{' '}
  </p>
))

// Create variation B component.
const WelcomeB = launch('welcome', 'B', saveMetrics, props => (
  <p>
    Welcome I'm experiment B, {props.name},{' '}
    <button onClick={hit('welcome', 'B', saveMetrics)}>Click Me</button>
  </p>
))

// Only WelcomeA or WelcomeB will render.
const Home = () => (
  <div class={style.home}>
    <h1>Home</h1>
    <WelcomeA name="Jannette" />
    <WelcomeB name="John" />
  </div>
)

export Home

Keywords

FAQs

Package last updated on 10 Dec 2020

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