Here is another set of notes and thoughts.

SQL(ite) Content Layer idea

First, what's missing re contentlayer.dev or tina.io?

  • contentlayer.dev - lot's of good things: pretty simple, typescript kind of stuff giving validation, reloading of content
    • validation is not that useful - forces you to have fields specified
    • no references (foreign keys) - though see https://github.com/contentlayerdev/contentlayer/issues/86
    • queries are just all of a category (and doc can only be one category)
    • mixes in markdown parsing (and rendering) with content layer itself
  • tina …

What happens if we just loaded markdown into an sql(ite) database?

We have loads of tools for accessing this.

We can do proper orm.

If you want easy to get a graphql wrapper

excalidraw/contentlayer-db-idea-2022-12-30.excalidraw

SQLite with NextJS

This leads naturally to the question: is it possible to use sqlite read-only in nextjs server-side (or client side)

Asides

And some random extras

Looking at svelte (again)

What i want to do …

  • Create a list of alternatives e.g. github libraries, tools, products, holidays etc.
  • data driven documents / data literate documents
    • visualize stuff quickly
    • play with data quickly
    • publish a dataset quickly
    • investigate a topic
  • scratchpad for data
Built with LogoFlowershow