Jimi V. (Bitswired)
@bitswired
Followers
199
Following
2K
Media
425
Statuses
3K
Building stuff out of thin air πͺπ§π½βπ» https://t.co/T0H29k4QJ1 π₯ https://t.co/paewgtwxq2
Joined June 2019
Tired of writing the same content-loading code in every project? I've been working on FoldCMS: a type-safe static CMS built with @EffectTS_ with relations support. Comes with an SQLite content store. ππ½ Build the CMS, include the sqlite output in your sever, enjoy.
1
1
8
Query-Driven Sync is going to be transformational IMO. It's already changed my perspective on not just modern server state, but also app state. It's bred from so many great ideas and tools that have come before it, built on top of bulletproof patterns and even some of our own
π TanStack DB 0.5 is here with Query-Driven Sync Your component's query IS the API call. No custom endpoints. No GraphQL resolvers. Just write your query and DB figures out exactly what to fetch. Details π§΅π
19
28
599
I just released Kiru: a text chunking lib, 1000x faster than LangChain splitters. Built in Rust for Python. If you're building RAG systems, you know the basic drill: load documents, split them into chunks, feed them to your vector database. Simple enough, except most chunking
2
0
2
PyPi: https://t.co/Vzj0Y04yQN Crates: https://t.co/090YrbOVFZ GitHub: https://t.co/aHXb1yfPC8 A really cool use case of Rust for Text Chunking π₯³π₯ Check out the repo for more details also couldnβt find the owner on X if anyone does know the account please tag him π
github.com
Contribute to bitswired/kiru development by creating an account on GitHub.
1
1
1
@EffectTS_ If youβre building: β’ Static sites with complex content β’ Documentation with relations β’ Blogs that need type safety β’ Content-heavy apps Give FoldCMS a try. Would love your feedback. RT if you think this could help someone οΏΌ https://t.co/TxnWxBVXR1
Few days ago I shared FoldCMS. Today I'm showing you how the MDX loader works under the hood. It's actually a great example of @EffectTS_ Streams in action. Let's dive in
0
0
1
@EffectTS_ The MDX loader is just one of several: - JSON files - YAML files - JSON Lines - YAML streams Or build your own loader for: - Notion - Contentful - Your database - Anywhere Link:
foldcms.dev
Type-safe static CMS powered by Effect and SQLite
1
1
1
@EffectTS_ Building this taught me: - Effect Streams > Promises for file processing - Type-safe errors are worth the learning curve - Composable pipelines beat monolithic functions Would I rebuild it? Yes. Worth it.
1
0
0
@EffectTS_ Why not just load all files at once? Streams give us: - Memory efficiency (process one at a time) - Backpressure handling (don't overwhelm the system) - Lazy evaluation (only process what's needed) - Easy composition (pipe operations together) For 10k+ files, this matters.
1
0
0
@EffectTS_ Every step can fail: - File not found - Invalid YAML frontmatter - MDX compilation error - Schema validation error Effect's type system tracks all these.
1
0
0
@EffectTS_ Finally, validate against the user's schema. If validation fails, Effect gives us a detailed error with the exact field that's wrong. Type safety from file β database!
1
0
0
@EffectTS_ If the user wants exports (like metadata, TOC) we extract them from the MDX content.
1
0
0
@EffectTS_ For each file, bundle the MDX with mdx-bundler. Effect.tryPromise converts Promise errors to typed errors.
1
0
0
@EffectTS_ First, stream all .mdx files from the folder. streamFiles is a helper that uses Effect's FileSystem service.
1
0
0
@EffectTS_ The loader returns an Effect Stream. Streams let us process files one-by-one without loading everything into memory.
1
0
0
@EffectTS_ MDX files need: - Frontmatter parsing (YAML) - MDX compilation (with bundler) - Export extraction (for metadata) - Schema validation - Error handling All while streaming files efficiently.
1
0
0
Few days ago I shared FoldCMS. Today I'm showing you how the MDX loader works under the hood. It's actually a great example of @EffectTS_ Streams in action. Let's dive in
Tired of writing the same content-loading code in every project? I've been working on FoldCMS: a type-safe static CMS built with @EffectTS_ with relations support. Comes with an SQLite content store. ππ½ Build the CMS, include the sqlite output in your sever, enjoy.
1
0
0
@EffectTS_ If youβre building: β’ Static sites with complex content β’ Documentation with relations β’ Blogs that need type safety β’ Content-heavy apps Give FoldCMS a try. Would love your feedback. RT if you think this could help someone π
Tired of writing the same content-loading code in every project? I've been working on FoldCMS: a type-safe static CMS built with @EffectTS_ with relations support. Comes with an SQLite content store. ππ½ Build the CMS, include the sqlite output in your sever, enjoy.
0
0
0