<?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: Emil Sjöstedt</title>
    <description>The latest articles on DEV Community by Emil Sjöstedt (@kadmium).</description>
    <link>https://dev.to/kadmium</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4111670%2F6993dbd8-09cd-4a22-884f-87e5ac1b9aea.png</url>
      <title>DEV Community: Emil Sjöstedt</title>
      <link>https://dev.to/kadmium</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kadmium"/>
    <language>en</language>
    <item>
      <title>Why I built an offline C# tool to turn entire codebases into Obsidian notes and sharable docs</title>
      <dc:creator>Emil Sjöstedt</dc:creator>
      <pubDate>Sat, 05 Sep 2026 22:19:57 +0000</pubDate>
      <link>https://dev.to/kadmium/why-i-built-an-offline-c-tool-to-turn-entire-codebases-into-obsidian-notes-and-sharable-docs-24eh</link>
      <guid>https://dev.to/kadmium/why-i-built-an-offline-c-tool-to-turn-entire-codebases-into-obsidian-notes-and-sharable-docs-24eh</guid>
      <description>&lt;p&gt;Whenever I finish a sprint, build an architectural spike, or need to hand over reference code to another engineer, I hit the exact same wall: how do I share or archive 15 related files across 4 directories without losing structure?&lt;/p&gt;

&lt;p&gt;Zipping archives is clumsy, manually creating documentation takes forever, and copy-pasting code snippets into note apps usually breaks path hierarchy.&lt;/p&gt;

&lt;p&gt;To fix this for my own projects, I built &lt;strong&gt;Context Packer&lt;/strong&gt; — a lightweight, 100% offline desktop tool that aggregates multiple source files into structured, readable Markdown for Obsidian vaults and technical reference sheets.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Problem with Documenting &amp;amp; Sharing Codebases
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Lost File Hierarchy:&lt;/strong&gt; Sending a colleague five separate &lt;code&gt;.cs&lt;/code&gt; or &lt;code&gt;.cpp&lt;/code&gt; snippets strips away where they live relative to each other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accidental Workstation Leaks:&lt;/strong&gt; Manually copy-pasting paths often leaks private workstation directories (&lt;code&gt;C:\Users\&amp;lt;my_user_name&amp;gt;\...&lt;/code&gt;) into shared team notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Double Maintenance:&lt;/strong&gt; Taking snippets into note apps usually requires tedious manual formatting and re-indexing.&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Built for Note-Taking, Reference Docs &amp;amp; Prototyping
&lt;/h3&gt;

&lt;p&gt;Context Packer lets you drag and drop files, directories, or entire solutions straight into a staging area and exports them into clean Markdown:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Obsidian-Native Vaults:&lt;/strong&gt; Formats code sections with double-bracket wiki links (&lt;code&gt;[[#File:...]]&lt;/code&gt;) so your code snippets instantly hook into Obsidian’s graph view and backlinks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team Handover &amp;amp; Archive:&lt;/strong&gt; Generates clean, monolithic reference files with an ASCII directory tree at the top, making it easy to send a complete, readable architectural breakdown in a single text file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM Brainstorming (Bonus Use Case):&lt;/strong&gt; Because the output is structured Markdown, it doubles as the ideal prompt bundle when you need to brainstorm architecture, prototype an idea, or draft initial documentation using Claude or ChatGPT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workstation Privacy Sanitization:&lt;/strong&gt; Automatically masks your local Windows usernames to &lt;code&gt;[REDACTED]&lt;/code&gt; in filepaths and headers before exporting, keeping your environment confidential.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Architecture &amp;amp; Native Performance
&lt;/h3&gt;

&lt;p&gt;I didn't want a heavy web wrapper running in the background while coding. The architecture is native C#:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Packer.Core (.NET 8 / .NET Standard 2.0):&lt;/strong&gt; Recursive scanning, intelligent extension filtering (including presets for Unreal Engine, Visual Studio, C++, C#, and configs), and automatic chunking for payloads over 3 million characters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Telemetry &amp;amp; 100% Offline:&lt;/strong&gt; The binary makes zero network calls. Your proprietary code stays strictly on your local disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two Native Frontends:&lt;/strong&gt; A standalone &lt;strong&gt;WinUI 3&lt;/strong&gt; desktop application for drag-and-drop from Windows File Explorer, and a &lt;strong&gt;Visual Studio 2022 extension&lt;/strong&gt; docked directly beside Solution Explorer.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Try it out &amp;amp; What's Next
&lt;/h3&gt;

&lt;p&gt;The precompiled binaries (WinUI App, VS Extension, and Headless DLL) are 100% free for both personal and commercial projects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Browser Demo &amp;amp; Docs:&lt;/strong&gt; &lt;a href="https://www.kadmium.dev/dev-tech/context-packer" rel="noopener noreferrer"&gt;kadmium.dev/dev-tech/context-packer&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-compiled Binaries ($0):&lt;/strong&gt; &lt;a href="https://kadmium.gumroad.com" rel="noopener noreferrer"&gt;kadmium.gumroad.com&lt;/a&gt;
&lt;em&gt;(Complete C# source code licenses are also available on Gumroad if you want to inspect or modify the scanner).&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next on the development roadmap is &lt;strong&gt;Extended Obsidian Templates&lt;/strong&gt; (native callouts like &lt;code&gt;[!note]&lt;/code&gt;, &lt;code&gt;[!warning]&lt;/code&gt;, and YAML metadata frontmatter) and a &lt;strong&gt;Custom Secret Shield&lt;/strong&gt; to catch accidental API keys.&lt;/p&gt;

&lt;p&gt;If you maintain reference notes or tech wikis for your code, I’d love to hear what formatting templates you find most useful!&lt;/p&gt;




&lt;p&gt;&lt;em&gt;AI Disclosure: The underlying codebase, architecture, and logic are 100% handcrafted and tested in C# by Kadmium. Product copy and documentation phrasing were refined with AI assistance to keep technical descriptions clear and concise.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>documentation</category>
      <category>software</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
