r/localfirst

Should there be a separate term for "Local-Only"?

consider how something like simple a text editor works; user inputs text, then the user saves the file to the desktop.

the text editor is a simple example. "local" is only relevent if there is a concept of a "remote".

i am working on a messaging app and ive been promoting it as "local-first", but i dont think its the correct term because it seems to confuse users. i think i need to emphesise something along the lines of "local-only". my app is only using browser storage and avoids api's and databases for messaging by using webrtc.

calling it "local-first" sounds like it implied "remote-second", but there is no remote in the traditional sense.

edit: feel free to reach out for clarity. my app is further described on the project sub here: https://www.reddit.com/r/positive_intentions/comments/1tq1u62/introducing_enkrypted_chat

reddit.com
u/Accurate-Screen8774 — 20 hours ago
▲ 15 r/localfirst+2 crossposts

Building a new study/research app— looking for feedback

For the past few weeks I’ve been building an app that is mainly for university students or like researchers oriented. Its a buy you own key (BYOK) Model for now, and what it does it like let’s say you have notes or pdfs that you’d want to organize or like just store and have an AI model give feedback answer questions or build on it— basically like Claude + Obsidian Setups but like this makes it easier and I’m making the friction less and less and trying to make it cheap hopefully :D
The pricing on the web page is like just dummy for now it’s free but in the future I’m planning a ton of features and a dedicated research mode

I’m just having one issue I just have no feedback so I’m kind of going in blind T_T I hope I didn’t violate any rules here

Anyhow, this is the link it’s only for MacOS only and can run from macOS 26+ I recently got it signed and notarized as well plus it’s open source for now

🌐 Here is the website: https://www.zirn.app/
I would love to hear any feedback :D (preferably in the discord server which is in the footnote of the website)

I know this is just another wrapper but I really want to make this useful and cheap for people :D

Also some screenshots these are outdated to an extent because I’ve been tweaking with the UI constantly rip

u/SKMPE15 — 6 days ago
▲ 1 r/localfirst+2 crossposts

LightBase: Lightweight API & Database Desktop Client

🚀 LightBase

Ultra-performance, bare-metal local development runtime bridge and persistence engine built for high-compute applications.

LightBase decouples heavy disk and outbound network I/O into a standalone, multi-threaded C background daemon, communicating asynchronously with an API gateway over high-speed Linux Unix Domain Sockets (UDS).

🏗️ Architecture Layout

LightBase eliminates high-level framework overhead, garbage collection cycles, and process-blocking runtime constraints by decoupling tasks into independent layer boundaries.

graph TD
    UI[HTML5 Control Center UI] <--> PY[Python Gateway Bridge Server]
    PY -- "Binary TLV Frame Stream (/tmp/lightbase.sock)" --> CORE[C-CORE ASYNC THREAD POOL]
    
    subgraph "C-CORE (libcore.so)"
    CORE --> R1[Arena-Powered SQL Engine]
    CORE --> R2[Stack-Isolated OpenSSL TLS]
    CORE --> R3[Kernel /proc Ring Log Storage]
    CORE --> R4[Database Catalog Scanner]
    end

Layer Responsibilities

  • Frontend UI Layer: A lightweight development client executing async network operations back and forth.
  • API Gateway Layer: A zero-dependency Python routing engine acting as an IPC proxy gateway.
  • Native Systems Core: A high-speed, bare-metal C shared engine processing dynamic allocations, filesystem transactions, and socket forging loops on detached POSIX background threads.

🚀 Core Studio Module Suite

🌐 Module 1: Bare-Metal Environment Manager

Tracks application environments (Development, Staging, and Production) dynamically inside isolated runtime boundaries.

  • Atomic Remapping Swaps: Eliminates sluggish filesystem configuration lookups by pre-allocating an EnvironmentBlock structure directly within a dedicated MemoryArena. Context switches occur in under 1μs via thread-safe atomic pointer reassignments.
  • Fallback Safety Paths: System state transitions are fully guarded against uninitialized pointer exceptions, ensuring backup file parameters handle initial transaction states safely.

