frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Dracula-AI – A lightweight, async SQLite-backed Gemini wrapper

https://github.com/suleymanibis0/dracula
2•suleymanibis•1h ago
I'm an 18-year-old CS student from Turkey. I've been building Dracula, a Python wrapper for the Google Gemini API. I initially built it because I wanted a simpler Mini SDK that handled conversational memory, function calling, and streaming out of the box without the boilerplate of the official SDK.

Recently, I got some well-deserved technical criticism from early users: using JSON files to store chat history was a memory-bloat disaster waiting to happen; forcing a PyQt6 dependency on server-side bots was a terrible design choice; and lacking a retry mechanism meant random 503s from Google crashed the whole app.

So, I went back to the drawing board and completely rewrote the core architecture for v0.8.0. Here is what I changed to make it production-ready:

Swapped JSON for SQLite: I implemented a local database system (using sqlite3 for sync and aiosqlite for async). It now handles massive chat histories without eating RAM, and tracks usage stats safely.

True Async Streaming: Fixed a generator bug that was blocking the asyncio event loop. Streaming now yields chunks natively in real-time.

Exponential Backoff: Added an under-the-hood auto-retry mechanism that gracefully handles 429 rate limits and 503/502 server drops.

Zero Bloat: Split the dependencies. "pip install dracula-ai" installs just the core for FastAPI/Discord bots. "pip install dracula-ai[ui]" brings in the desktop interface.

Here is a quick example of the async streaming:

import os, asyncio from dracula import AsyncDracula

async def main(): async with AsyncDracula(api_key=os.getenv("GEMINI_API_KEY")) as ai: async for chunk in ai.stream("Explain quantum computing"): print(chunk, end="", flush=True)

asyncio.run(main())

Building this has been a huge learning curve for me regarding database migrations, event loops, and package management. I would love for the HN community to look at the code, review the async architecture, and tell me what I did wrong (or right!).

GitHub: https://github.com/suleymanibis0/dracula PyPI: https://pypi.org/project/dracula-ai/

Thanks for reading!

Weave – A language aware merge algorithm based on entities

https://github.com/Ataraxy-Labs/weave
1•rs545837•3m ago•0 comments

Defense contractors removing Anthropic's AI after Trump ban

https://www.reuters.com/sustainability/society-equity/defense-contractors-like-lockheed-seen-remo...
1•alephnerd•7m ago•0 comments

Fubar Daily – Dystopian news for a jaded generation

https://www.fubardaily.com
1•anonnona8878•8m ago•1 comments

Intel Nova Lake-Ax for Local LLMs – Rumored AMD Strix Halo Competitor (2025)

https://www.hardware-corner.net/intel-nova-lake-ax-local-llms/
1•walterbell•10m ago•0 comments

A rabbi is overseeing Pornhub. That's not so weird – The Forward

https://forward.com/culture/654804/pornhub-rabbi-solomon-friedman-jewish/
1•vinnyglennon•10m ago•1 comments

Show HN: Ukcalculator.com – Free UK tax, salary and mortgage calculators

https://ukcalculator.com/
1•mystart•11m ago•0 comments

Show HN: AgentBus – Centralized AI Agent-to-Agent Messaging via REST API

https://agentbus.org/
2•notepstein•13m ago•0 comments

QuarterBit – Train 70B LLMs on a single GPU

https://quarterbit.dev
2•quarterbit•15m ago•2 comments

Show HN: AI agent that trades Polymarket by hiring inference via Lightning

https://trader.lpxpoly.com
2•LightProx•17m ago•0 comments

Show HN: I built a S3 proxy that combines storage from S3/clouds into one target

https://github.com/afreidah/s3-orchestrator
2•munch-o-man•18m ago•0 comments

Iranian Number Station

https://www.iz0kba.it/en/iranian-number-station/
3•pabs3•19m ago•0 comments

OB-1

https://www.openblocklabs.com/
3•handfuloflight•20m ago•0 comments

Free software needs free tools

https://lwn.net/SubscriberLink/1060649/f0e94c3b1b4fe3bc/
4•pabs3•20m ago•0 comments

Cybersecurity and Ethical Hacking Cheatsheets

https://github.com/Ilias1988/Hacking-Cheatsheets
4•Ilias1988•21m ago•1 comments

Accenture down to buy Downdetector as part of $1.2B deal

https://www.theregister.com/2026/03/03/accenture_buys_ookla_downdetector_ziff_davis/
3•cebert•23m ago•0 comments

Tectonic good project plan: Please read

2•fourwindsoh•24m ago•1 comments

TikTok won't protect DMs with E2EE, saying it would put users at risk

https://www.bbc.com/news/articles/cly2m5e5ke4o
2•1659447091•24m ago•0 comments

2,218 Gary Marcus AI claims scored against evidence (dataset)

https://github.com/davegoldblatt/marcus-claims-dataset
42•davegoldblatt•25m ago•16 comments

The largest acidic geyser has been putting on quite a show

https://www.usgs.gov/observatories/yvo/news/echinus-geyser-back-action-now
2•1659447091•28m ago•0 comments

The Xkcd thing, now interactive, as jenga blocks

https://jenga.symploke.dev/
2•thomasfromcdnjs•31m ago•0 comments

Help us test WEBCAT alpha

https://securedrop.org/news/webcat-alpha/
2•ahlCVA•32m ago•0 comments

Bankster: Money as Data

https://github.com/randomseed-io/bankster
2•PaulHoule•33m ago•0 comments

Show HN: Augur – A text RPG boss fight where the boss learns across encounters

https://www.theaugur.ai/
3•thutch76•35m ago•1 comments

AgentMail Now Supports X402

https://twitter.com/agentmail/status/2028893166506787270
2•obulbo•36m ago•1 comments

Progressive Disclosure CLI for OpenAPI

https://github.com/OpenScribbler/phyllotaxis
2•mlhpdx•39m ago•0 comments

Show HN: A leadership 360 survey for startup founders: feedback please

https://org360.app/surveys/startup-founder-360
2•ddesposito•42m ago•1 comments

Python Package Uses a PRNG-Like Algorithm to Create Tokenized Infinite Data

https://github.com/stateshaper/stateshaper/tree/old_main
2•jaygeorgedunn•44m ago•0 comments

The 'Anything-but-Solar' Trade Is the Future of Solar

https://www.bloomberg.com/opinion/articles/2026-03-03/the-anything-but-solar-trade-is-the-future-...
2•petethomas•45m ago•0 comments

Show HN: OpenClawHub – A Lib for AI agent workflows so you don't have to

https://openclawhub.uk/
2•951560368•46m ago•0 comments

Critical Authentication Bypass in Pac4j-JWT – Using Only a Public Key

https://www.codeant.ai/security-research/pac4j-jwt-authentication-bypass-public-key
3•Brajeshwar•51m ago•0 comments