<?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: shaun</title>
    <description>The latest articles on DEV Community by shaun (@alwaysmavs).</description>
    <link>https://dev.to/alwaysmavs</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%2F3275809%2Fdebc9363-b965-40bb-862c-36e7102f73ce.png</url>
      <title>DEV Community: shaun</title>
      <link>https://dev.to/alwaysmavs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alwaysmavs"/>
    <language>en</language>
    <item>
      <title>What we learned building PDF Craft (6,800+ GitHub stars): scanned books to Markdown, EPUB, and translated PDFs</title>
      <dc:creator>shaun</dc:creator>
      <pubDate>Thu, 26 Nov 2026 13:07:54 +0000</pubDate>
      <link>https://dev.to/alwaysmavs/what-we-learned-building-pdf-craft-6800-github-stars-scanned-books-to-markdown-epub-and-1d8o</link>
      <guid>https://dev.to/alwaysmavs/what-we-learned-building-pdf-craft-6800-github-stars-scanned-books-to-markdown-epub-and-1d8o</guid>
      <description>&lt;p&gt;Over the past year, &lt;a href="https://github.com/oomol-lab/pdf-craft" rel="noopener noreferrer"&gt;PDF Craft&lt;/a&gt;, our MIT-licensed Python library for scanned books and papers, has grown to &lt;strong&gt;6,800+ stars on GitHub&lt;/strong&gt;. Most developers and researchers find it after hitting the same wall: scanned PDFs are fine if you just want to read page 12 on a 27-inch monitor, and painful the moment you want to read a 300-page book on a phone or e-reader, pull clean Markdown from a two-column paper with equations, or translate a textbook without shredding its figures and footnotes.&lt;/p&gt;

&lt;p&gt;Plain OCR tools handle single pages well enough, then fall apart on whole books. Headers and page numbers bleed into body paragraphs, multi-column sentences get glued together out of order, footnotes disappear into the middle of the next paragraph, and if you later decide you want an EPUB or a translation after already generating Markdown, you end up paying to run OCR all over again.&lt;/p&gt;

&lt;p&gt;Alongside the open-source Python library, we also run a hosted web version at &lt;a href="https://pdfcraft.ai/" rel="noopener noreferrer"&gt;pdfcraft.ai&lt;/a&gt; for people who do not want to set up Poppler, CUDA, or OCR keys. Here is a look at what it actually outputs, a few architectural decisions that saved us a lot of headaches, and where the rough edges still are.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the output looks like in practice
&lt;/h2&gt;

&lt;p&gt;Before getting into internals, here are two real conversions rather than synthetic demos.&lt;/p&gt;

&lt;p&gt;First, a paper everyone in ML recognizes (&lt;em&gt;Attention Is All You Need&lt;/em&gt;) converted and rendered in our &lt;a href="https://pdfcraft.ai/library/" rel="noopener noreferrer"&gt;Conversion Examples library&lt;/a&gt;, with the extracted table of contents on the left, equations and diagrams preserved in the reading flow, and each paragraph linked back to its bounding box on the original PDF page:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frh0pwy7l7vre9bemg97i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frh0pwy7l7vre9bemg97i.png" alt="Attention Is All You Need converted in PDF Craft with extracted TOC, equations, Figure 2, and highlighted source bounding box on the original PDF" width="799" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Second, a scanned math page from &lt;em&gt;The Works of Archimedes&lt;/em&gt; going from a fixed-layout English scan (with a geometric diagram, display formulas, and a footnote) to a reflowable translated page:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2o93zoyxy6e7ghgpiie.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2o93zoyxy6e7ghgpiie.png" alt="Scanned page from The Works of Archimedes on the left and reflowed translated page with diagram, equations, and footnote on the right" width="800" height="487"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Depending on what you need, PDF Craft can output:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Editable Markdown with cropped image assets&lt;/li&gt;
&lt;li&gt;Reflowable EPUB with chapters, TOC, footnotes, and book metadata&lt;/li&gt;
&lt;li&gt;Translated or bilingual EPUB (either from a scanned PDF or from an existing EPUB)&lt;/li&gt;
&lt;li&gt;Translated PDF written back onto the original page canvas while keeping figures and annotations&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why we stopped going straight from OCR to Markdown
&lt;/h2&gt;

