I built a lightweight language to fix what frustrates me about JavaScript
说明与用途
Oriented‑Direct 是一种轻量级语言,编译为标准 JavaScript,消除 JavaScript 常见问题和 DOM 代码冗余,提供零配置工具链,实现即时开发。
问题
Frontend developers face a trade‑off: vanilla JavaScript is verbose and error‑prone, while TypeScript adds heavy tooling and still requires boilerplate for DOM manipulation.
结果
The language reduces token usage by ~33% for AI agents, eliminates variable confusion, enforces strict equality, and removes the need for external tooling, enabling instant development with a lightweight, zero‑config setup.
工作流
- 1. Install Oriented‑Direct via npx or npm global install.
- 2. Create .osp files using the concise syntax (e.g., val, @find, @on).
- 3. Run the dev server with
npx @xvdxlinux/oriented-direct devfor live reload. - 4. Build production bundles with the bundled compiler; no external dependencies are needed.
证据
It comes with its own bundler, dev server with live reload, and Base64‑VLQ source map generator in ~5K lines of pure JavaScript.
Because the syntax is so concise, it also cuts down token usage by ~33% when feeding code to AI agents and LLMs.
- 记录日期: 2026-09-08T11:01:15.940Z