<?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: Srinivas</title>
    <description>The latest articles on DEV Community by Srinivas (@srinivas26k).</description>
    <link>https://dev.to/srinivas26k</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%2F4230734%2F956b69f1-a99f-43fc-af22-08a8849c7e3b.jpg</url>
      <title>DEV Community: Srinivas</title>
      <link>https://dev.to/srinivas26k</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/srinivas26k"/>
    <language>en</language>
    <item>
      <title>Building Hekara: An Open-Source, Self-Hosted Healthcare Management Platform</title>
      <dc:creator>Srinivas</dc:creator>
      <pubDate>Fri, 06 Nov 2026 15:32:14 +0000</pubDate>
      <link>https://dev.to/srinivas26k/building-hekara-an-open-source-self-hosted-healthcare-management-platform-3i20</link>
      <guid>https://dev.to/srinivas26k/building-hekara-an-open-source-self-hosted-healthcare-management-platform-3i20</guid>
      <description>&lt;p&gt;I've been working on an open-source project called &lt;strong&gt;Hekara&lt;/strong&gt;, a self-hosted healthcare management platform designed for home healthcare agencies.&lt;/p&gt;

&lt;p&gt;The motivation was straightforward: managing a home healthcare agency involves a lot of moving parts. Caregiver schedules, patient records, visit assignments, compliance requirements, billing and operational reporting often end up scattered across different tools.&lt;/p&gt;

&lt;p&gt;I wanted to explore whether these workflows could be brought together in one platform, while giving organisations control over their software and infrastructure.&lt;/p&gt;

&lt;p&gt;So I started building Hekara.&lt;/p&gt;

&lt;p&gt;Here's what I've built, some of the engineering decisions behind it, and what I'm still trying to figure out.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Hekara?
&lt;/h2&gt;

&lt;p&gt;Hekara is an open-source home healthcare agency management platform.&lt;/p&gt;

&lt;p&gt;The goal is to provide a central place for agencies to manage their daily operations without depending entirely on closed-source, per-seat software.&lt;/p&gt;

&lt;p&gt;Some of the implemented features include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Scheduling:&lt;/strong&gt; Live day and week timelines for caregivers and visits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shift management:&lt;/strong&gt; One-click shift allocation with skill, availability and weekly-hour checks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scheduling assistance:&lt;/strong&gt; Explainable, rule-based suggestions for filling shifts and avoiding overtime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Patient management:&lt;/strong&gt; Patient records, care plans and notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credential tracking:&lt;/strong&gt; Monitor CPR, TB tests, background checks and expiry dates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Billing:&lt;/strong&gt; Claims workflow covering draft, submitted, paid and denied states.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reporting:&lt;/strong&gt; Operational reports, hours, fill rates and billing summaries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Access control:&lt;/strong&gt; Separate admin, scheduler, caregiver and billing roles.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Some engineering decisions
&lt;/h2&gt;

&lt;p&gt;I didn't want this to become a tightly coupled application that would be difficult to maintain or extend.&lt;/p&gt;

&lt;p&gt;The current stack is:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Language&lt;/td&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;SolidJS + Vite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;td&gt;Hono&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;PostgreSQL 17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ORM&lt;/td&gt;
&lt;td&gt;Drizzle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;td&gt;Better Auth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validation&lt;/td&gt;
&lt;td&gt;Valibot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Testing&lt;/td&gt;
&lt;td&gt;Vitest&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  1. Ports and adapters architecture
&lt;/h3&gt;

&lt;p&gt;One of the architectural decisions I'm particularly interested in getting feedback on is the use of ports and adapters.&lt;/p&gt;

&lt;p&gt;The core domain logic doesn't directly depend on the infrastructure.&lt;/p&gt;

&lt;p&gt;Instead, the application communicates through interfaces for repositories, cryptography, realtime events, audit logging, queues, blob storage and secrets.&lt;/p&gt;

&lt;p&gt;Currently, PostgreSQL is the implemented backend adapter.&lt;/p&gt;

