惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
S
SegmentFault 最新的问题
Jina AI
Jina AI
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
B
Blog
博客园 - 【当耐特】
博客园 - Franky
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Engineering at Meta
Engineering at Meta

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Query Everything with SQL: The Ultimate Compliance and Se...
Mukhtar · 2026-05-14 · via DEV Community

Mukhtar

Three practical guides to turn your files, emails, and project data into queryable SQLite databases


If you've ever struggled with compliance audits (HIPAA, SOX, GDPR, SOC 2), security investigations, or e-discovery requests, you know the pain:

  • Data is everywhere — Files on disks, emails in inboxes, issues in GitHub/Jira
  • No unified view — Each system has its own limited search interface
  • Manual exports — Hours spent copying data into spreadsheets for auditors
  • No audit trail — Can't prove what data existed at a specific time
  • Point-in-time only — No historical tracking of changes

What if you could turn all of this into queryable SQL databases and ask questions like:

-- Find all PDFs modified in the last 30 days
SELECT * FROM files WHERE extension = 'pdf' AND modified > date('now', '-30 days');

-- Show emails from vendors about invoices
SELECT * FROM emails WHERE sender LIKE '%vendor%' AND subject LIKE '%invoice%';

-- Track all code changes for SOC 2 audit
SELECT * FROM commits WHERE date > '2024-01-01' ORDER BY date DESC;

Enter fullscreen mode Exit fullscreen mode

That's what surveilr enables.


What is surveilr?

surveilr is an edge-based, SQL-first surveillance platform that turns your files, emails, and external APIs into Resource Surveillance State Databases (RSSDs)—SQLite databases you can query with standard SQL.

Key Features

  • 📂 File system scanning — Turn directories into queryable metadata
  • 📧 Email ingestion — Connect to Gmail/Outlook via IMAP
  • 🔌 Singer tap integration — Extract data from 600+ sources (GitHub, Jira, Salesforce, etc.)
  • 🔍 Standard SQL — No custom query language to learn
  • 🔒 Edge-based — All data stays on your machine (no cloud required)
  • ⚖️ Compliance-ready — Perfect for HIPAA, SOX, GDPR, SOC 2

Why SQLite?

surveilr uses SQLite—the world's most deployed database:

  • Zero dependencies — No servers, no installation, no configuration
  • One file — Your entire database is a single .db file
  • Portable — Works everywhere (macOS, Linux, Windows, mobile)
  • No vendor lock-in — Standard SQLite works with 1000s of tools

Three Practical Guides

Guide 1: Audit Sensitive Files

Read the full guide →

Learn how to scan your file system for sensitive files and query them with SQL.

Perfect for: Security audits, GDPR/HIPAA compliance, incident response


Guide 2: Email Compliance Tracking

Read the full guide →

Learn how to ingest Gmail/Outlook emails via IMAP and query them for compliance reporting.

Perfect for: HIPAA compliance, SOX compliance, e-discovery, communication audits


Guide 3: GitHub/GitLab/Jira Tracking

Read the full guide →

Learn how to use Singer taps to extract project data and query it for SOC 2 and change management audits.

Perfect for: SOC 2 audits, DevOps metrics, security tracking, audit trails


Why surveilr vs. Other Tools?

vs. Commercial Compliance Platforms (Vanta, Drata, Secureframe)

Feature surveilr Commercial Tools
Cost Free, open source $10,000-$50,000/year
Data location Your machine (edge) Their cloud
Query language Standard SQL Proprietary UIs
Extensibility Unlimited (SQLite + Singer) Limited integrations
Vendor lock-in None (standard SQLite) Complete lock-in

vs. Custom Scripts

Feature surveilr Custom Scripts
Setup Minutes Days/weeks
Maintenance Automatic Constant fixes
Audit trail Built-in You build it
Query language SQL grep/awk/jq
Historical tracking Automatic You build it

Installation

macOS / Linux

brew tap surveilr/tap && brew install surveilr

Enter fullscreen mode Exit fullscreen mode

Verify Installation

surveilr --version

Enter fullscreen mode Exit fullscreen mode


Get Started

Pick one of the three guides above and start querying your data with SQL.

Each guide is self-contained and works independently—start with whichever solves your biggest problem.


Key Takeaways

Turn files, emails, and APIs into queryable SQL databases
Perfect for HIPAA, SOX, GDPR, SOC 2 compliance
Standard SQLite = no vendor lock-in
Edge-based = your data never leaves your machine