&lt;p&gt;Early on, going directly from OCR to Markdown or EPUB looked simpler. The problem is that Markdown and EPUB are presentation formats: once you write them out, you throw away page dimensions, pixel bounding boxes (&lt;code&gt;bbox&lt;/code&gt;), and original reading-order coordinates.&lt;/p&gt;

&lt;p&gt;If you want to switch from translated-only to bilingual later, add a second language, or write a translation back onto the original PDF canvas, you have to re-run OCR from scratch.&lt;/p&gt;

&lt;p&gt;So we put an intermediate ZIP archive called &lt;code&gt;.pcex&lt;/code&gt; between the OCR stage and every renderer or translator:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg5qp3cgu928i14p5qei4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg5qp3cgu928i14p5qei4.png" alt="Diagram of PDF Craft's .pcex archive turning one OCR pass into Markdown, reflowable EPUB, bilingual EPUB, and translated PDF" width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside a &lt;code&gt;.pcex&lt;/code&gt; archive, the layout is intentionally boring and inspectable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;book.pcex
├── manifest.json       # format version, producer, book metadata
├── pages.xml           # page pixel dimensions, DPI, coordinate space
├── chapters/           # logical reading flow + footnotes + source bbox maps
├── assets/             # content-hashed cropped images, tables, formulas
├── toc.xml             # hierarchical table of contents
├── furnitures.xml      # headers, footers, page numbers
└── translations/       # stackable translation layers isolated by ID
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A logical paragraph stays one &lt;code&gt;TextFlowItem&lt;/code&gt; even when an illustration or column break splits it across multiple bounding boxes. Markdown and EPUB renderers walk the logical flow; the PDF writeback renderer uses the stored &lt;code&gt;page_index&lt;/code&gt; and &lt;code&gt;bbox&lt;/code&gt; coordinates to refill the original pages. Translations live as separate layers under &lt;code&gt;translations/&lt;/code&gt;, so the original extraction is never overwritten.&lt;/p&gt;

&lt;h2&gt;
  
  
  A few engineering tradeoffs that mattered
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Streaming books without waiting for page 200
&lt;/h3&gt;

&lt;p&gt;Nobody wants to stare at a spinner for 15 minutes on a long scan. Streaming OCR page by page sounds easy until you remember two things: concurrent OCR workers finish out of order, and paragraphs and footnotes routinely cross page breaks.&lt;/p&gt;

&lt;p&gt;We ended up using a fixed three-page primary window for footnote screening and optional LLM refinement, with one strict rule: a page's refinement prompt sees only its own score plus immutable primary snapshots of its immediate neighbors, never the neighbor's refined output. Waiting for earlier pages to finish refining would serialize the whole book again and make prompts depend on network timing. Giving up cross-page score sharing bought us parallel scheduling, deterministic caching, and a bounded reorder queue that emits closed paragraphs through &lt;code&gt;on_body&lt;/code&gt; and &lt;code&gt;on_footnote&lt;/code&gt; callbacks as pages complete.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Keeping LLMs from breaking EPUB XML and math
&lt;/h3&gt;

&lt;p&gt;If you have ever written a quick script to translate an EPUB with an LLM, you already know the failure modes: dropped closing tags, broken footnote IDs, or the model helpfully rewriting &lt;code&gt;16 \times&lt;/code&gt; into prose. And if you validate too strictly on raw strings, you burn retry tokens because the model added a trailing space.&lt;/p&gt;

&lt;p&gt;In PDF Craft, prose translation and XML structure filling are split into two stages. Context around group boundaries helps keep pronouns and references coherent, and then deterministic validation checks node IDs, required tags, and text alignment. Unambiguous whitespace differences get recovered deterministically with zero retries; only genuinely missing content or ambiguous tag-boundary placement triggers a bounded retry.&lt;/p&gt;

&lt;p&gt;For inline equations, we keep them visible in the chapter XML so the translator understands the math in context, avoid brittle LaTeX diffing during structure validation, and restore the exact original source formula deterministically after validation passes.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Writing translations back onto scanned PDFs (and its real limits)
&lt;/h3&gt;

&lt;p&gt;Translating a PDF in place is tricky because translated text almost never matches the original length. Painting text inside each individual OCR box leads to mismatched font sizes across neighboring paragraphs and cramped headings.&lt;/p&gt;

