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

推荐订阅源

博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
月光博客
月光博客
AI
AI
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
CXSECURITY Database RSS Feed - CXSecurity.com
WordPress大学
WordPress大学
GbyAI
GbyAI
L
Lohrmann on Cybersecurity
O
OpenAI News
Schneier on Security
Schneier on Security
P
Palo Alto Networks Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
W
WeLiveSecurity
L
LINUX DO - 最新话题
人人都是产品经理
人人都是产品经理
S
Security Affairs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
G
GRAHAM CLULEY
N
Netflix TechBlog - Medium
TaoSecurity Blog
TaoSecurity Blog
C
Check Point Blog
Scott Helme
Scott Helme
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Vercel News
Vercel News
The Hacker News
The Hacker News
Y
Y Combinator Blog
Latest news
Latest news
SecWiki News
SecWiki News
Hugging Face - Blog
Hugging Face - Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Webroot Blog
Webroot Blog
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cisco Blogs
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
L
LINUX DO - 热门话题

Hacker News

Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line Building a Z-Machine in the worst possible language High-Level Rust: Getting 80% of the Benefits with 20% of the Pain GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The air throughout our homes is infused with microplastics. But there are things you can do to breathe less of them The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong Artemis II crew splashes down near San Diego after historic moon mission We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Cooperative Vectors Introduction | Evolve Keeping a Postgres queue healthy — PlanetScale Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? The Zettelkasten Method in Obsidian: A Practical Setup Guide Artemis II Is Competency Porn and We Are Starving For It WeakC4 Flight Viz — Cockpit View A Mexican surveillance giant you’ve never heard of is now watching the U.S. border Surelock: Deadlock-Free Mutexes for Rust RISC-V 101 – what is it and what does it mean for Canonical? | Ubuntu The Problem That Built an Industry How Much Linear Memory Access Is Enough? | Solidean Investigating Split Locks on x86-64 Simplest hash functions Sybilproof reputation mechanisms (2005) [pdf] What is a property? How Complex is my Code? Static code analysis in Kotlin — tools overview Toffoli gates are all you need PGLite evangelism dcmake: a new CMake debugger UI Clojure on Fennel part one: Persistent Data Structures Fragments: April 2 Python Release Python install manager 26.1 The Life and Death of the Book Review - Liberties Introducing Database Traffic Control — PlanetScale Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Building slogbox Apple Silicon and Virtual Machines: Beating the 2 VM Limit Who was “Not Even Wrong” first? Pokemon Evolution Vs Darwinian Evolution The APL Programming Language Source Code
GitHub - DDecoene/WebBaseIII: dBASE III is back. In your browser. USE customers like it's 1984.
ddecoene · 2026-06-24 · via Hacker News

WebBase-III

dBASE III is back. In your browser. USE customers like it's 1984.

WebBase-III demo — USE, LIST, SEEK, BROWSE

Remember the dot prompt? Before SQL won, before ORMs, before anyone said "full-stack" — there was dBASE III. You typed USE customers, then LIST, and your data was just there. WebBase-III brings that whole world back: the terminal, the language, BROWSE, @ SAY GET forms, .prg programs, indexes, reports — rebuilt from scratch as a modern web app with its own interpreter in TypeScript, backed by Node.js, WebSockets, and SQLite.

Try it in one click — no install:

Open in GitHub Codespaces

The Codespace installs dependencies and starts the dev server automatically. Open the forwarded port 5173 and you're at the dot prompt.


Screenshots

Terminal REPL

The command interface — type W3Script and see results instantly.

Terminal REPL


LIST — tabular record display

LIST prints all records in active index order. The status bar shows the active database and table.

LIST output


Indexing & SEEK

INDEX ON name TO BYNAME creates a SQLite index and activates it — subsequent LIST output is sorted alphabetically. SEEK "Delta NV" jumps the record pointer to the first match in O(log n).

Index and SEEK


BROWSE — editable grid

BROWSE opens a spreadsheet-style grid. Records are shown in active index order. Tab/Enter to edit a cell, Ctrl+N for a new row, Delete to remove a row, Esc to return to the terminal.

BROWSE grid


Program editor

EDIT <name> opens the built-in .prg source editor. Programs support the full W3Script language: DO CASE/ENDCASE, DO WHILE/ENDDO, IF/ENDIF, form layouts, and all data commands. Ctrl+S saves, Esc cancels.

Program editor


Form engine — @ SAY GET / READ

@ row,col SAY "label" GET variable lays out character-cell form fields. READ renders them as a live form and waits for the user to fill in values and submit.

Form engine


The Assistant — sidebar

The permanent left sidebar with category pickers and action buttons.

The Assistant sidebar


The Assistant — New table wizard

