<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>writeasnet &amp;mdash; Attach to Process</title>
    <link>https://devblog.dinobansigan.com/tag:writeasnet</link>
    <description>Thoughts and Notes on Software Development</description>
    <pubDate>Fri, 16 Oct 2026 01:23:18 +0000</pubDate>
    <image>
      <url>https://i.snap.as/4wmUdb6N.png</url>
      <title>writeasnet &amp;mdash; Attach to Process</title>
      <link>https://devblog.dinobansigan.com/tag:writeasnet</link>
    </image>
    <item>
      <title>DevLog – 005: The Write.as Archive Page Generator Is Back</title>
      <link>https://devblog.dinobansigan.com/devlog-005-the-write-as-archive-page-generator-is-back?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[In my last DevLog, I mentioned that I took down apps.dinobansigan.com, and with it, the Write.as Archive Page Generator. I said I was letting it go. Well, that lasted about two months.&#xA;&#xA;So, I went to update one of my other blogs recently, and realized the archive page on it was way out of date. The tool I used to update it was gone. Turns out I still needed it after all.&#xA;&#xA;Why it can&#39;t just be a website&#xA;&#xA;The old version was a Blazor WASM app. Since it ran in the browser, it couldn&#39;t call the Write.as API directly because of CORS. My workaround was to write my own API for the Blazor app to call, running as an Azure App Service. That API ran on free Azure credits that I&#39;ve since lost access to.&#xA;&#xA;I didn&#39;t want to host something again, since that means paying for it. And I didn&#39;t want to fight CORS again either. So this time around, the answer was an app that runs locally on my own machine. CORS only applies to browsers, so a regular app can call the Write.as API just fine.&#xA;&#xA;Rebuilding it with Claude Code&#xA;&#xA;I rebuilt this one with Claude Code. I treated it like pairing with another developer. Claude wrote most of the code, and I reviewed every change before it went in. Good news was, I still had the source code for both the old Blazor app and the API on my machine, so we had something to work off of. We ended up with a simple .NET console app. You run it with your blog&#39;s alias, and it spits out the HTML for your archive page. Same output as before, same CSS classes, so if you customized the look of your archive page, it should still work.&#xA;&#xA;It still uses my WriteAs.NET library to talk to the Write.as API. But we swapped out CommonMark.NET and HtmlAgilityPack for Markdig, which turns the Markdown of untitled posts into plain text in a single line of code. CommonMark.NET hasn&#39;t been updated in years, so it was time anyway. Going through my old code also turned up a few bugs, like the app crashing on short untitled posts. Oops.&#xA;&#xA;From reading through the old code to having a working app up on GitHub, the whole thing took one afternoon.&#xA;&#xA;Rate limiting&#xA;&#xA;The biggest surprise was that Write.as now heavily rate limits calls to its API. And because of how I wrote WriteAs.NET, a rate limited call just comes back empty instead of throwing an error. So the first test run fetched 20 out of 55 posts, and would have happily given me an incomplete archive page without me knowing.&#xA;&#xA;The fix was to slow things down. The app now waits 10 seconds between each page of posts, retries if it still gets rate limited, and checks the number of posts it got against what the blog says it has. It&#39;s slow, but it gets all of them. Funny enough, that&#39;s an improvement over the old version, which used to time out on blogs with a lot of posts. An API key would probably help with the rate limiting, but I don&#39;t have one set up right now.&#xA;&#xA;There was also a bug in the new version where some emojis in post titles showed up as code instead of the actual emoji. That one got fixed real quick.&#xA;&#xA;It&#39;s on GitHub&#xA;&#xA;Back in 2022, I said I&#39;d share the source code for the WPF version of this tool if there was enough interest. This time around, I&#39;m just putting it out there: writeas-archive-generator. It&#39;s a console app, so no pretty UI, but it does the job. You&#39;ll need the .NET 10 SDK to run it, and the README has all the details.&#xA;&#xA;Eventually, I want to build a Windows desktop app with a UI for it. But for now, this works, and my archive page is up to date again. Thanks for reading, and I&#39;ll catch you in the next DevLog.&#xA;&#xA;Tags: #DevLog #ClaudeCode #DotNet #CSharp #WriteAs #WriteAsNet&#xA;&#xA;!--emailsub--&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/devlog-005-the-write-as-archive-page-generator-is-back&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>In my <a href="https://devblog.dinobansigan.com/devlog-004">last DevLog</a>, I mentioned that I took down apps.dinobansigan.com, and with it, the Write.as Archive Page Generator. I said I was letting it go. Well, that lasted about two months.</p>

