PhysicsWebOS
A Physics-Centered Web Operating Environment
一个以物理为核心的 Web 操作环境
✨ Introduction | 项目简介
PhysicsWebOS is an experimental physics-oriented web environment designed to turn the browser into a compact command-style workspace for exploring physics knowledge, formulas, constants, scientific stories, and calculations.
PhysicsWebOS 是一个面向物理学的实验性 Web 环境,目标是把浏览器变成一个轻量但高效的命令式工作台,用来探索物理知识、公式、常量、科学史故事与计算过程。
It is not just a static reference page.
It behaves more like a physics terminal: fast, focused, interactive, and structured around scientific thinking.
它不只是一个静态资料页,
更像一个 物理终端系统:快速、聚焦、可交互,并且围绕科学思维来组织内容。
🌌 Core Vision | 核心愿景
Physics is not only about numbers.
Physics is about how the universe works.
物理不仅仅是数字。
物理是对宇宙运行方式的理解。
This project tries to make physics feel more alive by combining:
- command-driven interaction
- formula lookup and calculation
- physical constants and unit conversion
- scientist indexing
- historical scientific stories
- browser-based accessibility
这个项目尝试把物理变得更“可操作”,通过组合以下能力:
- 命令式交互
- 公式查询与计算
- 物理常量与单位换算
- 科学家索引
- 科学史故事阅读
- 浏览器直接可用
⚛️ What Makes It Special | 它的特别之处
PhysicsWebOS is built like a terminal, but its purpose is educational and scientific.
PhysicsWebOS 采用终端风格,但它的目标是教育性和科学性。
Instead of browsing scattered pages, users can interact with physics content through concise commands such as:
helpformulasformula <id>calc <expr>scientist <name>storiesconstantsunitssearchrandom
用户不需要在多个页面之间来回跳转,而是通过简洁命令直接交互,例如:
helpformulasformula <id>calc <expr>scientist <name>storiesconstantsunitssearchrandom
That makes the experience feel closer to a lightweight scientific shell than a traditional website.
这让整个体验更像一个轻量级科学 Shell,而不是传统网页。
🧠 Main Features | 主要功能
1. Physics Formula System | 物理公式系统
The project includes a structured formula database that can list categories, show individual formula details, search by topic, and perform calculations with formula-specific variables.
项目内置了结构化的公式库,可以列出分类、查看单个公式详情、按主题搜索,并基于变量进行公式计算。
You can use it to explore topics like mechanics, thermodynamics, electromagnetism, and more.
你可以用它探索力学、热学、电磁学等多个方向。
2. Command-Based Calculation | 命令式计算
PhysicsWebOS supports direct expression evaluation.
PhysicsWebOS 支持直接表达式计算。
This means it can act as a fast physics calculator for both general math and physics-oriented expressions.
也就是说,它既能做普通数学表达式计算,也能作为物理场景下的快速计算器。
Examples of the intended workflow include:
- pure mathematical expressions
- formula parameter evaluation
- quick scientific estimation
- reusable calculation commands
它的典型使用方式包括:
- 纯数学表达式
- 公式参数代入
- 快速科学估算
- 可重复调用的计算命令
3. Physical Constants | 物理常量库
A built-in constants module provides commonly used physical constants such as:
- speed of light
- gravitational constant
- Planck constant
- elementary charge
- electron, proton, and neutron mass
- Avogadro constant
- Boltzmann constant
- vacuum permittivity and permeability
内置常量模块提供常见物理常量,例如:
- 光速
- 引力常量
- 普朗克常量
- 元电荷
- 电子、质子、中子质量
- 阿伏伽德罗常数
- 玻尔兹曼常数
- 真空介电常数与磁导率
This makes the project useful as a reference layer while keeping the interaction compact and terminal-like.
这让项目既能作为参考工具,又保持了紧凑的终端式交互体验。
4. Scientists Index | 科学家索引
The project also includes scientist-based navigation.
项目还支持按科学家维度检索。
That means users can search by name and discover related formulas or stories connected to a scientist’s work.
也就是说,用户可以通过科学家名字来查找相关公式或科学史内容。
This design links scientific ideas to the people behind them, which makes the experience more contextual and memorable.
这种设计把科学知识和提出这些知识的人联系起来,让内容更有上下文,也更容易记住。
5. Scientific Stories | 科学史故事
PhysicsWebOS includes a stories section that presents historical and conceptual narratives around physics and science.
PhysicsWebOS 还包含故事模块,用来展示物理与科学相关的历史叙述和概念故事。
These stories help transform the project from a plain formula database into a richer learning environment.
这些故事让项目不只是“公式库”,而成为更完整的学习环境。
It is a place where equations, history, and scientific imagination coexist.
它让公式、历史和科学想象力同时存在于一个空间里。
6. Unit Conversion | 单位换算
The system also supports unit conversion commands.
系统还支持单位换算命令。
That makes it more practical for physics study, since unit consistency is one of the most important parts of real-world calculation.
这让它在物理学习中更实用,因为单位一致性是实际计算里非常重要的一环。
🖥️ Interface Style | 界面风格
PhysicsWebOS uses a terminal-inspired interface instead of a conventional app layout.
PhysicsWebOS 采用终端风格界面,而不是传统应用布局。
That style gives it a few strengths:
- compact visual structure
- fast command discovery
- minimal distraction
- science-lab atmosphere
- strong identity
这种风格带来几个优势:
- 视觉结构紧凑
- 命令发现效率高
- 干扰少
- 更像科学实验室
- 项目辨识度强
The result is a UI that feels like a physics console rather than a normal web page.
最终呈现的是一种更像 物理控制台 的界面,而不是普通网页。
🧩 Repository Structure | 仓库结构
The current repository is organized around a simple front-end architecture:
physicswebos/
├── app.js
├── constants.js
├── formulas.js
├── stories.js
├── index.html
├── style.css
├── README.md
└── LICENSE

Log in or sign up for Devpost to join the conversation.