&lt;p&gt;Our PDF writeback path builds four layers: a font-free visual base via Ghostscript (so original text is no longer selectable underneath), a local background erasure mask sampled from each box's median background color, translated text and vector math laid out with Qt &lt;code&gt;QTextLayout&lt;/code&gt;, and the source PDF's original &lt;code&gt;/Annots&lt;/code&gt; mounted back on top. Layout runs in two stages: first flowing each logical paragraph continuously across columns and page breaks around protected figures, then normalizing body font scale per page with a minimum heading size ratio.&lt;/p&gt;

&lt;p&gt;The honest caveat: erasure uses solid color-matched rectangles, not generative inpainting. On clean or off-white paper it blends well; when text sits on top of heavy texture, gradients, or dense table gridlines, you will see a flat patch. Text baked inside bitmap illustrations is also left alone rather than erased. For text-heavy books read on phones or Kindle, EPUB is still the better output; translated PDF is mostly for papers and technical manuals where figure-to-text spatial alignment matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it in Python (local GPU or remote OCR)
&lt;/h2&gt;

&lt;p&gt;The library requires Python 3.11 to 3.13 and Poppler on your system. You can point it at a remote OCR endpoint (no local GPU needed) or run locally on CUDA. Supported OCR backends include DeepSeek OCR, DeepSeek OCR 2, Unlimited OCR, and MiniCPM-OCR.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python -m pip install pdf-craft
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Basic conversion to Markdown (saving a reusable &lt;code&gt;.pcex&lt;/code&gt; archive along the way):&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;from&lt;/span&gt; &lt;span class="n"&gt;pdf_craft&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;DeepSeekOCRVendorConfig&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;PDFCraft&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;PDFOptions&lt;/span&gt;

&lt;span class="n"&gt;craft&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;PDFCraft&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;PDFOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;ocr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;DeepSeekOCRVendorConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://example.com/v1"&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="s2"&gt;"your-api-key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"deepseek-ocr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;craft&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;convert_pdf_to_markdown&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"input.pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"output.md"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;extraction_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"book.pcex"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For EPUB, swap the last call to &lt;code&gt;craft.convert_pdf_to_epub("input.pdf", "output.epub")&lt;/code&gt;. If you are inside an async app, use &lt;code&gt;AsyncPDFCraft&lt;/code&gt; with the same options.&lt;/p&gt;

&lt;p&gt;If you have an NVIDIA GPU and want OCR completely offline on your own machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python -m pip install &lt;span class="s2"&gt;"pdf-craft[local]"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Macs and CPU-only machines should stick to remote OCR or the hosted service since local mode requires CUDA. Translated PDF writeback also requires Ghostscript, local fonts, and optionally Matplotlib + TeX if you want inline equations rendered as vector graphics instead of plain-text fallback.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosted web app, REST API, and MCP
&lt;/h2&gt;

&lt;p&gt;If you do not want to install Poppler, Ghostscript, or manage OCR credentials just to test a book, there is a hosted web workspace at &lt;a href="https://pdfcraft.ai/" rel="noopener noreferrer"&gt;pdfcraft.ai&lt;/a&gt; (pay-as-you-go per page, no subscription, with $1 in trial credits on new accounts).&lt;/p&gt;

&lt;p&gt;For scripting or agent workflows, there is also a hosted REST API and a remote MCP server over Streamable HTTP at &lt;code&gt;https://api.pdfcraft.ai/v1/mcp&lt;/code&gt; (supporting OAuth 2.1 or Bearer API keys, documented in the &lt;a href="https://pdfcraft.ai/docs/getting-started/mcp/" rel="noopener noreferrer"&gt;MCP setup guide&lt;/a&gt;). That lets an AI agent check balance, estimate cost upfront, upload file bytes, and pull back finished Markdown or EPUB instead of choking on a raw scanned PDF attachment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open-source ecosystem
&lt;/h2&gt;