<p>So, I went to update one of my other blogs recently, and realized the archive page on it was way out of date. The tool I used to update it was gone. Turns out I still needed it after all.</p>

<h2 id="why-it-can-t-just-be-a-website">Why it can&#39;t just be a website</h2>

<p>The old version was a Blazor WASM app. Since it ran in the browser, it couldn&#39;t call the Write.as API directly because of CORS. My workaround was to write my own API for the Blazor app to call, running as an Azure App Service. That API ran on free Azure credits that I&#39;ve since lost access to.</p>

<p>I didn&#39;t want to host something again, since that means paying for it. And I didn&#39;t want to fight CORS again either. So this time around, the answer was an app that runs locally on my own machine. CORS only applies to browsers, so a regular app can call the Write.as API just fine.</p>

<h2 id="rebuilding-it-with-claude-code">Rebuilding it with Claude Code</h2>

<p>I rebuilt this one with Claude Code. I treated it like pairing with another developer. Claude wrote most of the code, and I reviewed every change before it went in. Good news was, I still had the source code for both the old Blazor app and the API on my machine, so we had something to work off of. We ended up with a simple .NET console app. You run it with your blog&#39;s alias, and it spits out the HTML for your archive page. Same output as before, same CSS classes, so if you customized the look of your archive page, it should still work.</p>

<p>It still uses my <a href="https://github.com/DinoBansigan/WriteAs.NET">WriteAs.NET</a> library to talk to the Write.as API. But we swapped out CommonMark.NET and HtmlAgilityPack for Markdig, which turns the Markdown of untitled posts into plain text in a single line of code. CommonMark.NET hasn&#39;t been updated in years, so it was time anyway. Going through my old code also turned up a few bugs, like the app crashing on short untitled posts. Oops.</p>

<p>From reading through the old code to having a working app up on GitHub, the whole thing took one afternoon.</p>

<h2 id="rate-limiting">Rate limiting</h2>

<p>The biggest surprise was that Write.as now heavily rate limits calls to its API. And because of how I wrote WriteAs.NET, a rate limited call just comes back empty instead of throwing an error. So the first test run fetched 20 out of 55 posts, and would have happily given me an incomplete archive page without me knowing.</p>

<p>The fix was to slow things down. The app now waits 10 seconds between each page of posts, retries if it still gets rate limited, and checks the number of posts it got against what the blog says it has. It&#39;s slow, but it gets all of them. Funny enough, that&#39;s an improvement over the old version, which used to time out on blogs with a lot of posts. An API key would probably help with the rate limiting, but I don&#39;t have one set up right now.</p>

<p>There was also a bug in the new version where some emojis in post titles showed up as code instead of the actual emoji. That one got fixed real quick.</p>

<h2 id="it-s-on-github">It&#39;s on GitHub</h2>

<p>Back in 2022, I said I&#39;d share the source code for the WPF version of this tool if there was enough interest. This time around, I&#39;m just putting it out there: <a href="https://github.com/DinoBansigan/writeas-archive-generator">writeas-archive-generator</a>. It&#39;s a console app, so no pretty UI, but it does the job. You&#39;ll need the .NET 10 SDK to run it, and the README has all the details.</p>

