u/Eitamr

▲ 8 r/flask+1 crossposts

built this for flask + SQLAlchemy codebases because existing SQL linters only see .sql files, which is useless when the SQL doesn't exist until runtime, or they are AI garbage tools

valk-guard reads the python AST, walks SQLAlchemy chains (session.query, select, filter, join), reconstructs the SQL the ORM will generate, parses it with a real postgres grammar, runs 19 rules. catches DELETE/UPDATE without WHERE, SELECT *, leading wildcard LIKE, CREATE INDEX without CONCURRENTLY, plus schema drift between models and migrations.

deterministic. no LLM, no DB connection. runs in CI in seconds.

postgres only. SQLAlchemy 1.x works, 2.0 mapped_column half-done+ SQL migration file

https://github.com/ValkDB/valk-guard

would appreciate feedback from anyone running flask + SQLAlchemy in prod, especially on patterns you think this would miss.

u/Eitamr — 10 days ago
▲ 1 r/ollama

I wanted to learn local models better, so I spent the weekend trying to build something end-to-end without using any APIs.

It turned into a small pipeline that generates short vertical videos:
storyboard → images → narration → segments → final video

Part creation

Style or voice menu

Edit menu

1 example of a thing it created with 5 minutes on shitty pc

Everything runs locally:
- SDXL via ComfyUI
- Kokoro TTS
- Whisper for captions
- FFmpeg for assembly
- Gemma 4 to create the scripts, and to help debug it

Some things I focused on:
- no APIs at all
- deterministic pipeline (can rebuild a single segment without touching the rest)
- modular "styles" (different animators / caption systems / looks)
- simple UI + CLI for editing parts and timing

This wasn’t meant to be a product — more like treating AI media generation as a reproducible system instead of a black box.

Not trying to sell anything here, I will not respond to dms 😄
More just a reminder that instead of stacking subscriptions for every tool, you can actually build a lot of this yourself locally and it’s surprisingly fun.

I’ll probably clean it up and open source it if the people will like it.

Also the voice TTS still sucks, maybe I will take the time to improve it

reddit.com
u/Eitamr — 14 days ago

I wanted to learn local models better, so I spent the weekend trying to build something end-to-end without using any APIs.

It turned into a small pipeline that generates short vertical videos:
storyboard → images → narration → segments → final video

Part creation

Style or voice menu

Edit menu

1 example of a thing it created with 5 minutes on shitty pc

Everything runs locally:
- SDXL via ComfyUI
- Kokoro TTS
- Whisper for captions
- FFmpeg for assembly
- Gemma 4 to create the scripts, and to help debug it

Some things I focused on:
- no APIs at all
- deterministic pipeline (can rebuild a single segment without touching the rest)
- modular "styles" (different animators / caption systems / looks)
- simple UI + CLI for editing parts and timing

This wasn’t meant to be a product — more like treating AI media generation as a reproducible system instead of a black box.

Not trying to sell anything here, I will not respond to dms 😄
More just a reminder that instead of stacking subscriptions for every tool, you can actually build a lot of this yourself locally and it’s surprisingly fun.

I’ll probably clean it up and open source it if the people will like it.

Also the voice TTS still sucks, maybe I will take the time to improve it

reddit.com
u/Eitamr — 14 days ago