&lt;p&gt;Everything in the core pipeline is open source under &lt;code&gt;oomol-lab&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/oomol-lab/pdf-craft" rel="noopener noreferrer"&gt;oomol-lab/pdf-craft&lt;/a&gt; (MIT): scanned PDF extraction, &lt;code&gt;.pcex&lt;/code&gt;, Markdown/EPUB export, and PDF translation writeback&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/oomol-lab/epub-translator" rel="noopener noreferrer"&gt;oomol-lab/epub-translator&lt;/a&gt; (MIT): dedicated EPUB whole-book and bilingual translation&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/oomol-lab/wiki-graph" rel="noopener noreferrer"&gt;oomol-lab/wiki-graph&lt;/a&gt; (Apache 2.0): turns converted EPUB or Markdown books into structured summaries, chapter topology, and knowledge graphs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to judge output quality before installing anything, browse a few papers and books side by side against their original scans in the &lt;a href="https://pdfcraft.ai/library/" rel="noopener noreferrer"&gt;Conversion Examples library&lt;/a&gt;. And if you run into a stubborn layout, footnote edge case, or OCR quirk on your own PDFs, issues and PRs on GitHub are very welcome.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>python</category>
      <category>ai</category>
    </item>
    <item>
      <title>Your AI Agent Shouldn't Hold Your OAuth Tokens</title>
      <dc:creator>shaun</dc:creator>
      <pubDate>Sun, 02 Aug 2026 14:57:06 +0000</pubDate>
      <link>https://dev.to/alwaysmavs/your-ai-agent-shouldnt-hold-your-oauth-tokens-4o82</link>
      <guid>https://dev.to/alwaysmavs/your-ai-agent-shouldnt-hold-your-oauth-tokens-4o82</guid>
      <description>&lt;p&gt;An agent that can only chat is easy to contain. An agent that can read Gmail, open GitHub issues, update Notion, and send Slack messages is much more useful—and much harder to secure.&lt;/p&gt;

&lt;p&gt;The uncomfortable part is not the tool call itself. It is everything around it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where does the OAuth refresh token live?&lt;/li&gt;
&lt;li&gt;Can the agent see it?&lt;/li&gt;
&lt;li&gt;Which actions may this particular agent execute?&lt;/li&gt;
&lt;li&gt;Which account does “send a message” refer to?&lt;/li&gt;
&lt;li&gt;Can you tell what happened after a failed run?&lt;/li&gt;
&lt;li&gt;What changes when the same product goes from two integrations to fifty?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a small internal script, putting an API key in an environment variable may be enough. For a product that connects agents to many user accounts, it becomes a weak architectural boundary.&lt;/p&gt;

&lt;p&gt;This article looks at a different approach: place authentication and provider-specific execution behind a connector gateway, then let the agent work with explicit Action contracts. I will use &lt;a href="https://github.com/oomol-lab/open-connector" rel="noopener noreferrer"&gt;OpenConnector&lt;/a&gt;, an Apache-2.0 open-source project, as the concrete example. At the time of writing, its GitHub repository has passed 4,000 stars—a useful signal that the problem resonates with developers, although popularity is not a substitute for evaluating the code, security model, and provider coverage yourself.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnhgnjlfacnfjqjpwt9ys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnhgnjlfacnfjqjpwt9ys.png" alt=" " width="800" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tool selection and credential use are different jobs
&lt;/h2&gt;

&lt;p&gt;Suppose an agent needs to fetch the current GitHub user. The agent needs to know that an Action exists, what input it accepts, and what output it returns. It does not need the personal access token used to authorize the request.&lt;/p&gt;

&lt;p&gt;Those are two separate responsibilities:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Agent
  decides what to do
  selects an Action
  produces structured input
        |
        v
Connector gateway
  selects the requested connection
  applies credentials
  enforces policy
  calls the provider
  records a redacted run result
        |
        v
Provider API
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This boundary does not solve every agent-security problem. Prompt injection can still cause a bad tool choice. An overly broad OAuth scope is still overly broad. A compromised gateway is still serious.&lt;/p&gt;

&lt;p&gt;What the boundary does provide is a single place to store and rotate credentials, restrict Actions, separate accounts, and inspect execution. That is easier to reason about than passing provider secrets through every agent host and tool implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What OpenConnector puts behind the boundary
&lt;/h2&gt;