<p>Eventually, I want to build a Windows desktop app with a UI for it. But for now, this works, and my archive page is up to date again. Thanks for reading, and I&#39;ll catch you in the next DevLog.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:DevLog" class="hashtag"><span>#</span><span class="p-category">DevLog</span></a> <a href="https://devblog.dinobansigan.com/tag:ClaudeCode" class="hashtag"><span>#</span><span class="p-category">ClaudeCode</span></a> <a href="https://devblog.dinobansigan.com/tag:DotNet" class="hashtag"><span>#</span><span class="p-category">DotNet</span></a> <a href="https://devblog.dinobansigan.com/tag:CSharp" class="hashtag"><span>#</span><span class="p-category">CSharp</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAs" class="hashtag"><span>#</span><span class="p-category">WriteAs</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAsNet" class="hashtag"><span>#</span><span class="p-category">WriteAsNet</span></a></em></p>



<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/devlog-005-the-write-as-archive-page-generator-is-back">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/devlog-005-the-write-as-archive-page-generator-is-back</guid>
      <pubDate>Wed, 14 Oct 2026 21:30:31 +0000</pubDate>
    </item>
    <item>
      <title>WriteAs.Net 1.2.1</title>
      <link>https://devblog.dinobansigan.com/writeas-net-1-2-1?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Version 1.2.1 of WriteAs.Net has been released. &#xA;&#xA;This very minor update adds an interface for the WriteAsClient class, which opens it up for use with dependency injection in ASP.NET Core. This allows you to create a single WriteAsClient instance and re-use it when needed, making the caching additions from Version 1.2.0 much more useful.&#xA;&#xA;This also frees me up to make better use of it in the API I&#39;m working on.&#xA;&#xA;You can install it via nuget:&#xA;Install-Package WriteAs.NET -Version 1.2.1&#xA;&#xA;Or via the .NET Core command line interface:&#xA;dotnet add package WriteAs.NET --version 1.2.1&#xA;&#xA;If you find any bugs or issues with it, please let me know. Thanks and y&#39;all have a good night.&#xA;&#xA;Tags: #DotNet #WriteAs #WriteAsNet&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/writeas-net-1-2-1&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>Version 1.2.1 of <a href="https://github.com/DinoBansigan/WriteAs.NET">WriteAs.Net</a> has been released.</p>

<p>This very minor update adds an interface for the <code>WriteAsClient</code> class, which opens it up for use with dependency injection in ASP.NET Core. This allows you to create a single <code>WriteAsClient</code> instance and re-use it when needed, making the caching additions from <a href="https://write.as/attach-to-process/writeas-net-1-2-0">Version 1.2.0</a> much more useful.</p>

<p><em>This also frees me up to make better use of it in the <a href="https://write.as/attach-to-process/devlog-001">API</a> I&#39;m working on.</em></p>

<p>You can install it via nuget:
<code>Install-Package WriteAs.NET -Version 1.2.1</code></p>

<p>Or via the .NET Core command line interface:
<code>dotnet add package WriteAs.NET --version 1.2.1</code></p>

