How 7mxd/xbloom-recolor works
xBloom Recolor is a small web app for recolouring shared xBloom recipe cards. A user submits a share link to view recipe details, chooses a colour, and saves; the server re-fetches the recipe, checks for an existing matching copy, and returns a share link for a reused or newly created copy. The main internal layer is the xBloom API client, which handles public recipe reads and authenticated service-account operations. The UI source was not sampled, so its API interactions are based on the README workflow; the precise UI-to-endpoint wiring is not shown.
Main entry points: xbloom.js Recolour and dedupe · handlers.js Request handlers · index.html Recipe UI · recipe.js Recipe endpoint
Components 11
User interface
- Recipe UI
public/index.html
Request handling
- Recipe endpoint
api/recipe.js - Save endpoint
api/save.js - Request handlers
lib/handlers.js
xBloom integration
- Shared recipe read
lib/xbloom.js - Recolour and dedupe
lib/xbloom.js - Service account auth
lib/xbloom.js - Account recipe lookup
lib/xbloom.js - Recipe copy creation
lib/xbloom.js
Other components
- Recipe user
- xBloom cloud API
Connections 14
- Recipe user → Recipe UI: submits recipe
README.md - Recipe UI → Recipe endpoint: requests details
README.md - Recipe UI → Save endpoint: requests save
README.md - Recipe endpoint → Request handlers: delegates to
api/recipe.js - Save endpoint → Request handlers: delegates to
api/save.js - Request handlers → Shared recipe read: fetches recipe
lib/handlers.js - Request handlers → Recolour and dedupe: recolours recipe
lib/handlers.js - Recolour and dedupe → Account recipe lookup: checks existing copy
lib/xbloom.js - Recolour and dedupe → Recipe copy creation: creates copy
lib/xbloom.js - Shared recipe read → xBloom cloud API: reads shared recipe
README.md - Service account auth → xBloom cloud API: logs in
README.md - Account recipe lookup → xBloom cloud API: lists account recipes
README.md - Recipe copy creation → xBloom cloud API: saves recipe
README.md - Recolour and dedupe → Service account auth: authenticates via
lib/xbloom.js