Repository navigation
[Idea / Proposal] Phased architecture for contextual chat parsing (Follow-up to #145) #151
sleeping3119
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Follow-up / architectural proposal related to #145.
I'd like to suggest a different approach here — instead of designing a fully generic parser upfront, what if we started with solid, app-specific parsing logic for a few major messaging apps (Instagram, Facebook Messenger, Telegram, Discord, etc.)?
Building these individually first would help us actually see:
Once a handful of apps are implemented and these patterns are clear, we could formalize a proper plugin system based on real requirements instead of guesses. Long-term, the idea would be for app-specific parsers to live outside the core app as separate, independently maintained/distributed plugins — so if, say, Instagram changes its structure, only that parser needs updating, not the whole app. This would also open the door for community contributions without touching the main codebase.
For the parsers themselves, it might be worth considering a lightweight declarative format (like YAML) for the common cases, with something like Lua as a scripting fallback for the trickier, stateful edge cases that don't fit a declarative schema cleanly. Just a rough idea at this stage, not something set in stone.
So the proposed order would be:
Before going ahead with any of this, I wanted to share the direction I'm thinking of and get your thoughts — happy to adjust based on feedback. This feels like a more practical path than generalizing before we understand the problem well enough to generalize correctly.
All reactions