Better typescript fetch clients - 23-01-16
I recently started using fetch for API clients in the browser. I like my responses to remain objects, but coerce them to types. This is my solution.
I recently started using fetch for API clients in the browser. I like my responses to remain objects, but coerce them to types. This is my solution.
Lit is a framework for building web components. Xstate is JavaScript and TypeScript finite state machines and statecharts for the modern web. This is an example of using the tools together to control the user journey.
Sentry is a great error tracking tool. Sentry browser defaults to using global this as a memoization tool. This blog explores singleton typescript patterns for scoping sentry down when using it on someone elses website. This will hopefully help you only capture your own errors, and also not annotate any existing sentry contexts with your embedded applications data.
Cypress component testing lets you flex your code in a real browser. While Lit is not officially supported I've found adding it is not complex. In this blog I will show you how.
If you have a local setup, just for you, and want it stored, here's how to do it, while leaving no footprints in the git repository.
The AWS CDK implement Cloudformation specification v50.0.0 on 2022-02-09. This means RUM can now be configured with the cdk, making it more consistent to get started in all environments.
Cypress is an integrated testing framework for web apps, and web components. It's popular due to it's easy of setup and visual browser. In this blog I discuss parallel test running with the open source tool sorry cypress.
This series will explore the many ways that OpenAPI specifications can interact with Typescript types. It includes a short review of the available tools in the space, that is hopefully useful for those seeking out solutions to documenting their RESTful APIs.
Turborepo is a new fast build tool that Vercel recently scooped up along with the lead maintainer. While they offer free hosting to a linked vercel account, there can be many reasons that your code needs to not be shared there.
When shipping to AWS from a Continuous Integration tool long lived credentials are often used. In this article I walk through bootstrapping, and establishing a trust relationship with GitHub Open ID Connect.
AWS launched some new services for monitoring application at Re:Invent. Existing services like AWS Canaries exist to work with API's and Front end applications. Lets see how to deploy these together, and look at fullstack observability
Sharing a curated collection of useful CDK Utilities. First up, the Vercel secret forwarder, a custom resource that sends environment variables to your preview deploys, so you can iterate from front-to-back.
Using AWS Cognito identity pools to restrict server and client side permissions with fine-grained access control.
In May of 2018 I got my first programming job, by July I was exclusively coding by voice. This blog shares my experiences.
SWC is a fast js/ts transpiler written in rust, how does it measure up to tsc and tsc --incremental?
A bootstrapping template for writing typescript serverless applications, using esbuild to transpile fast, and the Serverless Framework for deploys
Building self documenting, and schema validated APIs that scale horizontally on AWS Lambda
In part 2 we will add multiplayer to the game.
In part 1 we will build the board, the controls, and the player model for the game
How to have a serverless search engine with, 2 million free searches per month, decent load handling, and globally high page performance.
Building a DynamoDB GUI with Electron, React, Typescript and the AWS SDK V3 for Javascript.
Some patterns I found useful when working with the aws-sdk v3 for Javascript
Incrementally monitor and improve security with GitHub actions and the Mozilla Observatory tool
This blog is about how I built this blog site. It is focussed on a fast flow for both writing and drawing/annotating using a single editor, VSCode.
This tutorial provides a brief introduction to Cypress and how to simulate testing server side rendered (SSR) pages.
Have your cake and eat it too with a completely free Kafka and Docker container stack through heroku!
This is an example of networking between Docker Compose files with Ruby's Karafka and Landoop Lenses Box.