What do you want to automate

with Browserbase and TinyPNG?

Prompt, edit and deploy AI agents that connect to Browserbase, TinyPNG and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Compress Image with TinyPNG API on New Session Created from Browserbase API
Browserbase + TinyPNG
 
Try it
Convert Image with TinyPNG API on New Session Created from Browserbase API
Browserbase + TinyPNG
 
Try it
Resize Image with TinyPNG API on New Session Created from Browserbase API
Browserbase + TinyPNG
 
Try it
New Session Created from the Browserbase API

Emit new event when a new session is created. See the documentation

 
Try it
Create Context with the Browserbase API

Creates a new context in Browserbase. See the documentation

 
Try it
Compress Image with the TinyPNG API

Compress a WebP, JPEG, or PNG image using the TinyPNG API. See the documentation

 
Try it
Create Session with the Browserbase API

Creates a new browser session with specified settings. See the documentation

 
Try it
Convert Image with the TinyPNG API

Convert your images to your desired image type using TinyPNG. See the documentation

 
Try it
List Projects with the Browserbase API

Lists all projects. See the documentation

 
Try it
Integrate the Browserbase API with the TinyPNG API
Setup the Browserbase API trigger to run a workflow which integrates with the TinyPNG API. Pipedream's integration platform allows you to integrate Browserbase and TinyPNG remarkably fast. Free for developers.

Connect Browserbase

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    browserbase: {
      type: "app",
      app: "browserbase",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.browserbase.com/v1/projects`,
      headers: {
        "x-bb-api-key": `${this.browserbase.$auth.api_key}`,
      },
    })
  },
})

Overview of TinyPNG

The TinyPNG API lets you compress and optimize image files efficiently. With this API, you can shrink the size of PNG and JPEG files without a noticeable loss in quality, making it a crucial tool for improving website load times and saving bandwidth. On Pipedream, you can automate image optimization workflows, harnessing the power of TinyPNG to process batches of images, integrate with CMS platforms, trigger optimizations from various events, and more.

Connect TinyPNG

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = defineComponent({
  props: {
    tinypng: {
      type: "app",
      app: "tinypng",
    }
  },
  async run({steps, $}) {
    const results = await require("@pipedream/platform").axios($, {
      method: "post",
      url: `https://api.tinify.com/shrink`,
      auth: {
        username: `api:${this.tinypng.$auth.api_key}`,
        password: ``,
      },
      data: {
        "source": {
          "url": "https://tinypng.com/images/panda-happy.png"
        }
      },
    })

    const retVal = results.output
    retVal.original_image_metadata = results.input 
    return retVal
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo