frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Litelink – local-first, embedded stream capture into Iceberg tables

https://github.com/nhobin219/litelink
3•jnbh•59m ago
Hi HN! I just wanted to share litelink a local-first, embedded capture library I built in python (code is heavily AI generated but designed and reviewed by yours truly). I've been using this for point-and-shoot WebSocket capture but I imagine it could also be useful for observability/metrics ingestion as well. Litelink supports a single writer per stream.

I've been doing a lot of development and deployments on tiny VMs (2 vCPU, 8GB, 50-100GB disk) and didn't want the complexity or cost of managing central brokers (Kafka), databases (Postgres), and CDC/connectors just to get queryable WebSocket stream capture running.

With litelink, you configure a log in code, and end-to-end setup takes <5 minutes (see the example scripts in the repo). The log is itself an Iceberg table (actually two: a local and archive table), so there's no second copy of your data to keep in sync or connector to manage.

I'm sure there are still bugs, but I recently migrated all the capture feeds for a personal research project to litelink, and the experience has been night and day. Before that, I'd hand-rolled a capture system and was dealing with all the issues you'd expect (e.g. small file problem). I'll post some before/after stats in a comment below.

I tried to channel the same ethos as LanceDB/Iceberg/SQLite. Everything runs local first without a network connection required. I've tried to abstract the complexity of stream/data lifecycle maintenance away behind a few public library methods. Hopefully someone else finds this useful! Let me know what you think.

repo: https://github.com/nhobin219/litelink

spec: https://github.com/nhobin219/litelink/blob/main/docs/SPEC.md

pypi: `pip install litelink`

Comments

jnbh•57m ago

                                   -- legacy -- - litelink -    file   byte
  stream                     rows   files    GB files    GB   ratio  ratio
  ------------------------------------------------------------------------
  md/asset-stats-1m   283,283,881   1,285  9.97   872 12.58      1x  0.79x
  md/trades-b         189,207,469  29,598 13.00 1,400 12.62     21x  1.03x
  md/trades-a          58,928,828  39,195  5.20   398  4.63     98x  1.12x
  md/depth             57,568,622  39,026 17.65 1,519 17.07     26x  1.03x
  md/instruments-a     41,384,403 200,360  9.27 1,514  1.19    132x  7.82x
  md/asset-stats        9,036,011  76,274  1.64    51  0.73  1,496x  2.25x
  md/instruments-b †    7,164,452   3,081  5.46 1,246  9.33      2x  0.59x
  md/depth-archive      6,326,501   2,002  0.53    20  0.58    100x  0.91x
  md/funding-pred       4,921,010  15,351  0.15    13  0.04  1,181x  3.44x
  md/candles-1h         1,216,025   9,668  0.14     4  0.07  2,417x  1.91x
  md/events             1,031,573  35,935  0.75    17  0.39  2,114x  1.91x
  soc/forum               778,702  19,945  0.86    32  0.03    623x  28.3x
  md/pools                433,499   7,513  0.27    11  0.14    683x  1.91x
  soc/posts-b             262,575  35,634  0.42     6  0.15  5,939x  2.75x
  soc/posts-a             249,136  51,914  0.77    24  0.01  2,163x  57.0x
  md/token-profiles       234,029  15,595  0.19     3  0.01  5,198x  21.7x
  md/token-boosts         231,719  15,441  0.21     3  0.00  5,147x  53.3x
  soc/counts              103,058     164  0.00     0  0.00     all  2.42x
  md/trending              39,149   5,207  0.10     1  0.03  5,207x  3.49x
  soc/messages             30,218   9,568  0.10     0  0.00     all  25.1x
  soc/posts-c              29,617  13,192  0.24     1  0.00 13,192x  86.7x
  md/holders                9,746      96  0.08     3  0.07     32x  1.11x
  md/authorities            9,644     137  0.00     0  0.00     all  2.23x
  md/universe               6,760      29  0.00     0  0.00     all  6.00x
  soc/stats                 6,690   6,690  0.03     0  0.00     all  68.4x
  md/funding                4,486   1,298  0.01     0  0.00     all  96.0x
  soc/polls                 2,050   2,114  0.01     0  0.00     all   199x
  md/candles-1d               191   1,597  0.03     0  0.00     all 2,363x
  soc/filter-a                 24      24  0.00     0  0.00     all  7.39x
  soc/filter-b                  1      23  0.00     0  0.00     all   490x
  ------------------------------------------------------------------------
  TOTAL (30 streams)  662,500,069 637,956 67.05 7,138 59.70     89x  1.12x
NOTE: litelink auto-generates a `litelink_offset` column (unique, doesn't compress). This column dominates bytes/row in rows where the the byte ratio is < 1 (litelink data is larger). The old, hand-rolled capture lacked any monotonically increasing offset. Also, for the rows that say byte ratio is"all" (reporting zero litelink files), this is because all of the data fits in litestream replicated WAL and there are not yet any compacted files
jnbh•55m ago
P.S.: my hot (and quite possibly wrong) take on the near future of software development is that we are going to see a shift toward local first tooling since agents can super easily deploy and use these libraries in isolated sandboxes (pods/containers/VMs). Obviously, this doesn't apply to everything and there are many use cases that will still require distributed, zero-downtime deployments. But, for most applications, the cost of deploying code/infra can be made so cheap with an ergonomic library that I think a lot of the appeal of centralized services/servers is decaying (especially if remote object storage can be plugged into the storage layer of a library/tool). Anyhow, those are just my two cents.

I Connected My Withings Body+ to Home Assistant with an ESP32

https://didac.dev/blog/i-made-my-withings-scale-sync-to-home-assistant-without-the-cloud
1•sabatesduran•2m ago•0 comments

ChatGPT Healthcare Epic Integration

https://openai.com/index/chatgpt-connects-health-records-and-healthcare-sources/
2•gist•2m ago•0 comments

Lessons for founders from my time as a founder

https://hraness.com/writing/3-lessons-for-founders-from-my-time
1•benzguo•3m ago•0 comments

Building VT Code, a Year In

https://huggingface.co/blog/vinhnx90/building-vtcode-a-year-in
1•vinhnx•3m ago•0 comments

Finding Your Way Through a Dependency Graph

https://blog.ptidej.net/ghost/#/editor/post/6a75eacef09a7d4801366fc3
1•viniciusmioto•3m ago•0 comments

Show HN: Mu – an agent with actual command line experience

https://github.com/ylxdzsw/mu
1•ylxdzsw•3m ago•0 comments

Running a Software Factory Efficiently at Uber Scale

https://www.uber.com/gb/en/blog/efficient-software-factory/
2•nlpnerd•4m ago•0 comments

The courtroom inside our AI

https://simple.dev/blog/simple-ai-v2-answers-that-carry-their-own-proof/
1•munjal116•5m ago•0 comments

Porting my 1993 Amiga game to Godot, with an LLM reading the 68000 assembly

https://babyloniantwins.com/blog/porting-a-1993-amiga-game-to-godot/
2•rabahs•7m ago•1 comments

Why has Peter Thiel moved to Argentina?

https://www.theguardian.com/technology/2026/sep/03/peter-thiel-argentina-javier-milei
1•louiscb•8m ago•0 comments

The Secret of Chronic Pain Could Lie in the Skull

https://nautil.us/the-secret-of-chronic-pain-could-lie-in-the-skull-1284730
1•Brajeshwar•9m ago•0 comments

Rydger, a local-first iPhone app for vehicle maintenance costs

https://www.rydger.com/en
1•garbarok•9m ago•0 comments

How do you guys keep up with the most cost-effective AI models?

1•solomonmwalker•11m ago•0 comments

Lucky Infinity Cube

https://www.williamivy.com/posts/infinity-cube/
1•bookofjoe•11m ago•0 comments

Consumers Profit Off Solar, Batteries Selling Excess Energy Back to Grid

https://www.bloomberg.com/news/features/2026-09-03/consumers-profit-off-solar-batteries-selling-e...
1•gmays•11m ago•0 comments

A BGP attack led to a misissued TLS cert

https://arstechnica.com/security/2026/09/well-executed-bgp-attack-uses-hijacked-ips-to-infect-rea...
1•amaccuish•14m ago•0 comments

Legal AI Drafter, Contract Management and Datarooms

https://99datarooms.com/
1•Lotf•15m ago•0 comments

I'm a seeing-eye dog for a computer

https://claytonwramsey.com/blog/seeing-eye/
1•claytonwramsey•15m ago•0 comments

Scala 3.9.0 LTS Released

https://github.com/scala/scala3/releases/tag/3.9.0
1•DASD•15m ago•0 comments

DOJ urges judge to rule for OpenAI, Microsoft in N.Y. Times lawsuit

https://www.washingtonpost.com/technology/2026/09/02/doj-urges-judge-rule-openai-microsoft-ny-tim...
1•1vuio0pswjnm7•16m ago•1 comments

PGrid, a spec-first laptop search

https://www.pgrid.app/au/laptops
1•techedlaksh•16m ago•0 comments

Show HN: A headless Synergy server setup for niche use cases

https://github.com/hishamk/headlesssynergysetup
1•hishamk•19m ago•0 comments

How the Hell Did an Island Suddenly Appear, Then Vanish?

https://www.404media.co/how-the-hell-did-an-island-suddenly-appear-then-vanish/
4•Brajeshwar•20m ago•1 comments

Reinforcement Learning or Active Inference (2009)

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0006421
2•teleforce•21m ago•0 comments

Mom Gets 6-Mo Suspended Sentence for Letting 5-Year-Old Walk to the Pond

https://reason.com/2026/09/02/virginia-mom-gets-6-month-suspended-jail-sentence-for-letting-5-yea...
72•softwaredoug•23m ago•24 comments

Building an Invisible Smart Home

https://nealshyam.com/writing/invisible-smart-home/
2•nealrs•24m ago•1 comments

Show HN: Instantly get the transcript from the agent that wrote any line of code

https://github.com/ctxrs/ctx/blob/main/README.md
3•luca-ctx•25m ago•0 comments

Industrial AI Founders Keep Solving the Wrong Problem

https://deploy95.substack.com/p/the-gtm-problems-that-arent-what
2•dddddaviddddd•26m ago•0 comments

Show HN: Keydris - Check what an agent is allowed to do before it runs

https://keydris.com
2•ahmed89•27m ago•0 comments

Cratering oil use in China shows the death spiral that could end oil

https://electrek.co/2026/09/03/cratering-oil-use-in-china-shows-the-death-spiral-that-could-end-oil/
5•Klaster_1•27m ago•0 comments