&lt;p&gt;The idea is to make it possible to introduce other infrastructure adapters without rewriting the core application.&lt;/p&gt;

&lt;p&gt;Cloudflare and AWS adapters are part of the roadmap, not completed implementations.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Patient data protection
&lt;/h3&gt;

&lt;p&gt;Healthcare software requires a different level of care around sensitive information.&lt;/p&gt;

&lt;p&gt;I've implemented several security mechanisms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AES-256-GCM field-level encryption.&lt;/li&gt;
&lt;li&gt;Per-agency encryption keys and key rotation.&lt;/li&gt;
&lt;li&gt;HMAC-based blind indexes for searching encrypted fields.&lt;/li&gt;
&lt;li&gt;Server-side role enforcement.&lt;/li&gt;
&lt;li&gt;Tenant-scoped database queries.&lt;/li&gt;
&lt;li&gt;Append-only, hash-chained audit logging.&lt;/li&gt;
&lt;li&gt;Hardened session and authentication controls.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have also written tests for tenant isolation and access-control boundaries.&lt;/p&gt;

&lt;p&gt;An important clarification: Hekara has not undergone an independent security audit or penetration test. It is not HIPAA-certified, SOC 2-certified or independently certified under any healthcare security framework.&lt;/p&gt;

&lt;p&gt;The project is currently in alpha and should only be evaluated with synthetic data.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Keeping the application lightweight
&lt;/h3&gt;

&lt;p&gt;Another goal was to avoid unnecessary infrastructure complexity.&lt;/p&gt;

&lt;p&gt;The current setup uses PostgreSQL and a relatively small application stack. It doesn't require Redis or a separate message broker.&lt;/p&gt;

&lt;p&gt;The frontend client is approximately 50 KB gzipped, according to the current project documentation.&lt;/p&gt;

&lt;p&gt;The intention is to make self-hosting practical for smaller organisations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What still needs work?
&lt;/h2&gt;

&lt;p&gt;Hekara is far from finished.&lt;/p&gt;

&lt;p&gt;Some of the things on my roadmap include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Portable export/import tooling.&lt;/li&gt;
&lt;li&gt;Cloudflare infrastructure adapter.&lt;/li&gt;
&lt;li&gt;Improved multi-instance rate limiting.&lt;/li&gt;
&lt;li&gt;Better mobile experience.&lt;/li&gt;
&lt;li&gt;Additional billing workflows.&lt;/li&gt;
&lt;li&gt;Automated security checks for accidental exposure of sensitive data.&lt;/li&gt;
&lt;li&gt;More integrations with external healthcare systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd also like to improve the documentation and make contributing easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I need feedback
&lt;/h2&gt;

&lt;p&gt;This is the part I'm most interested in discussing with other developers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Architecture:&lt;/strong&gt; Is ports and adapters a sensible approach for a platform of this size? Am I introducing unnecessary abstraction?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security:&lt;/strong&gt; What additional security tests or threat scenarios should I prioritise before considering a production deployment?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Database design:&lt;/strong&gt; Are there particular challenges I should anticipate with encrypted fields, blind indexes and multi-tenant data isolation?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product direction:&lt;/strong&gt; Are there important home healthcare workflows I'm overlooking?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open source:&lt;/strong&gt; What would make a project like this easier for other developers to adopt and contribute to?&lt;/p&gt;

&lt;p&gt;I'd appreciate criticism, particularly from people who have worked on healthcare software, enterprise applications, security engineering or open-source infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  The project
&lt;/h2&gt;

&lt;p&gt;Hekara is released under the AGPL-3.0 licence.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/Srinivas26k/Hekara/" rel="noopener noreferrer"&gt;https://github.com/Srinivas26k/Hekara/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contributions, bug reports, architectural suggestions and documentation improvements are welcome.&lt;/p&gt;

&lt;p&gt;I'm building this independently and would like to make Hekara a genuinely useful project rather than simply another repository on GitHub.&lt;/p&gt;

&lt;p&gt;If you've worked on something similar, I'd be particularly interested in hearing what you learned.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
