frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Stop Rebuilding Front End Apps for Environment Variables (REP RFC)

1•olamide226•2h ago
In containerised Frontends, Every environment requires rebuilding the same application just to change configuration like API URLs, feature flags, or auth endpoints.

Backend systems solved this problem long ago with runtime configuration. You build once and configure the application when it starts.

Static webapps never got a clean equivalent.

Most solutions today are ad-hoc: - env.sh scripts that rewrite bundles - CI pipelines rebuilding per environment - templating HTML files - framework-specific hacks

These approaches are fragile and tied to specific build tools.

I’ve been working on a small protocol called REP (Runtime Environment Protocol) that tries to solve this in a portable way.

The idea is simple: 1. Infrastructure provides configuration as environment variables. 2. A gateway injects them into the HTML response as a JSON payload. 3. The frontend reads them at runtime through a small SDK. 4. The payload is integrity-verified to prevent tampering.

example injected payload: <script id="__rep__" type="application/json"> { "public": { "API_URL": "https://api.example.com" }, "_meta": { "integrity": "sha256-..." } } </script>

The frontend can then read configuration at runtime instead of at build time.

This enables: • build once, deploy anywhere • environment configuration via infrastructure • compatibility with static hosting and CDNs • no rebuilds when configuration changes

The spec focuses on three things: • a standard payload format • secure integrity verification • predictable injection semantics

I’m sharing it mostly to get feedback from people who deal with deploying frontend apps at scale.

Spec: https://github.com/RuachTech/rep/blob/main/spec/REP-RFC-0001.md

URL: https://rep-protocol.dev

Curious if others have run into the same pain or solved this differently.

Comments

verdverm•1h ago
> Every environment requires rebuilding the same application just to change configuration like API URLs, feature flags, or auth endpoints.

This is not normal. I have never worked anywhere, or on any project, where this was the case. (1) is already how we do things without the other points, which are not needed.

olamide226•1h ago
This is in context of Containerised Frontends. curious to know how you've handled this as this a huge problem in containerised frontend builds.
verdverm•46m ago
All of my services are containerized including their builds. It's not a "huge" problem, it's simple to deal with, including frontend builds. I suggest reading the documentation or asking an Ai how people in industry deal with this.

Show HN: I built a language app that generates songs from your vocab list

https://www.lingotify.app/
1•gursu8•49s ago•0 comments

A zero-dependency multi-agent AI engine that negotiates instead of agreeing

https://github.com/ProjectPortmanteau/Execution
1•illportstudios•3m ago•0 comments

Father claims Google's AI product fuelled son's delusional spiral

https://www.bbc.com/news/articles/czx44p99457o
2•tartoran•4m ago•0 comments

The origin of our fascination with crystals

https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2026.1633599/full
1•michaefe•5m ago•0 comments

Treetops Emit Ultraviolet Sparkles During Thunderstorms

https://www.smithsonianmag.com/smart-news/treetops-emit-ultraviolet-sparkles-during-thunderstorms...
1•thunderbong•6m ago•0 comments

Show HN: MomentSurfer – AI Scrolling Agent for Social Media

https://www.momentsurfer.com/
1•priyankaajsr•6m ago•0 comments

Don't Let Crypto Kill the Economy

https://bettermarkets.org/analysis/dont-let-crypto-kill-the-economy/
1•petethomas•7m ago•0 comments

Show HN: SmartAgentKit – policy-governed smart wallets for AI agents

2•martinbf•8m ago•0 comments

Show HN: Karellen-rr-MCP – MCP server that gives LLMs rr reverse debugging

https://github.com/karellen/karellen-rr-mcp
1•arcivanov•10m ago•1 comments

Israel Spent Years Hacking Tehran Traffic Cameras to Track Khamenei

https://thedefensepost.com/2026/03/04/israel-traffic-cameras-track-khamenei/
2•gambutin•11m ago•1 comments

Genome modelling and design across all domains of life with Evo 2

https://www.nature.com/articles/s41586-026-10176-5
1•kkoncevicius•11m ago•0 comments

Google ends its 30 percent app store fee and welcomes third-party app stores

https://www.engadget.com/apps/google-ends-its-30-percent-app-store-fee-and-welcomes-third-party-a...
3•_____k•11m ago•1 comments

Google Chrome moving to a two-week Release Cycle, to begin on 8 September

https://developer.chrome.com/blog/chrome-two-week-release
1•gr4vityWall•12m ago•0 comments

Ask HN: How will agents change our theories of labor?

1•char_string•12m ago•0 comments

Blogosphere – a directory of independent blogs and personal websites

https://blogosphere.app/
2•Curiositry•13m ago•1 comments

Show HN: A browser based sequencer for rapid music prototyping

https://music.grinningfrog.com
1•sesquieu•17m ago•0 comments

Helpme: Minimal tmux wrapper for context-aware agent debugging

https://github.com/cameronfyfe/helpme
2•ramoz•18m ago•0 comments

A Dual-LLM Policy for Reducing Noise in Agentic Program Repair

https://arxiv.org/abs/2510.03217
1•azhenley•18m ago•0 comments

Show HN: WooTTY - browser terminal in a single Go binary

https://github.com/icoretech/wootty
2•masterkain•20m ago•0 comments

Show HN: I built a CLI to sync AI agent skills and MCPs across coding agents

https://github.com/ryanreh99/skills-sync
1•ryanreh99•21m ago•0 comments

Two Claude Code skills for founders – debriefs and ADHD-aware interactio

https://github.com/assafkip/founder-skills
2•Assafkip•22m ago•0 comments

A Wordle for the Worldle

https://omarkamali.com/blog/worldle-for-the-world-wikilangs-launch
1•omneity•22m ago•0 comments

macOS Apps That Changed How I Work

https://medium.com/@gustav_82/10-macos-apps-that-changed-how-i-work-1ce209fb77b3
1•Glubker•23m ago•0 comments

Show HN: SmartAgentKit – policy-governed smart wallets for AI agents

https://smartagentkit.xyz
1•mbonfoster•24m ago•1 comments

Show HN: Refinance calculator that shows the real net worth impact

https://abelscalculators.com/
1•brentdrns•24m ago•0 comments

Show HN: Kryfto – Self-hosted MCP server with 42 tools for AI agent web access

https://github.com/ExceptionRegret/Kryfto
1•machinelinux•25m ago•1 comments

Gram: Zed, but with AI and chat features removed

https://www.theregister.com/2026/03/04/gram_cut_down_zed/
1•Chris2048•26m ago•0 comments

Show HN: Lexio – AI-Native PDF Reader (Ollama, Claude, OpenAI, Gemini)

https://github.com/nikodemseb/lexio
1•nikodemseb•27m ago•0 comments

Show HN: DSCO agentic CLI with multi-turn tool use and swarms

https://github.com/arthurcolle/dsco
1•arthurcolle•28m ago•0 comments

The Second 80%

https://www.braingrid.ai/blog/the-second-80-percent
1•acossta•30m ago•1 comments