photomnemonic-hapi

Mozilla Hubs photomnemonic service rewritten with just hapiJS for self-hosting

Usage no npm install needed!

<script type="module">
  import photomnemonicHapi from 'https://cdn.skypack.dev/photomnemonic-hapi';
</script>

README

photomnemonic-hapi

Mozilla Photomnemonic AWS Lambada without the AWS Lambada

what is this?

This is a rewritten version of the photomnemonic server.

Instead of using aws lambada chrome & chrome-remote-interface, we use puppeteer (in nixOS chromium+puppeteer).

how to use?

First create a config.yaml

hapi:
  port: 1234 # choose your own and put it behind a reverse proxy

Then run the server node src/bin.js

(for production npm i -g photomnemonic-hapi and store config in /etc/photomnemonic.yaml)

nixOS

We support nixOS!

Add it to your flake like so

inputs.photomnemonic.url = "github:mkg20001/photomnemonic-hapi/master";

And use the module

{ ... , photomnemonic }:
  ...
  modules = [
    photomnemonic.nixosModules.photomnemonic
    ({ ... }: {
      nixpkgs.overlays = [ photomnemonic.overlay ];
      services.photomnemonic.enable = true;
    })
  ];
  ...