&lt;p&gt;OpenConnector combines several pieces that otherwise tend to grow independently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;credentials for API keys, OAuth 2.0, custom auth, and no-auth providers;&lt;/li&gt;
&lt;li&gt;a catalog of provider Actions with request and response schemas;&lt;/li&gt;
&lt;li&gt;named connections for multiple accounts of the same provider;&lt;/li&gt;
&lt;li&gt;Action allow/block policies and separate provider-proxy policies;&lt;/li&gt;
&lt;li&gt;runtime tokens, optional JWT authentication, and an admin boundary;&lt;/li&gt;
&lt;li&gt;redacted run logs and a Web Console for inspection;&lt;/li&gt;
&lt;li&gt;MCP, HTTP, OpenAPI, SDK, and CLI access to the same Action model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project currently advertises more than 1,000 providers and more than 10,000 prebuilt Actions. Treat those numbers as catalog scale, not as a guarantee that every provider has every operation you need. Before adopting any integration platform, check the exact Actions, scopes, and edge cases required by your product.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run one Action locally
&lt;/h2&gt;

&lt;p&gt;The simplest test does not require an account or a credential. Clone the repository, then start the published container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Compose file pulls &lt;code&gt;ghcr.io/oomol-lab/open-connector:latest&lt;/code&gt;. When the runtime is ready, the local console is available at &lt;code&gt;http://localhost:3000&lt;/code&gt;, and the generated API reference is at &lt;code&gt;http://localhost:3000/docs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Hacker News provides a convenient no-auth Action:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="se"&gt;\&lt;/span&gt;
  http://localhost:3000/v1/actions/hackernews.get_top_stories &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"input":{}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before executing anything, a client can discover the catalog:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; http://localhost:3000/v1/actions
curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="s2"&gt;"http://localhost:3000/v1/actions?service=hackernews"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It can also request a compact, agent-readable guide for one Action:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  http://localhost:3000/api/actions/hackernews.get_top_stories/agent.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This discover-inspect-execute pattern matters. Loading thousands of tool definitions into an agent context is wasteful and can make tool selection worse. A small discovery surface lets the agent search first, inspect only the relevant contract, and execute after it understands the input.&lt;/p&gt;

&lt;p&gt;The local MCP endpoint follows that model. Rather than exposing one MCP tool for every catalog Action, it provides a small set of tools for listing apps and connections, searching Actions, retrieving an Action guide, and executing an Action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add a credential without giving it to the agent
&lt;/h2&gt;

&lt;p&gt;GitHub is a straightforward authenticated example because it can use a personal access token. In a local development environment, store a connection through the administration API:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; PUT http://localhost:3000/api/connections/github &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "authType": "api_key",
    "values": { "apiKey": "github_pat_..." }
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now execute an Action without including that credential in the request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="se"&gt;\&lt;/span&gt;
  http://localhost:3000/v1/actions/github.get_current_user &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"input":{}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For multiple GitHub accounts, create named connections such as &lt;code&gt;personal&lt;/code&gt; and &lt;code&gt;work&lt;/code&gt;. The caller selects the intended connection explicitly. A missing named connection returns an error instead of silently falling back to another account—a small behavior that prevents surprisingly dangerous mistakes.&lt;/p&gt;

&lt;p&gt;OAuth providers require more setup when self-hosting. You must register your own OAuth app, configure its callback URL, protect the client secret, and operate the token lifecycle. OpenConnector centralizes that work, but it does not make those responsibilities disappear.&lt;/p&gt;

&lt;p&gt;If you do not want to register and maintain OAuth applications for every provider, &lt;a href="https://oomol.com/docs/connector-saas/" rel="noopener noreferrer"&gt;OOMOL-hosted connectors&lt;/a&gt; provide the SaaS version of the same model. OOMOL supplies the OAuth applications and runs the connector infrastructure, so you can let users authorize supported accounts without first applying for provider client credentials yourself. Users still complete the provider's normal consent flow; “managed OAuth” means the application credentials and runtime are operated for you, not that authorization is bypassed.&lt;/p&gt;

&lt;p&gt;That makes the hosted path useful for validating a product or shipping integrations quickly. The tradeoff is that execution depends on a third-party service and its pricing, availability, and data-handling terms. Because the hosted and open-source runtimes use the same provider IDs, Action IDs, and contracts, a team can start with managed connectors while keeping a path toward private deployment later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Controls worth checking before production
&lt;/h2&gt;

&lt;p&gt;Getting a successful API response is only the first test. Before connecting real accounts, I would check the following controls.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Keep administration separate from execution
&lt;/h3&gt;

