frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: MasqueradeORM – Memory Efficient Node ORM: Just Write Classes

https://github.com/MasqueradeORM/MasqueradeORM
2•masqueradeorm•2h ago

Comments

masqueradeorm•2h ago
Hey HN,

Around 8 months ago, I decided to create something that has never been done before: an ORM. But not just any ORM, an ORM that requires only plain classes: no decorators, no schema.prisma files, no repositories, no entity managers.

MasqueradeORM only requires the classes to extend Entity, a class that the ORM provides. The ORM infers the database schema from your property types (TS or JSDoc), creates tables/columns automatically, and gives you a single instance per row via a process-wide identity map (WeakRefs + FinalizationRegistry for deduplication and low memory usage).

Repo: https://github.com/MasqueradeORM/MasqueradeORM

NPM: npm i masquerade-orm (v0.9.2)

Example:

    class User extends Entity {
        name!: string
        email!: string
        posts!: Post[]   // relation
    }

    const res = await User.find({ id: 1 })
    const user = res[0]
    user.name = "New Name"
    user.posts.push(new Post({ title: "Hello" }))
    await someAsyncThing()  // changes flush here (implicit)

Key features:

- Memory efficient - one instance per database row (no duplication in relation graphs), WeakRefs prevent leaks Just write classes - no decorators, no schema files, no repositories, no entity managers.

- Expressive queries - declarative criteria-based querying with object filters for simple cases, plus embedded sql templates and scoped builder functions for deep relational / complex logic.

- Relations - eager/lazy loading, bidirectional relations, set new relations without loading, or even add a relation in X-to-many relations without loading the relation.

- Auto schema - creates tables/columns from classes, detects unused columns/tables/junctions, manual cleanup when safe Databases - SQLite + PostgreSQL (MySQL on the board)

It's pre-1.0 / experimental: missing explicit transactions, schema evolution is manual (unused columns and tables stay until you drop them using a built-in helper class), no built-in caching yet. Built for prototypes, personal apps, tools, anyone who hates ORM boilerplate, or those who enjoy experimenting. The identity map and plain-class approach are the parts I'm most proud of. Would love honest feedback: Are the docs clear? Does the memory efficiency hold up in real graphs? What breaks for you? Missing features? Too magical? Too risky? Thanks for looking! (Repo has docs, getting-started guides for TS/JS, and more examples.)

Decompensation and Cascading Failures

https://resilienceinsoftware.org/news/11454232
1•mrngm•1m ago•0 comments

Go library maintainer brands GitHub's Dependabot a 'noise machine'

https://www.theregister.com/2026/02/24/github_dependabot_noise_machine/
1•beardyw•2m ago•0 comments

Mac mini will be produced in the US for the first time later this year

https://twitter.com/tim_cook/status/2026351829928624257
1•tosh•3m ago•0 comments

Off Grid: On-device AI-web browsing, tools, vision, image gen, voice – 3x faster

1•ali_chherawalla•3m ago•1 comments

Hacking an old Kindle to display bus arrival times

https://www.mariannefeng.com/portfolio/kindle/
2•mengchengfeng•3m ago•0 comments

Show HN: Interactive 3D Moon with real NASA data and WebGPU

https://moon.oddurs.com
1•oddurs•4m ago•0 comments

V1.3.0 Spring CRUD Generator- MariaDB Support + Null Exclusion in REST Responses

https://github.com/mzivkovicdev/spring-crud-generator/releases/tag/v1.3.0
1•mzivkovicdev•5m ago•0 comments

Earliest known writing dates back over 40k years

https://www.popsci.com/science/earliest-human-writing-germany/
2•_vaporwave_•6m ago•0 comments

Show HN: I applied Markowitz port. theory to agent teams / proved it in a zkVM

https://www.mnemom.ai/showcase
1•alexgarden•6m ago•0 comments

Hegseth warns Anthropic to let the military use company's AI tech as it sees fit

https://apnews.com/article/anthropic-hegseth-ai-pentagon-military-3d86c9296fe953ec0591fcde6a613aba
1•zzzeek•6m ago•1 comments

When newspapers cut book coverage, communities lose more than reviews

https://www.poynter.org/business-work/2026/why-dont-newspapers-review-books-anymore/
1•speckx•6m ago•0 comments

Meta's Internal Research about harms of social media

https://metasinternalresearch.org/
1•shrubby•7m ago•1 comments

Reddit fined more than £14M over age verification checks

https://news.sky.com/story/reddit-fined-14m-by-information-commisioners-office-over-age-verificat...
2•ivewonyoung•8m ago•1 comments

GPT-5.3-Codex is now available for all developers

https://twitter.com/OpenAIDevs/status/2026379092661289260
1•tosh•9m ago•0 comments

Anthropic's Existential Negotiations with The Pentagon

https://www.theverge.com/ai-artificial-intelligence/883456/anthropic-pentagon-department-of-defen...
1•czottmann•9m ago•1 comments

Show HN: Agently an AI Work OS that turns docs, chats, and tasks into execution

https://www.agently.dev/
1•Bondig•11m ago•1 comments

The sitting president is selling watches

https://gettrumpwatches.com/
1•vjvjvjvjghv•12m ago•1 comments

Writing about Agentic Engineering Patterns

https://simonwillison.net/2026/Feb/23/agentic-engineering-patterns/
1•Anon84•12m ago•0 comments

Show HN: Building to Remember. Using AI to Wrangle My Daily Mess

https://chrisberry-tech.pages.dev/
1•WarcrimeActual•12m ago•0 comments

Show HN: Srclight – Deep code indexing MCP server (FTS5 and Tree-sitter)

1•srclight•13m ago•0 comments

Show HN: Prompt → Schema → CRUD API and Admin UI (New Codehooks Template)

1•knutmartin•14m ago•0 comments

I built a tool that scores how replaceable you are in the AI economy

https://candidate.perfectly.so/roast
2•luogary•15m ago•1 comments

In a replay of 2019, Apple says a single Mac will be manufactured in the US

https://arstechnica.com/apple/2026/02/in-a-replay-of-2019-apple-says-a-single-desktop-mac-will-be...
4•rbanffy•15m ago•0 comments

OpenMedicare – 10 years of Medicare physician data analyzed for fraud patterns

https://www.openmedicare.us
1•kianoconnor•15m ago•0 comments

Minimalism

https://en.wikipedia.org/wiki/Minimalism_(computing)
1•tosh•16m ago•0 comments

GridCalc: An RPN Spreadsheet for iOS

https://tailrecursion.com/~alan/GridCalc.html
1•wooby•16m ago•0 comments

DJI Romo robovac had security so poor, man remotely accessed them

https://www.theverge.com/tech/879088/dji-romo-hack-vulnerability-remote-control-camera-access-mqtt
1•cglong•16m ago•0 comments

Laser irradiation method for additive manufacturing of WC–Co cemented carbide

https://www.sciencedirect.com/science/article/pii/S0263436825005906
2•PaulHoule•18m ago•0 comments

words – my own personal dictionary

https://words.clarkdinnison.com/a
2•kaniksu•18m ago•2 comments

Show HN: Writher – offline voice assistant for Windows (Whisper and Ollama)

https://github.com/benmaster82/writher
1•bcorp•18m ago•1 comments