/workers-serverless-api

Typescript version of my API running on Cloudflare Workers

Primary LanguageTypeScriptMIT LicenseMIT

Serverless API

Deploy

This is a rewrite of my go api. Written in typescript and written to run on Cloudflare's Workers

Endpoints

The following endpoints are available

Returns a JSON response of my Github Repos

Returns a JSON response of my Github Profile

You can either do a GET request to /misc/gravatar/<email here> and get a text response or POST request to /misc/gravatar with a JSON body field of email

A list of redirects to my stuff. Based off of lilredirector

Returns Cloudflare headers

Return version info

Returns an encrypted version of my resume. Requires a POST formdata request with your public key as a file called key

Get a JSON array of PyPy Checksums.

For filename you can use all to get all checksums or you can filter down to version (pypy3.9-v7.3.11) or single file (pypy3.9-v7.3.11-src.tar.bz2).

Get all of the alert types that Cloudflare has.

Get all of the possible permissions for a Cloudflare API Token.

Development

Create an API Token using this link then add it and the account id to your .dev.vars file for local development.