Wizards open in the main area with a live W3Script preview.

New table wizard


Features

Feature Details
W3Script interpreter dBASE III command dialect: navigation, filters, variables, loops, conditionals, forms, programs
BROWSE grid Inline cell editing, keyboard nav, index-ordered display
Form engine @ ROW,COL SAY … GET character-cell layout with READ
Indexing INDEX ON, SEEK, FIND — active index controls all record order
DO CASE Multi-branch conditional, OTHERWISE fallback
Built-in functions EOF(), BOF(), FOUND(), RECNO(), SUBSTR(), STR(), AT(), CTOD(), DTOC() and more
Program files Save, edit, and run .prg scripts with DO / EDIT
The Assistant Permanent left sidebar — open databases/tables, browse, filter, index, search, design reports, run programs without typing
Multi-user Each WebSocket connection gets its own isolated interpreter session
Persistent storage better-sqlite3 with WAL mode — databases survive server restart

The Assistant

The sidebar on the left drives everything without typing: open or create databases and tables, browse and filter data, build indexes, search, design and run reports, and run programs. Every click generates a real W3Script command that echoes into the terminal — watch it to learn the language. Wizards (New table, Filter, report designer, …) open in the main area and show a live preview of the command they will run.


Quick start

npm install
npm run dev        # http://localhost:5173

Production:

npm run serve      # builds, then serves everything on http://localhost:3000

LAN / Tailscale: the server binds to 0.0.0.0, so http://<tailscale-ip>:3000 works out of the box.


Example session

USE DATABASE mydb
CREATE TABLE customers (name CHAR(40), phone CHAR(20), country CHAR(30))
USE customers

APPEND RECORD
REPLACE name WITH "Acme Corp", phone WITH "555-1234", country WITH "BE"
APPEND RECORD
REPLACE name WITH "Zeta Ltd", phone WITH "555-5678", country WITH "NL"

INDEX ON name TO BYNAME
LIST                        * sorted A→Z

SEEK "Zeta Ltd"             * jump to record instantly
BROWSE                      * open editable grid
SET FILTER TO country == "BE"
LIST                        * filtered view
SET FILTER TO               * clear filter

W3Script command reference

Work areas

WebBase-III supports unlimited work areas — each independently holding a table, record pointer, filter, and index. Link areas by key field using SET RELATION TO for relational data access. Cross-area field access uses alias.field dot notation.

Note: dBASE III supported a maximum of 10 work areas (DOS file handle limit). WebBase-III has no such limit. dBASE III used alias->field arrow syntax; WebBase-III uses modern alias.field dot notation.

Command What it does
SELECT <alias> Activate (or create) a work area by name
USE <table> [ALIAS <name>] Open table in active area; optional alias override
SET RELATION TO <expr> INTO <alias> Link active area to another; auto-seeks on every navigation
SET RELATION TO Clear relation on active area
LIST [col, alias.col, ...] List records; optional column list with cross-area fields
LIST AREAS Show all open work areas, pointers, indexes, and relations
CLOSE Close active area's table
CLOSE ALL Close all work areas, reset to single empty area 1

Cross-area field access: use alias.field dot notation anywhere an expression is accepted — SET FILTER TO, IF, REPLACE, LIST, INDEX ON.

Data & navigation

Command What it does
USE <table> Select a table; restores any saved active index
USE DATABASE <name> Open a named SQLite database
LIST Print records in active index order (up to 500)
LIST STRUCTURE Show column schema
LIST TABLES Show all tables with record counts
LIST DATABASES Show all databases on disk (alias: LIST DBS)
BROWSE Open the editable grid
CLEAR Clear terminal output
CREATE TABLE <n> (col TYPE, ...) Create a table
DROP TABLE <name> Delete a table
APPEND RECORD Insert a blank row
DELETE / DELETE ALL Delete current or all records
PACK VACUUM the SQLite file
GO TOP / GO BOTTOM / GO <n> Move record pointer
SKIP <n> Move pointer forward/back
REPLACE <field> WITH <val>, ... Update field(s) on current row
REPLACE ALL <field> WITH <val>, ... Update all (filtered) rows
SET FILTER TO <expr> Set a WHERE clause; empty clears it

Indexing & search

Command What it does
INDEX ON <expr> TO <tag> Create index on expression; sets it active immediately
SET INDEX TO <tag> Activate a previously created index
SET INDEX TO Clear active index — restores natural insert order
REINDEX Rebuild SQLite indexes for current table
LIST INDEXES Print all indexes for current table with * active marker
SEEK <expr> Position record pointer at first index match
FIND <string> Alias for SEEK (unquoted string — dBASE III legacy form)

Reports

