The self-hosted version of imgix for micro projects. PRs are welcome.
Install from via npm
$ npm i bildx
Create a instance, and call start
. Put images in storage
import BildX from "bildx"
import { resolve } from "path"
const BILDX_PORT = process.env.BILDX_PORT || 4000
const bildx = new BildX({
storage: new BildXStorage(resolve("./storage")),
cache: new BildXStorage(resolve("./cache")),
})
bildx.start(BILDX_PORT).then(() => console.log(`BildX deployed on ${BILDX_PORT}`))
Note: BildX.Storage
throws an error if path is not absolute.
Currently, BildX supports:
width
height
fill
blur
$ npm test
- Implement all the APIs imgix provides
- Support for S3 and/or Firebase Storage