🧪 Module 2: Cryptographic API Testing Studio

Provides bare-metal HTTP engine request assembly and transaction benchmarking.

  • Wire Packet Serialization: Leverages stack-allocated sequence spaces to assemble raw wire payloads (GET, POST, PUT, DELETE) with exact specification alignment.
  • Memory Security: Replaces vulnerable variable concatenation with explicit length-bounded tracking (strncat), preventing string overflows when importing large custom data tokens.

🗄️ Module 3: Log-Structured Database Explorer

Powers interactive sidebar schema catalog visualizers and data grids.

  • Catalog Data Harvesting: Bypasses table-scanning bottlenecks by executing targeted schema scans directly against the internal engine catalog (sqlite_master).
  • Tele-Profiling: Measures precise VM bytecode query times using high-resolution monotonic hardware timers (clock_gettime).

🗄️ Append-Only Ring Buffer Telemetry Storage

Ensures high-throughput execution tracking without destroying flash storage sectors.

  • Static File Sizing: Pre-allocates a fixed array block file footprint on disk exactly once during system boot, guaranteeing predictable allocation.
  • Wrap-Around Bit Algebra: Sequences incoming snapshots using sliding timestamp indexes. When the tracking pointer reaches limits (1024 slots), it wraps back to slot 0 instantly.

📊 Performance Benchmarks

LightBase delivers sub-millisecond core processing speeds by bypassing the local network routing stack:

  • Local Database Transaction: ~990.20 μs ($< 1\text{ ms}$ bare-metal execution)
  • Total IPC Roundtrip Gateway Latency: ~1.203 ms (Inclusive of Python decoding and HTTP transport)
  • Outbound HTTP Network Socket Request: Variable based on distance, wrapped with microsecond-accurate tracking via CLOCK_MONOTONIC.

🛠️ Compilation & Installation

Prerequisites

Ensure your host machine runs a modern Linux kernel with cmake, gcc, and uv:

sudo apt update &amp;&amp; sudo apt install cmake build-essential

1. Build the Production Core Library

LightBase employs an out-of-source CMake build pipeline with Link-Time Optimizations (-O3 -march=native -flto -s):

cd core
mkdir -p build_release &amp;&amp; cd build_release

# Configure and build the target layout
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target install

Assets generated:

  • Public Header: dist/include/engine.h
  • Shared Binary: dist/lib/libcore.so

2. Boot the Intermediary Python Gateway

cd ../../bridge
/usr/bin/uv run python python_bridge.py

The C-Core instantly carves out a high-speed memory socket at /tmp/lightbase.sock upon initialization.

🧠 Memory Design & Safety Assertions

  • Header Symbol Ordering: Enforces a strict structure order: macro directives first, raw packed structural records second, and export function interfaces last to ensure top-down layout translation.
  • Translation Scope Reductions: Centralizes cross-module variables within a shared master header file to keep dependencies clear.
  • Thread Race Protection: Active server file descriptors pass explicitly into separate heap memory pools (malloc) at worker thread creation, isolating context pointers from stack invalidation faults.

📄 License

Licensed under Apache License 2.0

github.com
u/Ok_Sky3062 — 8 days ago
▲ 3 r/localfirst+1 crossposts

Local-first password management: what is missing from current tools?

I am researching password-management habits among people who prefer local-first or non-cloud software.

The question is not whether everyone needs another password manager. I am trying to understand a narrower case:

- people who dislike vendor-hosted vaults

- people who do not want another account

- people tired of subscriptions

- people who like local files but find current tools too much work

If you use KeePass/KeePassXC, browser storage, Apple/Google Passwords, paper, notes, or something else, I would like to understand what still feels annoying or risky.

I made a short anonymous survey here:

https://tally.so/r/yPgWd0

It takes about 4-6 minutes. Comments here are also useful, especially if your answer is "existing tools are already enough."

u/SavingsArt7949 — 10 days ago