<?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: Norayr</title>
    <description>The latest articles on DEV Community by Norayr (@nordeveloper).</description>
    <link>https://dev.to/nordeveloper</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%2F4058052%2Ff15e0114-60ae-4c0b-8f7a-46084222c671.png</url>
      <title>DEV Community: Norayr</title>
      <link>https://dev.to/nordeveloper</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nordeveloper"/>
    <language>en</language>
    <item>
      <title>Open PAIAgent: A 50MB RAM, Sub-Second Personal AI Assistant (Without Framework Bloat)</title>
      <dc:creator>Norayr</dc:creator>
      <pubDate>Sat, 01 Aug 2026 16:21:53 +0000</pubDate>
      <link>https://dev.to/nordeveloper/open-paiagent-a-50mb-ram-sub-second-personal-ai-assistant-without-framework-bloat-4gg2</link>
      <guid>https://dev.to/nordeveloper/open-paiagent-a-50mb-ram-sub-second-personal-ai-assistant-without-framework-bloat-4gg2</guid>
      <description>&lt;p&gt;Most self-hosted AI applications available today feel heavy and demanding. Setting them up often requires launching multiple Docker containers, consuming &lt;strong&gt;1.5 GB+ of system RAM&lt;/strong&gt;, and waiting up to a minute for heavy database engines and complex backend frameworks to initialize.&lt;/p&gt;

&lt;p&gt;When all you want is a fast, responsive personal AI assistant that can manage files, scrape web pages, generate documents, and chat with you on Telegram... there is no need for so much system overhead.&lt;/p&gt;