<p>If you find any bugs or issues with it, <a href="https://write.as/attach-to-process/contact">please let me know</a>. Thanks and y&#39;all have a good night.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:DotNet" class="hashtag"><span>#</span><span class="p-category">DotNet</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAs" class="hashtag"><span>#</span><span class="p-category">WriteAs</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAsNet" class="hashtag"><span>#</span><span class="p-category">WriteAsNet</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/writeas-net-1-2-1">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/writeas-net-1-2-1</guid>
      <pubDate>Wed, 01 Feb 2023 05:30:17 +0000</pubDate>
    </item>
    <item>
      <title>WriteAs.Net 1.2.0</title>
      <link>https://devblog.dinobansigan.com/writeas-net-1-2-0?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Version 1.2.0 of WriteAs.Net has been released. &#xA;&#xA;This latest version now allows you to enter an API key when initializing a WriteAsClient instance. This API key will allow you to bypass the rate limiting checks on the Write.as API.&#xA;&#xA;Some basic in-memory caching has also been added to the client. You can configure some of the cache settings when initializing a WriteAsClient instance. The new settings are described below:&#xA;&#xA;cacheExpirationInSeconds determines how long data will stay in the cache before it expires. The default value for this setting is 300 seconds.&#xA;cacheSize determines how many objects it can store in the cache. Note that a collection of posts (ListPost) and a single post each count as 1 item. The default value for this setting is 4.&#xA;&#xA;You can install it via nuget:&#xA;Install-Package WriteAs.NET -Version 1.2.0&#xA;&#xA;Or via the .NET Core command line interface:&#xA;dotnet add package WriteAs.NET --version 1.2.0&#xA;&#xA;If you find any bugs or issues with it, please let me know. Thanks and y&#39;all have a good weekend.&#xA;&#xA;Tags: #DotNet #WriteAs #WriteAsNet&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/writeas-net-1-2-0&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>Version 1.2.0 of <a href="https://github.com/DinoBansigan/WriteAs.NET">WriteAs.Net</a> has been released.</p>

<p>This latest version now allows you to enter an API key when initializing a <code>WriteAsClient</code> instance. This API key will allow you to bypass the rate limiting checks on the Write.as API.</p>

<p>Some basic in-memory caching has also been added to the client. You can configure some of the cache settings when initializing a <code>WriteAsClient</code> instance. The new settings are described below:</p>
<ul><li><code>cacheExpirationInSeconds</code> determines how long data will stay in the cache before it expires. The default value for this setting is 300 seconds.</li>
<li><code>cacheSize</code> determines how many objects it can store in the cache. Note that a collection of posts (<code>List&lt;Post&gt;</code>) and a single post each count as 1 item. The default value for this setting is 4.</li></ul>

<p>You can install it via nuget:
<code>Install-Package WriteAs.NET -Version 1.2.0</code></p>

<p>Or via the .NET Core command line interface:
<code>dotnet add package WriteAs.NET --version 1.2.0</code></p>

<p>If you find any bugs or issues with it, <a href="https://write.as/attach-to-process/contact">please let me know</a>. Thanks and y&#39;all have a good weekend.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:DotNet" class="hashtag"><span>#</span><span class="p-category">DotNet</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAs" class="hashtag"><span>#</span><span class="p-category">WriteAs</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAsNet" class="hashtag"><span>#</span><span class="p-category">WriteAsNet</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/writeas-net-1-2-0">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/writeas-net-1-2-0</guid>
      <pubDate>Sun, 29 Aug 2021 00:01:31 +0000</pubDate>
    </item>
    <item>
      <title>Working on Update to WriteAs.Net</title>
      <link>https://devblog.dinobansigan.com/working-on-update-to-writeas-net?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[I&#39;m working on an update to the WriteAs.Net client/wrapper library. In a previous post I talked about adding caching to it before I release a new version. I ran into some road-blocks that derailed me. I ended up pushing it off to the side to focus my time somewhere else.&#xA;&#xA;The two issues that I ran into were: figuring out what the cache key was going to be for the cached object and removing the oldest object in the cache. I now have solutions for those issues. &#xA;&#xA;For the cache keys, I figured I could use the method name plus the parameter values. &#xA;&#xA;For clearing out the oldest cached object, I decided to make use of a generic Queue collection that could accept the cache key values. Then I could just pop-off the oldest value from the Queue and use that to remove the associated object in the cache.&#xA;&#xA;And so anyway, I should have the updated version of the client/wrapper library out soon. I just need to do some more testing on it.&#xA;&#xA;Tags: #DotNet #WriteAs #WriteAsNet&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/working-on-update-to-writeas-net&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>I&#39;m working on an update to the <a href="https://github.com/DinoBansigan/WriteAs.NET">WriteAs.Net</a> client/wrapper library. In a <a href="https://devblog.dinobansigan.com/writeas-net-update">previous post</a> I talked about adding caching to it before I release a new version. I ran into some road-blocks that derailed me. I ended up pushing it off to the side to focus my time somewhere else.</p>

