About

Paulie API is a standalone API and documentation site. It accepts request from a restricted list of origins for various functionality required for a number of my own websites.


Rational

All of the sites listed below use this API and the functionality has been abstracted for one of two reasons:

  1. The origin site is not built using Gatsby and can't run it's own Serverless Functions
  2. The Serverless Function is used by more than one origin

I've shorthanded this functionality to mean the following:

SOF: Same Origin Function

This means that the site can run it's own Serverless functions and both the Front and Back-end are deployed to the same origin.

This is denoted using solid lines in the diagram below

COF: Cross Origin Function

This means the site can't run it's own Serverless Functions or it makes use of a Serverless Function that is used by more than one origin.

This is denoted using dashed lines in the diagram below
API overview diagram

Origins

https://paulie.dev

This site is built using Gatsby

It uses COF's to connect to the get-twitter-user and make-stripe-payment endpoint. It uses is own SOF's to POST and GET user reactions stored in a Fauna database and POST's to ConvertKit to handle Newsletter sign ups.

  • Built with Gatsby ✅
  • Uses SOF ✅
  • Uses COF ✅

https://pauliescanlon.io

This site is built using Gatsby

It uses COF's to connect to the get-twitter-user endpoint. It has no SOF's

  • Built with Gatsby ✅
  • Uses SOF ❌
  • Uses COF ✅

https://mdx-embed.com

This site is built using Storybook

It uses COF's to connect to the make-stripe-payment endpoint. It can't use SOF's

  • Built with Gatsby ❌
  • Uses SOF ❌
  • Uses COF ✅

https://pauliescanlon.github.io

This site is built using Astro

It uses COF's to connect to the get-github-events endpoint. It can't use SOF's

  • Built with Gatsby ❌
  • Uses SOF ❌
  • Uses COF ✅