&lt;p&gt;The Web Console, &lt;code&gt;/api/*&lt;/code&gt;, and documentation endpoints can be protected with an admin token. Agent-facing &lt;code&gt;/v1/*&lt;/code&gt; and &lt;code&gt;/mcp&lt;/code&gt; calls use runtime tokens or configured JWT access tokens. Do not expose the administration surface with the same trust level as an agent runtime.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Give each runtime the smallest useful Action set
&lt;/h3&gt;

&lt;p&gt;OpenConnector supports allowed and blocked Action patterns. A research agent may need read operations but no message-sending or record-deletion Actions. Encode that difference as policy instead of relying only on the system prompt.&lt;/p&gt;

&lt;p&gt;Provider proxy access is controlled separately from Action access. This distinction is useful: permission to execute a curated GitHub Action should not automatically become permission to send arbitrary requests to GitHub's API.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Protect data at rest and in backups
&lt;/h3&gt;

&lt;p&gt;The local runtime stores state in SQLite by default. &lt;code&gt;OOMOL_CONNECT_ENCRYPTION_KEY&lt;/code&gt; enables encryption for stored credentials, OAuth client configuration, and completed idempotent responses.&lt;/p&gt;

&lt;p&gt;Encryption is only one part of operations. The deployment still needs a plan for key management, file permissions, backups, host access, rotation, and incident response.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Treat logs as security-sensitive
&lt;/h3&gt;

&lt;p&gt;Redacted run records are useful for answering “what did the agent do?” without intentionally storing raw credentials. They can still contain provider names, Action IDs, account labels, timing, errors, and business context. Decide who can read them and how long they should be retained.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Design retries for side effects
&lt;/h3&gt;

&lt;p&gt;The HTTP Action endpoint accepts an &lt;code&gt;Idempotency-Key&lt;/code&gt;. Retrying the same Action, input, and connection with the same key can replay a completed result instead of executing it again.&lt;/p&gt;

&lt;p&gt;That is helpful for operations such as creating a record or sending a message, but it is not a guarantee of exactly-once execution by the upstream provider. MCP Action execution also does not accept the HTTP idempotency header. Workflow code still needs to handle uncertain outcomes deliberately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing a deployment model
&lt;/h2&gt;

&lt;p&gt;OpenConnector can run locally with Node.js or Docker, on Docker infrastructure such as Fly.io, or on Cloudflare Workers with D1, R2, and Static Assets. There is also an OOMOL-hosted path.&lt;/p&gt;

&lt;p&gt;The right choice is mostly about responsibility:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;You control&lt;/th&gt;
&lt;th&gt;You operate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local or self-hosted&lt;/td&gt;
&lt;td&gt;Runtime, data, credentials, network boundary&lt;/td&gt;
&lt;td&gt;OAuth apps, secrets, storage, backups, upgrades&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloudflare deployment&lt;/td&gt;
&lt;td&gt;Worker account and Cloudflare resources&lt;/td&gt;
&lt;td&gt;D1/R2 setup, OAuth apps, secrets, migrations, deployment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Managed OOMOL runtime&lt;/td&gt;
&lt;td&gt;Application behavior and connections&lt;/td&gt;
&lt;td&gt;Less infrastructure; depends on a hosted service and its pricing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Self-hosting is valuable when credential location, network access, or compliance requires private infrastructure. It is not automatically cheaper once operational work is counted. A managed service is faster to start, but it adds an external dependency. There is no universally correct answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  When a connector gateway is the wrong tool
&lt;/h2&gt;

&lt;p&gt;A gateway adds another service, another failure boundary, and another component to upgrade. If your application has one provider, one account, and three stable API calls, the provider's official SDK may be the simplest and best solution.&lt;/p&gt;

&lt;p&gt;The gateway approach starts to pay for itself when several of these become true:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;users connect their own accounts;&lt;/li&gt;
&lt;li&gt;the product supports many providers;&lt;/li&gt;
&lt;li&gt;agents run in more than one host or protocol;&lt;/li&gt;
&lt;li&gt;multiple accounts must be selected safely;&lt;/li&gt;
&lt;li&gt;access policies differ between agents or environments;&lt;/li&gt;
&lt;li&gt;credentials should remain outside the agent process;&lt;/li&gt;
&lt;li&gt;operators need a shared place to inspect failed calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Architecture should follow the problem, not the catalog size.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical evaluation checklist
&lt;/h2&gt;

&lt;p&gt;If you are considering OpenConnector—or any connector platform—test it with one real workflow and answer these questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Does it support the exact provider operations and OAuth scopes you need?&lt;/li&gt;
&lt;li&gt;Can you prevent the agent from accessing unrelated Actions?&lt;/li&gt;
&lt;li&gt;Can users distinguish and select multiple accounts safely?&lt;/li&gt;
&lt;li&gt;Where are credentials, encryption keys, logs, and backups stored?&lt;/li&gt;
&lt;li&gt;How will you handle provider rate limits and partial failures?&lt;/li&gt;
&lt;li&gt;What is the retry behavior for actions with side effects?&lt;/li&gt;
&lt;li&gt;Can you move between managed and self-hosted environments without changing every Action contract?&lt;/li&gt;
&lt;li&gt;Who will upgrade and monitor the connector runtime?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The answers are more important than the number of logos on an integrations page.&lt;/p&gt;

&lt;p&gt;OpenConnector is available on &lt;a href="https://github.com/oomol-lab/open-connector" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. The best places to continue are the &lt;a href="https://github.com/oomol-lab/open-connector/blob/main/docs/quickstart.md" rel="noopener noreferrer"&gt;quick start&lt;/a&gt;, the &lt;a href="https://github.com/oomol-lab/open-connector/blob/main/docs/runtime-api.md" rel="noopener noreferrer"&gt;Runtime API and MCP reference&lt;/a&gt;, and the &lt;a href="https://github.com/oomol-lab/open-connector/blob/main/docs/credentials.md" rel="noopener noreferrer"&gt;credential documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If your agents already use external services, where do you draw the credential boundary today?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: This article was prepared with AI assistance and reviewed against the linked project documentation. The human author is responsible for the final claims and examples.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>mcp</category>
      <category>typescript</category>
    </item>
    <item>
      <title>OOMOL is an programmable workflow platform</title>
      <dc:creator>shaun</dc:creator>
      <pubDate>Fri, 20 Jun 2025 03:59:03 +0000</pubDate>
      <link>https://dev.to/alwaysmavs/oomol-is-an-programmable-workflow-platform-59k8</link>
      <guid>https://dev.to/alwaysmavs/oomol-is-an-programmable-workflow-platform-59k8</guid>
      <description>&lt;p&gt;Workflow tools are powerful solutions for improving team collaboration and visualizing processes. However, after exploring many of the mainstream workflow platforms on the market, we found a common limitation: most are designed with a no-code interface. While this lowers the entry barrier, it also restricts flexibility—especially when predefined nodes can't meet specific needs. In such cases, the user experience quickly deteriorates due to the lack of extensibility.&lt;br&gt;
To address these challenges, we created oomol studio, a workflow platform that strikes a balance between visual simplicity and code-level control. Our goal is to provide a tool that's not only intuitive to use but also powerful enough for complex, customizable workflows. We hope oomol studio helps users build processes that truly fit their unique requirements.&lt;/p&gt;

&lt;p&gt;Everything Is A Function&lt;/p&gt;

&lt;p&gt;OOMOL Studio makes it easy to connect code snippets and API services through intuitive visual interactions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdji21vk2tl6j0s116jjh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdji21vk2tl6j0s116jjh.png" alt="Image description" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Intuitive Interaction&lt;/p&gt;

&lt;p&gt;Easily build workflows, flexibly configure nodes, and preview data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9yxkjqyl9aa0x4bf9y1h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9yxkjqyl9aa0x4bf9y1h.png" alt="Image description" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Developer-Friendly&lt;/p&gt;

&lt;p&gt;Built-in Python &amp;amp; Node.js, VSCode-based with Al and clear logs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4pnesbrmra3uai1zk39.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4pnesbrmra3uai1zk39.png" alt="Image description" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pre-Installed Environment&lt;/p&gt;

&lt;p&gt;No installation needed; OOMOL uses containers for seamless workflow sharing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjhtenxd8g9fvglc873h9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjhtenxd8g9fvglc873h9.png" alt="Image description" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>javascript</category>
      <category>python</category>
    </item>
  </channel>
</rss>
