frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Legal–Markdown-JS, Git-friendly legal docs with Markdown and helpers

https://github.com/petalo/legal-markdown-js
10•dmarinoc•21h ago
Hi HN! I'm sharing legal-markdown-js, a TypeScript port of an abandoned 2011 Ruby gem that solves a surprisingly complex problem: writing legal documents that don't break when you edit them.

The Problem: Legal documents have intricate numbering schemes (1.1.1, (a)(i), etc.) and cross-references. Change one section and you might need to renumber 50+ references manually. Plus there's tons of repetitive boilerplate clauses scattered across documents. Lawyers often avoid restructuring documents because it's too error-prone.

The Solution: Write contracts in Markdown with tons of helper functions: auto-numbering, variables, conditional blocks, cross-references, and imports.

Example

    ---
    party1: "ACME Corp"
    party2: "{{client_name}}"
    jurisdiction: "California"
    ---

    # Software License Agreement

    l. This Agreement is between {{party1}} and {{party2}}.
    l. License Grant
    ll. Restrictions
    lll. No reverse engineering
    lll. See section @[License Grant] for details

    {{#if enterprise}}
    l. Enterprise Features
    ll. Priority support included
    {{/if}}

    @import "clauses/standard_termination.md"
The l. markers become proper legal numbering, variables expand ({{client_name}}), conditional blocks show/hide content ({{#if enterprise}}), cross-references update automatically (@[License Grant]), and imports (@import) let you reuse boilerplate clauses.

Why I Built This

I stopped programming to build startups, became a corporate PM, and now I'm starting a fund. I wanted control over the legal documents we share with LPs and portfolio companies – tired of paying lawyers for simple template changes, but most importantly frustrated with losing version history in Word docs.

Scratching this itch became my late-night learning vehicle for modern development practices. What started as "I'll just port this Ruby gem" turned into a deep dive into TypeScript, testing frameworks, and the entire modern JS ecosystem.

Technical Details

- Full TypeScript with strict typing - Extensive test coverage - ESM-first with CommonJS fallback - Remark/Unified integration for extensibility - CLI + programmatic API - Full processing pipeline with multiple format outputs including PDF with highlights

The original Ruby gem was solid but abandoned. The JavaScript ecosystem deserved a maintained version, especially with legal tech growing rapidly.

Who This Helps

- Humans and legal professionals tired of Word's auto-numbering disasters - Legal tech companies building document automation - Anyone generating contracts programmatically - Developers who need to template complex documents

GitHub: https://github.com/petalo/legal-markdown-js/

Playground: https://petalo.github.io/legal-markdown-js/

Original Ruby Project: https://github.com/compleatang/legal-markdown

Our first outage from LLM-written code

https://sketch.dev/blog/our-first-outage-from-llm-written-code
1•ygritte•28s ago•0 comments

Utah wildfires creating "fire clouds" that can form their own weather systems

https://www.cbsnews.com/news/grand-canyon-utah-wildfires-creating-fire-clouds-that-can-form-their-own-weather-systems/
1•geox•43s ago•0 comments

I got scammed Read to learn

1•Ray_Casey•2m ago•0 comments

Show HN: I built a worldwide news app, because Apple doesn't want to

https://apps.apple.com/us/app/breaking-news-newsreadeck/id1593025917
1•bubudrc•2m ago•0 comments

Unfortunately We Are Not Living in a "Simulation"

https://www.currentaffairs.org/news/2022/02/unfortunately-we-are-not-living-in-a-simulation
1•Gooblebrai•4m ago•0 comments

Coeffects: Context-Aware Programming Languages

https://tomasp.net/coeffects/
1•dustingetz•5m ago•0 comments

Small Models, Big Wins: Agentic AI in Enterprise Explained

https://blog.premai.io/small-models-big-wins-agentic-ai-in-enterprise-explained/
2•prem_studio•6m ago•0 comments

Launch HN: Societies.io (YC W25) – AI simulations of your target audience

2•p-sharpe•7m ago•0 comments

The Untold Impact of Cancellation

https://pretty.direct/impact
2•cbeach•8m ago•2 comments

Build Privacy Tools, Go to Prison, Samourai Developers Change Pleas

https://www.sambent.com/build-privacy-tools-go-to-prison-samourai-developers-change-pleas/
1•cranberryturkey•8m ago•1 comments

Google rolls out Gemini Deep Think model that tests multiple ideas in parallel

https://techcrunch.com/2025/08/01/google-rolls-out-gemini-deep-think-ai-a-reasoning-model-that-tests-multiple-ideas-in-parallel/
2•thm•21m ago•0 comments

Google Agentspace is GA now

https://cloud.google.com/agentspace/docs/release-notes
1•Cockbrand•22m ago•0 comments

Navy demonstrates multi-day solar UAS flight

https://www.navair.navy.mil/news/Navy-demonstrates-multi-day-solar-UAS-flight/Tue-07292025-1554
2•bookofjoe•22m ago•0 comments

How did Facebook intercept competitor's encrypted mobile app traffic? (2014)

https://haxrob.net/onavo-facebook-ssl-mitm-technical-analysis/
2•taubek•26m ago•3 comments

Platformize It Building a Unified and Extensible Platform Framework [video]

https://www.youtube.com/watch?v=7sx7oV25zYc
1•kvaps•27m ago•1 comments

Detecting Virtual Thread Pinning in Java

https://blog.blockingqueue.com/detecting-virtual-thread-pinning-in-java
1•liviu31•29m ago•0 comments

AI Act: Today, the European Commission Approved the GPAI Code of Practice

https://www.nicfab.eu/en/posts/ai-act-eucom-approves-code-of-practice/
1•nicfab•31m ago•1 comments

Show HN: CodeSwissKnife Bar – Dev tools in your macOS menu bar (offline)

https://codeswissknife.com/codeswissknifebar.html
1•8mobile•31m ago•0 comments

Caught in the Game: On the History and Evolution of Web Browser Gaming

https://ar5iv.labs.arxiv.org/html/2304.14791
2•jicea•31m ago•0 comments

Show HN: Compress Image – Simple Lossless and Lossy Image Compression Tool

https://www.compressimagex.com/en
1•devxiyang•35m ago•0 comments

Full-body scans of 100k people could change medicine

https://www.theguardian.com/science/2025/jul/15/full-body-scans-uk-biobank-project-diseases-detected-and-treated
3•PaulHoule•37m ago•0 comments

JSON is not a subset of YAML

https://john-millikin.com/json-is-not-a-yaml-subset
2•fanf2•38m ago•0 comments

Belgium Bans Internet Archive's 'Open Library' in Site Blocking Order

https://torrentfreak.com/belgium-bans-internet-archives-open-library-in-sweeping-site-blocking-order/
4•gslin•39m ago•1 comments

Show HN: Square Images – Make Any Image a Perfect Square in One Click

https://www.squareimages.co/en
1•devxiyang•39m ago•1 comments

Terence Tao's NSF grants suspended

https://bsky.app/profile/dangaristo.bsky.social/post/3lvc7ldavhk2o
74•xqcgrek2•41m ago•22 comments

Evolution – Mental Model: AI-Voiding Extinction

https://read.perspectiveship.com/p/evolution
4•dmp0x7c5•44m ago•1 comments

Ask HN: Is there a way to see HN without all the posts about AI?

2•dotcoma•45m ago•2 comments

Ask HN: Startups, 0 Stability – Is It Time to Move on from Tech?

4•OulaX•47m ago•1 comments

SpaceX's Cellular Starlink Expands to Support IoT Devices

https://me.pcmag.com/en/networking/31452/spacexs-cellular-starlink-expands-to-support-iot-devices
1•teleforce•47m ago•0 comments

We Asked 100 AI Models to Write Code

https://www.veracode.com/blog/genai-code-security-report/
2•ygritte•47m ago•1 comments