~/lightning

Mocking your backend with a MITM proxy

Lightningat JSUnconf 2019 · 2019-04-13..04-14· [testing, devops-and-delivery]
slides:none on file

A local MITM proxy that runs as an NPM install module creates a self-signed certificate and automatically trusts it for Chrome and Safari, edits the hosts entry, and proxies real endpoints like amazon co uk so requests hit the laptop. Configuration is a TypeScript file enabling typed mocks: serve fixed JSON or run a function to mutate responses, simulate errors, and iterate against new endpoints before backend changes exist — not open source yet.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.