0.1.3 • Published 4 years ago
bildx v0.1.3
BildX
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 BildX.Storage(resolve(__dirname, "./storage")),
cache: new BildX.Storage(resolve(__dirname, "./cache")),
})
bildx.start(BILDX_PORT).then(() => console.log(`BildX deployed on ${BILDX_PORT}`)
Tests
$ npm test
WIP
- Implement all the APIs imgix provides
- Support for S3 and/or Firebase Storage
- Redis cache layer with TTL