Some thoughts on 'API Builder' style - using property access tricks to pretend you encoded all endpoints of an API.

https://caolan.uk/notes/2025-09-18_api_builder_style.cm

#JavaScript

API Builder Style · Caolan

@caolan I had a go with it: https://github.com/glynnbird/minicouch ... I'm not sure I'd use it, but the brevity is cool :)
GitHub - glynnbird/minicouch: Tiny CouchDB client library

Tiny CouchDB client library. Contribute to glynnbird/minicouch development by creating an account on GitHub.

GitHub
@glynn_bird oh, fun idea! For numeric IDs you could use quoted properties: mydb['2mydoc']()