Quite overengineered blog.
- Website via Remix
- Content management via Dato CMS
- Monitoring via Metronome
- Type-safe GraphQL via graphql-code-generator
It allows the editor to customize a wide range of the website using solely Dato CMS.
This is literally my 6th blog.
Home Page: https://basixpage.vercel.app
Quite overengineered blog.
It allows the editor to customize a wide range of the website using solely Dato CMS.
Pico.css has served this website well. However due to the nature of classless-ish CSS frameworks every time the website embeds some third-party components (like Twitter embed #6, playground #23, or YouTube #19...) we have to use Shadow DOM's style encapsulation to ensure the widget is displayed correctly.
SSIA.
The TTFB is still terrible (although it is miles better than Prismic) and since we serve content that won't change very much, we can leverage the existing GraphQL ecosystem to cache them aggressively.
Change the GraphQL client from current poor man's implementation to @urql/core
and cache them using Graphcache since we know a lot of data can appear from various places (usually blocks).
ArticleRecord
by slugsWe rarely use ID value for ArticleRecord but it is without a doubt the most requested resource on the website. I propose to cache them by the pair of locale and slug which is unique enough to cache.
We can do this by leveraging the Local Resolvers feature of urql.
In combination with Dato's webhook feature, we can make Urql invalidate certain entities as soon as it gets updated. It can be done by using cache.invalidate
.
We have to rely on some sort of external persistent state because Vercel's Remix hosting is essentially a Serverless Function. We could do this by Upstash's Redis hosting with custom cache options of Graphcache.
It is possible to do this using the SSR exchange, but it isn't designed well for Remix. We can work around it by using __remixContext.routeData
and restoreData
API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.