Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1021 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 1021 Bytes

BildX

Tests status

The self-hosted version of imgix for micro projects. PRs are welcome.

Getting started

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.

APIs

Currently, BildX supports:

  • width
  • height
  • fill
  • blur

Tests

$ npm test

WIP

  • Implement all the APIs imgix provides
  • Support for S3 and/or Firebase Storage