<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bravi</title>
    <description>The latest articles on DEV Community by Bravi (@bravilogy).</description>
    <link>https://dev.to/bravilogy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3937742%2F0bd65bd4-03d5-4e6b-9b9d-25a7af8c0e0d.jpg</url>
      <title>DEV Community: Bravi</title>
      <link>https://dev.to/bravilogy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bravilogy"/>
    <language>en</language>
    <item>
      <title>I kept rebuilding the same config panel for my bots, so I built one tool for all of them</title>
      <dc:creator>Bravi</dc:creator>
      <pubDate>Thu, 11 Jun 2026 20:28:55 +0000</pubDate>
      <link>https://dev.to/bravilogy/i-kept-rebuilding-the-same-config-panel-for-my-bots-so-i-built-one-tool-for-all-of-them-bnp</link>
      <guid>https://dev.to/bravilogy/i-kept-rebuilding-the-same-config-panel-for-my-bots-so-i-built-one-tool-for-all-of-them-bnp</guid>
      <description>&lt;h2&gt;
  
  
  Hello world.
&lt;/h2&gt;

&lt;p&gt;I love automating things. And if you do too, you probably know how this goes: a Telegram bot here, a price watcher there, a scraper on a Raspberry Pi that sits on a shelf blinking its LED, a handful of cron jobs on a cheap VPS. Dozens of small things quietly doing useful work in the background while you get on with your day.&lt;/p&gt;

&lt;p&gt;Here's the thing though - almost every one of them eventually wants tweaking &lt;strong&gt;while it's running&lt;/strong&gt;. A threshold. A toggle. A retry count. Some tiny number you should be able to change in a second, ideally from your phone, on the sofa, whilst watching that intense episode of [insert your favourite TV show here], without opening a terminal.&lt;/p&gt;

&lt;p&gt;How it actually goes: you edit a hardcoded value or a &lt;code&gt;.env&lt;/code&gt;, push, redeploy, wait for the pipeline to succeed. For a one-character change.&lt;/p&gt;

&lt;p&gt;I did that. A lot. And then I built a little control panel for that price watcher. A few inputs, a save button, an endpoint the script could read from.&lt;/p&gt;

&lt;p&gt;Then I built a second one for another project. Then a third. Somewhere around the third hand-rolled dashboard doing the same job slightly differently, I admitted this was a pattern and built the thing I actually wanted: one place to manage config for all of my running things.&lt;/p&gt;

&lt;p&gt;That's &lt;a href="https://confi.sh" rel="noopener noreferrer"&gt;confish&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shape it
&lt;/h2&gt;

&lt;p&gt;You define a typed schema once per application - whatever fields your thing needs, each with a type (string, number, boolean, date, array). Then you spin up as many environments as you like: staging, prod, one per client, one per Raspberry Pi. Same fields, different values. Your code hits one endpoint and gets typed config back.&lt;/p&gt;

&lt;p&gt;Here's a script reading its config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;confish&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Confish&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Confish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;a1b2c3d4e5f6&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;confish_sk_...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And what comes back is already cast to the types you defined - numbers as numbers, booleans as booleans, and so on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"site_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"My Application"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"max_upload_mb"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"maintenance_mode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"allowed_origins"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"https://example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://app.example.com"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change &lt;code&gt;max_upload_mb&lt;/code&gt; in the dashboard and the next fetch sees &lt;code&gt;50&lt;/code&gt;. No redeploy, no rebuild. Suddenly your scraper's politeness delay, your bot's cooldown, your job's batch size - they're all just values you can nudge from anywhere, including that sofa.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grow it
&lt;/h2&gt;

&lt;p&gt;The schema-and-fetch core was the plan. Everything else got added because my own scripts kept asking for it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logs.&lt;/strong&gt; My scripts were already talking to confish, so I wanted them to tell me how they were doing without me SSHing in to tail a file. Now the 3am cron job can simply report in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Scrape finished&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;pages&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;new_items&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Entries land in the dashboard, per environment, with levels and context - so when something looks off, the first clue is one tab away instead of one SSH session away.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Webhooks.&lt;/strong&gt; When config changes, confish can POST to a URL you set per environment, so a service can react instead of polling. The payload includes a &lt;code&gt;changes&lt;/code&gt; array of exactly which fields moved, deliveries retry with exponential backoff on &lt;code&gt;5xx&lt;/code&gt;, and every SDK ships a one-liner signature verifier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Command it
&lt;/h2&gt;

&lt;p&gt;I saved my favourite part for last.&lt;/p&gt;

&lt;p&gt;Sometimes I don't want to change a value - I want a running thing to &lt;strong&gt;do something&lt;/strong&gt;. Flush a cache. Rebuild an index. Restart a worker. The usual answer is to expose an endpoint on the app, secure it, open it to the internet, and then quietly worry about it forever. For a personal scraper sitting behind NAT on a home server, that's a lot of ceremony - port forwarding, a reverse proxy, maybe a tunnel, maybe that "temporary" ngrok URL you forget about - all so you can say "please flush your cache."&lt;/p&gt;

&lt;p&gt;Actions flip the direction. Your app never listens for anything. It &lt;strong&gt;polls&lt;/strong&gt;. You dispatch a command from the dashboard, it sits in a queue on the environment, and your app picks it up on its next poll - acknowledges it, runs your handler, reports progress, and marks it done or failed. Nothing inbound. No open port, no public URL, no ingress rules. Works the same on a VPS, a Pi, or your old laptop in a drawer.&lt;/p&gt;

&lt;p&gt;The raw flow is just a handful of REST calls (poll, ack, update, complete/fail), but each SDK wraps it in a &lt;code&gt;consume()&lt;/code&gt; loop with adaptive backoff when idle:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;flush-cache&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Clearing cache&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;keys&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1402&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cleared&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1402&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;took_ms&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;84&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;actions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;consume&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So from my phone I can hit "flush-cache" on a box that has no inbound access at all, and watch the result come back in the timeline a second later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wire it
&lt;/h2&gt;

&lt;p&gt;There are official SDKs for Go, JavaScript, Python, PHP, and Rust (&lt;a href="https://github.com/confishhq" rel="noopener noreferrer"&gt;github.com/confishhq&lt;/a&gt;) - each wraps the same REST API, so if your language isn't on the list, plain HTTP works fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;If you've got bots, scrapers, or cron jobs that deserve better than a redeploy per tweak, give it a spin at &lt;a href="https://confi.sh" rel="noopener noreferrer"&gt;confi.sh&lt;/a&gt; - I'd genuinely love to hear what you end up wiring it to. And if you've solved this differently, or you look at the Actions model and think "hmm, not convinced" - tell me in the comments. Half the features above exist because someone (usually me) complained about something, and my scripts and bots haven't stopped asking for more - so watch this space.&lt;/p&gt;

&lt;p&gt;Thanks for reading.&lt;/p&gt;

&lt;p&gt;P.S. I just shipped dark mode - so when that 3am cron job has something to say, checking on it won't flashbang you.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>automation</category>
      <category>api</category>
      <category>devto</category>
    </item>
  </channel>
</rss>