<p>The two issues that I ran into were: figuring out what the cache key was going to be for the cached object and removing the oldest object in the cache. I now have solutions for those issues.</p>

<p>For the cache keys, I figured I could use the method name plus the parameter values.</p>

<p>For clearing out the oldest cached object, I decided to make use of a generic <a href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1?view=net-5.0">Queue</a> collection that could accept the cache key values. Then I could just pop-off the oldest value from the Queue and use that to remove the associated object in the cache.</p>

<p>And so anyway, I should have the updated version of the client/wrapper library out soon. I just need to do some more testing on it.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:DotNet" class="hashtag"><span>#</span><span class="p-category">DotNet</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAs" class="hashtag"><span>#</span><span class="p-category">WriteAs</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAsNet" class="hashtag"><span>#</span><span class="p-category">WriteAsNet</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/working-on-update-to-writeas-net">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/working-on-update-to-writeas-net</guid>
      <pubDate>Wed, 11 Aug 2021 02:19:11 +0000</pubDate>
    </item>
    <item>
      <title>WriteAs.Net Update</title>
      <link>https://devblog.dinobansigan.com/writeas-net-update?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Due to the rate-limiting feature that the Write.as team introduced into their API, a number of my Blazor WASM apps, like the WriteFreely Archive Page Generator I created, have stopped working. All of the Write.as related Blazor WASM apps I created, use the WriteAs.Net client/wrapper library that I wrote. And it is actually this client/wrapper library that is running into the rate-limiting problem.&#xA;&#xA;But, as Matt mentioned here, a solution is in place through the use of Application keys. &#xA;&#xA;I&#39;ve already updated the WriteAs.Net client to make use of Application keys. But before I release the latest version, I also want to give it some caching abilities. That&#39;s what I&#39;m working on and testing right now in my spare time. Once that&#39;s done, I&#39;ll publish the latest version of the WriteAs.Net client to Nuget.&#xA;&#xA;After that, I plan to get the WriteFreely Archive Page Generator working once again. Then I&#39;ll work on getting the Search app for my journal working as well.&#xA;&#xA;Tags: #Blazor #WriteAs #WriteAsNet&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/writeas-net-update&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>Due to the rate-limiting feature that the Write.as team introduced into their API, a number of my Blazor WASM apps, like the <a href="https://wf-archive.dinobansigan.com/">WriteFreely Archive Page Generator</a> I created, have stopped working. All of the Write.as related Blazor WASM apps I created, use the <a href="https://github.com/DinoBansigan/WriteAs.NET">WriteAs.Net</a> client/wrapper library that I wrote. And it is actually this client/wrapper library that is running into the rate-limiting problem.</p>

<p>But, as <a href="https://discuss.write.as/t/my-embedded-blazor-apps-have-stopped-working/2667/8">Matt mentioned here</a>, a solution is in place through the use of Application keys.</p>

<p>I&#39;ve already updated the WriteAs.Net client to make use of Application keys. But before I release the latest version, I also want to give it some caching abilities. That&#39;s what I&#39;m working on and testing right now in my spare time. Once that&#39;s done, I&#39;ll publish the latest version of the WriteAs.Net client to Nuget.</p>

<p>After that, I plan to get the WriteFreely Archive Page Generator working once again. Then I&#39;ll work on getting the <a href="https://searchjournal.dinobansigan.com/">Search app</a> for my journal working as well.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:Blazor" class="hashtag"><span>#</span><span class="p-category">Blazor</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAs" class="hashtag"><span>#</span><span class="p-category">WriteAs</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAsNet" class="hashtag"><span>#</span><span class="p-category">WriteAsNet</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/writeas-net-update">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/writeas-net-update</guid>
      <pubDate>Wed, 19 May 2021 05:01:12 +0000</pubDate>
    </item>
  </channel>
</rss>