frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Logicrepo – Define business logic in YAML, test it in CI

https://github.com/alexdrimbe/logicrepo
2•a_drimbe•3d ago

Comments

a_drimbe•3d ago
Hi HN! I kept running into a problem where business rules (pricing, access, flags) were scattered across application code, hard to review in PRs, and even harder to verify.

I built logicrepo as a small experiment to address that. The idea is simple:

Define business rules as YAML

Define tests for those rules as YAML

Run npx logicrepo check in CI — if a rule change breaks expectations, the PR fails

Example rule:

- id: enterprise_discount when: customer_tier: enterprise then: discount_percent: 20

Why YAML instead of code?

Non-engineers can read and review changes

PR diffs show intent clearly (“discount went from 20% → 25%”)

Rules are deterministic and stateless by design

No runtime dependency — this only runs in CI

Use cases I’m targeting: pricing/discounts, access control, feature flags, order validation.

This is intentionally minimal: first-match-wins semantics, no runtime execution, and no DSL beyond basic operators (eq, gt, lt, all, any).

I’m mostly curious:

Does this feel like a reasonable tradeoff vs just writing code?

Where would this break down in real systems?

Full docs include examples for pricing tiers, RBAC, and percentage rollouts.

turtleyacht•2d ago
Moves toward the idea of "compile the company."

YII Framework 3.0 Released

https://yii3.yiiframework.com/
1•SergeAx•39s ago•0 comments

Badness 0 (Apostrophe‛s version) [video]

https://www.youtube.com/watch?v=Y65FRxE7uMc
1•rjmunro•1m ago•0 comments

1% vs. 67%: What happened when we stopped trusting embeddings alone

https://roampal.ai/blog-context-rot.html
1•roampal•3m ago•0 comments

The Privilege and Point of Writing

https://herbertlui.net/the-privilege-and-point-of-writing/
1•herbertl•3m ago•0 comments

01.06.2021

https://www.whitehouse.gov/j6/
2•felixnm•4m ago•0 comments

Run Claude Code in Obsidian

https://github.com/derek-larson14/obsidian-claude-sidebar
1•handfuloflight•5m ago•0 comments

I Built a Multi-Agent AI to Decide Whether to Go OSS. Yes–By a 10.7x Margin

https://paprai.substack.com/p/i-built-a-multi-agent-ai-to-decide
1•amirkabbara•8m ago•0 comments

Prosody 13.0.3 released – An XMPP/Jabber server written in Lua

https://blog.prosody.im/prosody-13.0.3-released/
1•neustradamus•13m ago•0 comments

Show HN: TPU-doc – A zero-dependency diagnostic tool for Google Cloud TPU health

https://github.com/clay-good/tpu-doc
1•hireclay•13m ago•0 comments

Chat of the Future Initiative – XMPP – The universal messaging standard

https://xmpp.org/2026/01/chat-of-the-future-initiative/
2•neustradamus•14m ago•0 comments

European leaders rally behind Greenland in face of renewed US threat

https://www.reuters.com/world/europe/only-greenland-denmark-can-decide-their-future-european-lead...
2•doener•18m ago•0 comments

Measure anything. Invariant geometric persistence modeling system

https://github.com/wwes4/Ouroboros
1•wwes369•22m ago•0 comments

Owning a Domain Increases Digital Self-Reliance

https://chuck.is/self-reliant/
3•birdculture•23m ago•0 comments

Runtime 0.3.0: The Unified Serverless Framework for TypeScript

https://www.runtimeweb.com
1•elegantly•24m ago•1 comments

Cloud: Row in Bavaria over billion-euro Microsoft contract without tender

https://www.heise.de/en/news/Cloud-Row-in-Bavaria-over-billion-euro-Microsoft-contract-without-te...
2•doener•25m ago•0 comments

Trump Floats Cancelling 2026 Elections, Then Insists He Won't

https://time.com/7343696/trump-floats-cancelling-2026-elections/
9•SilverElfin•34m ago•4 comments

Native Graphical Emacs on Android

https://mstempl.netlify.app/post/emacs-on-android/
1•drunkonvinyl•34m ago•0 comments

Is the Fate of the West Being Sealed for Good in Greenland?

https://colliert.substack.com/p/is-the-fate-of-the-west-being-sealed
2•alas44•34m ago•2 comments

MacBook Air M1 vs. Artillery Shell

https://twitter.com/lanevychs/status/2006686167065108961
2•defly•37m ago•0 comments

Microsoft Bob: Microsoft's biggest flop of the 1990s

https://dfarq.homeip.net/microsoft-bob-microsofts-biggest-flop-of-the-1990s/
1•rbanffy•37m ago•0 comments

Reinforcement learning without human annotations

https://twitter.com/DulhanJay/status/1968693170264248532
2•armytricks•40m ago•0 comments

Taste-Levered Orchestrators

https://blog.piogen.eu/notes-on-tech-taste-levered-orchestrators/
1•sherlock_h•42m ago•0 comments

The Intent Layer: Make agents perform like your best engineers

https://www.intent-systems.com/learn/intent-layer
1•MetaMalone•42m ago•1 comments

Magnetic control of lithium enables a safe, explosion-free 'dream battery'

https://techxplore.com/news/2025-12-magnetic-lithium-enables-safe-explosion.html
2•PaulHoule•43m ago•0 comments

Nvidia's new G-Sync Pulsar monitors target motion blur at the human retina level

https://arstechnica.com/gaming/2026/01/nvidias-new-g-sync-pulsar-monitors-target-motion-blur-at-t...
2•smurda•45m ago•0 comments

Lego announces Smart Brick, the 'most significant evolution' in 50 years

https://www.theverge.com/tech/854556/lego-announces-smart-brick-the-most-significant-evolution-in...
5•CGMthrowaway•45m ago•1 comments

America the Rogue State

https://chrishedges.substack.com/p/america-the-rogue-state
9•chmaynard•48m ago•0 comments

Rtsdf: Real-Time Signed Distance Fields for Soft Shadow Approximation in Games

https://arxiv.org/abs/2210.06160
1•klaussilveira•48m ago•0 comments

Coxeter and Dynkin Diagrams

https://arxiv.org/abs/2601.02290
2•bikenaga•48m ago•1 comments

Prepare for IT Certifications with Realistic Practice Exams

https://prepforcerts.org
1•pfcyd•53m ago•0 comments