<?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: car pep</title>
    <description>The latest articles on DEV Community by car pep (@car_pep_3ac2d1904d7be5216).</description>
    <link>https://dev.to/car_pep_3ac2d1904d7be5216</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%2F4210668%2Fab1896c5-c755-4e74-abd4-264a23715313.png</url>
      <title>DEV Community: car pep</title>
      <link>https://dev.to/car_pep_3ac2d1904d7be5216</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/car_pep_3ac2d1904d7be5216"/>
    <language>en</language>
    <item>
      <title>How I designed permissions people can actually understand (Node + Prisma)</title>
      <dc:creator>car pep</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:03:48 +0000</pubDate>
      <link>https://dev.to/car_pep_3ac2d1904d7be5216/how-i-designed-permissions-people-can-actually-understand-node-prisma-5b8j</link>
      <guid>https://dev.to/car_pep_3ac2d1904d7be5216/how-i-designed-permissions-people-can-actually-understand-node-prisma-5b8j</guid>
      <description>&lt;p&gt;In most companies I've worked with, nobody can answer a simple question about the shared drive: who can see this folder, and why? Access is granted person by person, inherited in ways nobody remembers, and never cleaned up.&lt;/p&gt;

&lt;p&gt;While building SpiderFolio, an open-source, self-hosted document management system for small businesses (&lt;a href="https://github.com/spiderjad/SpiderFolio" rel="noopener noreferrer"&gt;https://github.com/spiderjad/SpiderFolio&lt;/a&gt;), I set one rule: every folder, file and page must show who has access and the reason, for example "Quality department · inherited from /Procedures".&lt;/p&gt;

&lt;h2&gt;
  
  
  Grant access to departments, not people
&lt;/h2&gt;

&lt;p&gt;Access is given to departments and roles. When someone moves from Production to Quality, their access changes on its own. Direct grants to a person still exist, but the admin panel flags them as a sign of disorder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four levels, highest wins
&lt;/h2&gt;

&lt;p&gt;MANAGE &amp;gt; EDIT &amp;gt; COMMENT &amp;gt; VIEW. A person collects every non-expired grant given to them and to their departments (including parent departments). If several apply, the highest level wins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inheritance you can cut
&lt;/h2&gt;

&lt;p&gt;Folders, files and pages form one tree. By default a node inherits its parent's access up to the space. Any node can stop inheritance, so a "Payroll" folder inside "HR" can be locked down without touching the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  One function, explained
&lt;/h2&gt;

&lt;p&gt;All of this lives in a single resolveAccess function backed by a table of test cases. Instead of returning only a level, it also returns the reason for each grant. That's what powers the "Share" dialog and the "who can see this?" report. Trees are resolved in batches, one query per level, to avoid N+1 queries, and cached per request.&lt;/p&gt;

&lt;h2&gt;
  
  
  Isolation first
&lt;/h2&gt;

&lt;p&gt;Every query goes through a tenant-scoped Prisma client, and an integration test checks that a user from company A gets a 404 on every endpoint for company B's data.&lt;/p&gt;

&lt;p&gt;SpiderFolio is AGPLv3 and installs with Docker Compose. Docs: &lt;a href="https://spiderfolio.spiderjad.com/en/docs" rel="noopener noreferrer"&gt;https://spiderfolio.spiderjad.com/en/docs&lt;/a&gt;. I'd love feedback on this design.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>selfhosted</category>
      <category>typescript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>SpiderFolio: Self-hosted Document Management with AI / Gestión Documental con IA</title>
      <dc:creator>car pep</dc:creator>
      <pubDate>Tue, 27 Oct 2026 10:51:09 +0000</pubDate>
      <link>https://dev.to/car_pep_3ac2d1904d7be5216/spiderfolio-self-hosted-document-management-with-ai-gestion-documental-con-ia-e3i</link>
      <guid>https://dev.to/car_pep_3ac2d1904d7be5216/spiderfolio-self-hosted-document-management-with-ai-gestion-documental-con-ia-e3i</guid>
      <description>&lt;p&gt;Descubrí un excelente proyecto Open Source: SpiderFolio&lt;/p&gt;

&lt;p&gt;Estuve probando SpiderFolio (creado por Diego Pennisi), un sistema de gestión documental autoalojado (self-hosted), ¡y la experiencia ha sido buenísima!&lt;/p&gt;

&lt;p&gt;📌 Lo que más me gustó:&lt;/p&gt;

&lt;p&gt;Organización clara: Control de documentos, versiones y permisos según el rol de cada usuario.&lt;/p&gt;

&lt;p&gt;Asistente de IA integrado: Responde preguntas basándose exclusivamente en los documentos a los que el usuario tiene acceso.&lt;/p&gt;

&lt;p&gt;Fácil despliegue: Se ejecuta de forma muy rápida utilizando Docker.&lt;/p&gt;

&lt;p&gt;Si buscan una alternativa sólida y de código abierto para gestionar la documentación de su empresa, les recomiendo darle un vistazo en GitHub:&lt;br&gt;
🔗 &lt;a href="https://github.com/spiderjad/SpiderFolio" rel="noopener noreferrer"&gt;https://github.com/spiderjad/SpiderFolio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Discovered a great Open Source project: SpiderFolio&lt;/p&gt;

&lt;p&gt;I’ve been testing SpiderFolio (created by Diego Pennisi), a self-hosted document management system, and the experience has been amazing!&lt;/p&gt;

&lt;p&gt;📌 What I liked the most:&lt;/p&gt;

&lt;p&gt;Clear organization: Document control, versioning, and role-based permissions.&lt;/p&gt;

&lt;p&gt;Integrated AI assistant: Answers questions strictly based on the documents each user is allowed to view.&lt;/p&gt;

&lt;p&gt;Easy deployment: Super fast setup using Docker.&lt;/p&gt;

&lt;p&gt;If you are looking for a solid open-source alternative for your company’s internal documentation, I highly recommend checking it out on GitHub:&lt;br&gt;
🔗 &lt;a href="https://github.com/spiderjad/SpiderFolio" rel="noopener noreferrer"&gt;https://github.com/spiderjad/SpiderFolio&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>docker</category>
      <category>opensource</category>
      <category>software</category>
    </item>
  </channel>
</rss>
