# couillard

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

Latest version **0.0.15** (published 2020-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install couillard
pnpm add couillard
yarn add couillard
bun add couillard
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2020-12-12 |
| First published | 2020-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | pre63 |
| Maintainers | pre63 |
| Keywords | A/B Testing, lean, user experience, fast, tiny, simple controlled experiment |

## Links

- npm: https://www.npmjs.com/package/couillard
- Repository: https://github.com/pre63/couillard
- npm.io page: https://npm.io/package/couillard

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.0.15 (latest) — 2020-12-12
- 0.0.14 — 2020-12-11
- 0.0.13 — 2020-12-11
- 0.0.12 — 2020-12-11
- 0.0.11 — 2020-12-10
- 0.0.10 — 2020-12-10
- 0.0.9 — 2020-12-10
- 0.0.8 — 2020-12-10
- 0.0.7 — 2020-12-09
- 0.0.6 — 2020-12-09
- 0.0.5 — 2020-12-08
- 0.0.4 — 2020-12-08
- 0.0.3 — 2020-12-08
- 0.0.2 — 2020-12-08
- 0.0.1 — 2020-12-08

## README

![](https://badgen.net/bundlephobia/minzip/couillard)
![](https://badgen.net/bundlephobia/dependency-count/couillard)

# Couillard
Couillard is a [small trebuchet](https://en.wikipedia.org/wiki/Trebuchet#Couillard) 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
- [Unit 3 Module 1: An Introduction to Experimental Product Development
](https://www.youtube.com/watch?v=HEnpiMUhRJ0)
- [Unit 3 Module 2: A/B testing overview](https://www.youtube.com/watch?v=08hBllMQ770)
- [Unit 3 Module 4: Guidance on Experiments](https://www.youtube.com/watch?v=jHo4w-ErXaI)
- [Tech planet 2014 트랙2 세션5 Nell Thomas](https://www.youtube.com/watch?v=4Ov61a9IqBU)
- [Emily Robinson - A/B Testing in the Wild - 2017-07-26](https://www.youtube.com/watch?v=SF-ryGgLOgQ)

## Install
```
yarn add couillard
```

## Usage
```javascript
// Your metrics store, can be Segment, Amplitude, SQL, mongo, or whatever you like.
const saveMetrics = metrics =>
  fetch('...', {
    method: 'POST',
    body: JSON.stringify(metrics)
  })

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

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

// Aim your experiment at your users.
const Welcome = aim('welcome', 50, saveMetrics, {
  A: WelcomeA,
  B: WelcomeB
})

// Only WelcomeA or WelcomeB will render.
const Home = () => {
  launch('welcome', saveMetrics)

  return (
    <div class={style.home}>
      <h1>Home</h1>
      <Welcome name="Jannette" />
    </div>
  )
}

export Home
```

---
_Source: https://npm.io/package/couillard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