&lt;p&gt;That is why I created &lt;strong&gt;&lt;a href="https://github.com/nordevelopment/OpenPersonalAIAgent" rel="noopener noreferrer"&gt;Open PAIAgent&lt;/a&gt;&lt;/strong&gt;—an open-source, ultra-lightweight personal AI assistant engineered specifically for raw speed, low memory usage, and complete privacy on your local machine.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Open PAIAgent&lt;/strong&gt; is a zero-bloat, 100% self-hosted AI agent written in TypeScript. It provides a full set of tools for daily productivity while keeping your data strictly local:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;💬 Dual Interfaces&lt;/strong&gt;: Modern cyberpunk Web UI for your desk + Telegram bot for remote access on the go.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;⚡ Dynamic Skills System&lt;/strong&gt;: Loads instruction prompts dynamically based on query keywords (e.g. e-commerce search, code refactoring, copywriting) to save LLM context tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📁 File System Manager&lt;/strong&gt;: Read, create, update, and edit text files inside a sandboxed local workspace folder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🌐 Web Scraper&lt;/strong&gt;: Downloads web pages and cleans HTML clutter. Supports static scraping with automatic Puppeteer headless browser fallback for SPAs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📄 PDF &amp;amp; Office Generator&lt;/strong&gt;: Creates formatted A4 PDF reports, Excel spreadsheets (&lt;code&gt;.xlsx&lt;/code&gt;) with formulas, and styled Word documents (&lt;code&gt;.docx&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🖼️ Image Generation&lt;/strong&gt;: Generates images using Together AI or X.AI (Grok) with smart fallback logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🧠 Hybrid Local Memory&lt;/strong&gt;: Embedded SQLite with &lt;code&gt;sqlite-vec&lt;/code&gt; vector similarity search alongside keyword matching.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📋 Background Task Scheduler&lt;/strong&gt;: Schedules background tasks with 60-second polling and real-time Telegram execution alerts.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚡ Why Resource Efficiency Matters
&lt;/h2&gt;

&lt;p&gt;Here is how Open PAIAgent compares to traditional heavy AI platforms:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Typical Docker-Based AI Apps&lt;/th&gt;
&lt;th&gt;Open PAIAgent&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;RAM Footprint&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1.5 GB - 2.5 GB RAM&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;50 MB - 100 MB RAM&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Startup Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;30 - 60 seconds&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&amp;lt; 1 second (Sub-second)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Database&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Heavy PostgreSQL / Qdrant&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Embedded SQLite + &lt;code&gt;sqlite-vec&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dependencies&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Massive Docker setups&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Zero container bloat (Node.js &amp;amp; npm)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Interfaces&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Web UI only&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Web UI + Telegram Bot&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Frameworks&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;LangChain / Heavy abstractions&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Vanilla TypeScript state machine&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🏗️ Architecture &amp;amp; Key Engineering Decisions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why No LangChain or LlamaIndex?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Complete Control&lt;/strong&gt;: Writing the agent's cognitive loop (think-act-evaluate) in vanilla TypeScript guarantees full control over tool calling and context history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy Debugging&lt;/strong&gt;: Tracing pure TypeScript code is trivial compared to debugging complex multi-layer framework abstractions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-Second Cold Start&lt;/strong&gt;: Fastify + Node.js boots instantly without loading hundreds of heavy dependencies.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Security Sandboxing
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HTTP Basic Auth&lt;/strong&gt;: Secures the Web UI for remote access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Telegram User Whitelist&lt;/strong&gt;: Restricts bot access strictly to authorized user IDs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Path Sandboxing&lt;/strong&gt;: Enforces strict relative path checks to prevent path traversal outside the designated &lt;code&gt;workspace/&lt;/code&gt; folder.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 How to Run It
&lt;/h2&gt;

&lt;p&gt;You can run Open PAIAgent on your machine in under 2 minutes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Clone the repository&lt;/span&gt;
git clone https://github.com/nordevelopment/OpenPersonalAIAgent
&lt;span class="nb"&gt;cd &lt;/span&gt;OpenPersonalAIAgent

&lt;span class="c"&gt;# 2. Install dependencies&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt;

&lt;span class="c"&gt;# 3. Start the application&lt;/span&gt;
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://127.0.0.1:3000&lt;/code&gt; in your browser. First-time launch opens an interactive setup wizard to configure your preferred AI model provider (OpenRouter, Together AI, X.AI, etc.).&lt;/p&gt;




&lt;h2&gt;
  
  
  📺 Video Demo &amp;amp; Repository
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🎬 &lt;strong&gt;YouTube Feature Demo&lt;/strong&gt;: &lt;a href="https://www.youtube.com/watch?v=rcRkP_UiDRo" rel="noopener noreferrer"&gt;Watch Video&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;⭐ &lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/nordevelopment/OpenPersonalAIAgent" rel="noopener noreferrer"&gt;nordevelopment/OpenPersonalAIAgent&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🌐 &lt;strong&gt;Project Webpage&lt;/strong&gt;: &lt;a href="https://nordevelopment.github.io/OpenPAIAgent" rel="noopener noreferrer"&gt;nordevelopment.github.io/OpenPAIAgent&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 Key Learnings
&lt;/h2&gt;

&lt;p&gt;Building Open PAIAgent proved that you do not need multi-gigabyte container stacks or complex abstractions to build a fully capable, tool-using personal AI agent. By leveraging Node.js, Fastify, and embedded SQLite vector search, you can get sub-second responses and save gigabytes of system memory.&lt;/p&gt;

&lt;p&gt;Feel free to check out the repo, leave a star on GitHub, or drop your feedback in the comments!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;License&lt;/strong&gt;: MIT — 100% Free and Open Source.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>typescript</category>
      <category>node</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Building Open PAIAgent: A Fast, Personal AI Assistant Without Framework Bloat</title>
      <dc:creator>Norayr</dc:creator>
      <pubDate>Sat, 01 Aug 2026 16:11:53 +0000</pubDate>
      <link>https://dev.to/nordeveloper/building-open-paiagent-a-fast-personal-ai-assistant-without-framework-bloat-26k1</link>
      <guid>https://dev.to/nordeveloper/building-open-paiagent-a-fast-personal-ai-assistant-without-framework-bloat-26k1</guid>
      <description>&lt;p&gt;Most self-hosted AI applications available today feel heavy and demanding. Setting them up often requires launching multiple Docker containers, consuming 1.5 gigabytes or more of system RAM, and waiting up to a minute for heavy database engines and complex backend frameworks to initialize.&lt;/p&gt;

&lt;p&gt;When all you want is a fast, responsive personal AI assistant that can manage files, scrape web pages, generate documents, and chat with you on Telegram, there is no need for so much system overhead.&lt;/p&gt;

&lt;p&gt;That is why Open PAIAgent was created. It is an open-source, lightweight personal AI assistant engineered specifically for raw speed, minimal memory usage, and complete privacy on your local machine.&lt;/p&gt;

&lt;p&gt;Why Resource Efficiency Matters&lt;/p&gt;

&lt;p&gt;Comparing typical container-based AI setups with Open PAIAgent reveals a massive difference in performance:&lt;/p&gt;

&lt;p&gt;Memory Footprint: Heavy AI setups often require 1.5 to 2.5 gigabytes of RAM. Open PAIAgent uses only 50 to 100 megabytes of RAM.&lt;/p&gt;

&lt;p&gt;Startup Time: Traditional multi-container setups can take 30 to 60 seconds to boot. Open PAIAgent starts in under a single second.&lt;/p&gt;

&lt;p&gt;Database Infrastructure: Instead of requiring external PostgreSQL or vector database servers, Open PAIAgent uses an embedded local SQLite database with vector support.&lt;/p&gt;

&lt;p&gt;Interfaces: Offers both an interactive Web interface and a remote Telegram bot.&lt;/p&gt;

&lt;p&gt;Core Framework: Built with a direct TypeScript state engine rather than heavy abstraction frameworks like LangChain.&lt;/p&gt;

&lt;p&gt;Core Functionality and Everyday Usefulness&lt;/p&gt;

&lt;p&gt;Open PAIAgent is designed to serve as a reliable daily assistant while keeping all your files, memory, and settings 100% private on your own computer.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Dual Interfaces for Home and Mobile Access&lt;br&gt;
When working at your computer, you can use the modern Web interface featuring real-time response streaming, session management, and custom prompts. When away from your desk, you can communicate with your agent via Telegram to summarize notes, scrape web content, or run tasks remotely.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dynamic Skills System to Save AI Context Tokens&lt;br&gt;
Rather than sending long instruction prompts on every message, Open PAIAgent loads instructions dynamically. Skills are stored as modular files. When your request contains specific topics—such as e-commerce search, code refactoring, or content copywriting—the agent injects only the necessary instructions into the active conversation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Complete Tool and Document Engine&lt;br&gt;
The agent comes equipped with a comprehensive set of native capabilities:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Workspace File Manager: Safely reads, creates, and edits text files inside a dedicated local workspace folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Intelligent Web Scraper: Downloads web pages, removes unnecessary clutter, and extracts clean text. It automatically handles both simple static pages and dynamic single-page web applications.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PDF Document Generator: Turns custom HTML templates into structured, printable A4 PDF reports directly in your workspace.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Office Document Generator: Creates formatted Excel spreadsheets with custom columns and formulas, as well as styled Word documents with headings and tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Image Generation: Generates visual artwork directly in chat with automatic fallback support across multiple provider APIs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Hybrid Local Memory&lt;br&gt;
Conversations and key facts are stored locally in an embedded SQLite database. When you ask about past information, the agent combines semantic vector search with keyword matching to recall context accurately without relying on external cloud databases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Background Automation and Notifications&lt;br&gt;
You can schedule automated tasks that run periodically in the background. The agent scans scheduled actions every minute, carries out requested operations, and sends instant execution updates to your Telegram bot.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Engineering Principles: Simple and Audit Code&lt;/p&gt;

&lt;p&gt;A key design decision in Open PAIAgent was avoiding heavy AI libraries like LangChain or LlamaIndex.&lt;/p&gt;

&lt;p&gt;By building the agent logic directly in TypeScript, the developer maintains exact control over tool execution, prompt formatting, and conversation state. Troubleshooting becomes simple and fast because there are no hidden layers of library abstractions. Additionally, the Fastify backend server starts instantly and maintains an extremely low memory footprint.&lt;/p&gt;

&lt;p&gt;Built with Security and Privacy First&lt;/p&gt;

&lt;p&gt;Security is essential when an AI agent interacts with your filesystem:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTTP Basic Auth: Lets you secure the Web interface with password protection when accessing it remotely.&lt;/li&gt;
&lt;li&gt;Telegram Whitelist: Ensures only authorized Telegram user IDs can interact with your bot and use your API balance.&lt;/li&gt;
&lt;li&gt;Path Sandboxing: File manipulation functions enforce strict path validation to prevent unauthorized access outside your designated workspace directory.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How to Get Started&lt;br&gt;
Project page: &lt;a href="https://nordevelopment.github.io/OpenPAIAgent" rel="noopener noreferrer"&gt;https://nordevelopment.github.io/OpenPAIAgent&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Setting up Open PAIAgent takes under two minutes. You simply clone the GitHub repository (nordevelopment/OpenPAIAgent), install the dependencies with Node.js, and run the startup command. On the first run, an intuitive setup wizard guides you through selecting your preferred AI provider.&lt;/p&gt;

&lt;p&gt;Open PAIAgent is fully open-source under the MIT license, giving you complete freedom to customize, extend, and run your personal AI assistant locally.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