Command What it does
CREATE REPORT <name> Create a new report definition (opens JSON editor)
MODIFY REPORT <name> Edit an existing report definition
REPORT FORM <name> Run report — ASCII to terminal + HTML preview panel
LIST REPORTS List all saved report definitions
DELETE REPORT <name> Delete a report definition

Programs

Command What it does
DO <name> Run a saved .prg program
EDIT <name> Open .prg source editor
LIST PROGRAMS Show all saved programs

Demo programs live in demos/*.prg and are the single source of truth: they are seeded into the program store on every server start, overwriting any store copy. Try DO inventory for a full interactive showcase (work areas, relations, indexes, forms).

Variables & I/O

Command What it does
STORE <val> TO <var> Assign a variable
INPUT "prompt" TO <var> Collect keyboard input
@ r,c SAY "text" GET <var> Define a form field
READ Display the form and wait for submit

Control flow

Command What it does
IF <cond> … ENDIF Conditional block
DO WHILE <cond> … ENDDO Loop
DO CASE … ENDCASE Multi-branch conditional (CASE, OTHERWISE)
HELP Print command reference
QUIT Exit

Built-in functions

Functions work anywhere an expression is accepted — IF, DO WHILE, STORE, REPLACE, INDEX ON, SET FILTER TO, etc.

Function Returns
EOF() True if record pointer is past last record
BOF() True if record pointer is before first record
FOUND() True if last SEEK / FIND matched
RECNO() Current record number
RECCOUNT() Total records in current table
UPPER(str) Uppercase
LOWER(str) Lowercase
TRIM(str) Strip leading and trailing spaces
LTRIM(str) Strip leading spaces only
SUBSTR(str, start, len) Substring — 1-based; len optional (to end)
LEN(str) String length
AT(needle, haystack) 1-based position; 0 if not found (case-sensitive)
STR(num, len, dec) Number to right-justified string; default len=10, dec=0
VAL(str) String to number; non-numeric → 0
INT(n) Truncate toward zero
ABS(n) Absolute value
SPACE(n) String of n spaces
REPLICATE(str, n) Repeat string n times
DATE() Today as MM/DD/YY
DTOC(date) Date to display string MM/DD/YY
CTOD(str) Display string MM/DD/YY to ISO date

Boolean literals

W3Script supports both styles:

Syntax Value
TRUE / FALSE Boolean true/false
.T. / .TRUE. Boolean true (dBASE III style)
.F. / .FALSE. Boolean false (dBASE III style)

Boolean values display as .T. / .F. in output to match dBASE conventions.

Logical operators are accepted in both styles too: NOT / .NOT., AND / .AND., OR / .OR. (e.g. DO WHILE .NOT. EOF()).


BROWSE grid keyboard shortcuts

Key Action
Arrow keys Navigate cells
Enter / F2 Edit selected cell
Tab / Shift+Tab Move right / left
Ctrl+N New row
Delete Delete current row
F5 Refresh from DB
Esc Exit grid, return to terminal

Architecture

server/
  index.ts              Node.js HTTP + WebSocket server (port 3000)
  Session.ts            Per-connection session: parses commands, drives Executor
  SessionManager.ts     Tracks all active sessions
  ServerDatabaseBridge.ts  IDatabaseBridge impl wrapping better-sqlite3
  ProgramStore.ts       .prg program storage in data/system.sqlite3
  IndexStore.ts         Index metadata + active index in data/system.sqlite3

src/
  interpreter/
    Lexer.ts            Tokenises W3Script input (case-insensitive)
    Parser.ts           Recursive-descent AST builder
    Executor.ts         Async AST runner; manages db/table/filter/vars/rowPtr/activeIndex
    Builtins.ts         Stateless built-in function implementations

  terminal/
    Terminal.ts         REPL UI — command history, multi-line block accumulation

  ui/
    Grid.ts             BROWSE spreadsheet — inline cell editing, keyboard nav
    FormLayout.ts       @ SAY GET form engine — character-cell coordinates
    ProgramEditor.ts    .prg source editor UI

  ws/
    WsClient.ts         Browser WebSocket client

Running tests

npm test                    # unit + integration tests (Vitest)
npx playwright test         # end-to-end browser tests (requires dev server running)

The Playwright suite (tests/integration.spec.ts, tests/crm.spec.ts) drives a real browser against the running app and covers navigation, filters, indexing, programs, forms, and BROWSE.


License

AGPL-3.0 — see LICENSE.md.

Why AGPL? WebBase-III is a toy, and the license keeps it that way: anyone can use it, fork it, and learn from it, but nobody can take it closed and sell it as a hosted service without giving their changes back. If you want to run it, hack it, or ship features from your dBASE memories — that's exactly what it's for.