pxpipe: Cut Token Usage
Render text as images with pxpipe, for founders optimizing AI costs, backed by 4.9k+ GitHub stars
5,159 stars418 forksTypeScriptQuality 9/10Updated 7/5/2026100% free ยท open source pxpipe renders text as images, allowing founders to optimize AI costs by generating visual content programmatically
npm install @teamchong/pxpipe
- โขCreating social media posts with dynamic text overlays
- โขGenerating product images with customizable text and branding
- โขAutomating the creation of visual content for marketing campaigns
- 1Import pxpipe in your TypeScript file with `import { pxpipe } from '@teamchong/pxpipe';`
- 2Create a new pxpipe instance with `const pipe = new pxpipe();`
- 3Configure the pipe with `pipe.config({ width: 800, height: 600, font: 'Arial' });`
- 4Render text as an image with `const image = await pipe.render('Hello World!');`
- 5Save the image to a file with `fs.writeFileSync('output.png', image);`
Ready-to-paste prompt await pipe.render('This is a sample text', { font: 'Arial', fontSize: 48, color: 'blue' });Heads up: pxpipe requires Node.js 16 or higher to run, and you need to install the `@teamchong/pxpipe` package before using it
Saves to your device
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.