Getting started with Pindrop.js

Get Pindrop.js running in under a minute

Install

bash
npm install pindrop.js

Initialize

typescript
import { Pindrop } from 'pindrop.js'
import 'pindrop.js/dist/style.css'
 
const pindrop = Pindrop.init({ storageKey: 'my-app' })

That's it. Press C to enter comment mode, click anywhere to drop a pin.

CDN (no build step)

html
<link rel="stylesheet" href="https://unpkg.com/pindrop.js/dist/style.css" />
<script type="module">
  import { Pindrop } from 'https://unpkg.com/pindrop.js/dist/pindrop.es.js'
  Pindrop.init({ storageKey: 'my-app' })
</script>

Last updated March 28, 2026