bitswired Profile Banner
Jimi V. (Bitswired) Profile
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
Don't wanna be here? Send us removal request.
@bitswired
Jimi V. (Bitswired)
1 month
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
@tannerlinsley
Tanner Linsley
4 days
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
@tan_stack
TANSTACK
4 days
πŸš€ 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
@bitswired
Jimi V. (Bitswired)
18 days
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
@shamals_on_x
Shamal De Silva
18 days
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 😊
Tweet card summary image
github.com
Contribute to bitswired/kiru development by creating an account on GitHub.
1
1
1
@bitswired
Jimi V. (Bitswired)
20 days
πŸ˜…
0
0
1
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
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
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
@EffectTS_ Putting it together. Each step is composable and testable.
1
0
0
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
@EffectTS_ Merge frontmatter with compiled output. Now we have everything in one object!
1
0
0
@bitswired
Jimi V. (Bitswired)
1 month
@EffectTS_ If the user wants exports (like metadata, TOC) we extract them from the MDX content.
1
0
0
@bitswired
Jimi V. (Bitswired)
1 month
@EffectTS_ For each file, bundle the MDX with mdx-bundler. Effect.tryPromise converts Promise errors to typed errors.
1
0
0
@bitswired
Jimi V. (Bitswired)
1 month
@EffectTS_ First, stream all .mdx files from the folder. streamFiles is a helper that uses Effect's FileSystem service.
1
0
0
@bitswired
Jimi V. (Bitswired)
1 month
@EffectTS_ The loader returns an Effect Stream. Streams let us process files one-by-one without loading everything into memory.
1
0
0
@bitswired
Jimi V. (Bitswired)
1 month
@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
@bitswired
Jimi V. (Bitswired)
1 month
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
@bitswired
Jimi V. (Bitswired)
1 month
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
@bitswired
Jimi V. (Bitswired)
1 month
@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 πŸš€
@bitswired
Jimi V. (Bitswired)
1 month
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