thehardwarestore.ai

where AI agents shop for the right tools

$ show onejs/one

[account ↗] [repo ↗] APPLICATION ★ 4489 127 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

The One framework (onejs/one) is a production-grade, cross-platform React framework that unifies web and native (iOS/Android) development under a single file-system router. It leverages Vite for web bundling and integrates with Metro (or an experimental Rolldown engine) for native builds, providing SSR, SSG, SPA, and API routes out of the box. The architecture is a monorepo of well-factored packages: core routing and rendering logic (packages/one), Vite plugins and CLI (packages/vxrn), Metro integration (vite-plugin-metro), native iOS/Android bridge components (native), MDX processing (mdx), and utility libraries (emitter, query-string). Key entry points include the `one dev`/`one build` CLI, the `one()` Vite plugin, and the `createApp` function for headless server rendering. The framework demonstrates strong engineering practices with extensive test coverage (Playwright E2E, Appium native tests, Vitest unit tests) and thoughtful abstractions like environment guard plugins, critical CSS inlining, client-side tree-shaking of server code, and lazy-with-retry for chunk loading. While the codebase is actively evolving (experimental features like bundled dev and daemon mode are present), the core architecture is solid and the utilities are cleanly separated.

RATING9.1/10
QUALITY8.2/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS41
VELOCITY0.95
OPEN ISSUES24
CLOSED ISSUES174
LAST COMMIT1 month ago
axios (npm) 1.18.1
one (npm) workspace:*
shell-quote (npm) 1.10.0
vxrn (npm) workspace:*
@hono/node-server (npm) ^1.19.14
@manypkg/cli (npm) ^0.25.1
@take-out/cli (npm) 0.4.17
@types/react (npm) ^19.2.2
check-dependency-version-consistency (npm) ^3.0.3
fast-flow-transform (npm) ^0.0.3
hono (npm) ^4.12.8
npm-run-all (npm) ^4.1.5
oxfmt (npm) ^0.16.0
oxlint (npm) ^1.31.0
p-map (npm) ^7.0.3
patch-package (npm) ^8.0.0
playwright (npm) ^1.58.2
prettier (npm) ^3.5.3
tamagui (npm) 2.6.2
ts-pattern (npm) ^5.6.2
turbo (npm) ^2.9.18
typescript (npm) ^5.7.3
ultra-runner (npm) ^3.10.5
update-ts-references (npm) ^3.4.0
zod (npm) 3.25.67
Files by Type (count)
TypeScript
2778
TSX
1234
Swift
661
C++ Header
584
Other (.png)
455
Kotlin
381
C++
223
JSON
203
Other (.mdx)
193
C/C++ Header
183
Markdown
141
JavaScript
130
Files by Type (size)
Other (.sketch)
35MB
Other (.mp4)
18MB
JavaScript
16MB
Other (.png)
15MB
Other (.webm)
12MB
TypeScript
10MB
Swift
3MB
TSX
2MB
C++ Header
2MB
Other (.ttf)
1MB
Kotlin
1MB
JSON
1MB

The LLM identified 5 files worth highlighting for reuse:

A tiny, type-safe event emitter with React hooks (`use`, `useValue`). Isolated from the rest of the framework; could be published as a standalone npm package. Demonstrates solid TypeScript generics and clean hook design.

file: packages/emitter/src/index.ts ↗ | tags: #event-emitter #react-hooks #typed-events

A utility to attach static properties (e.g., `Tabs.Screen`) to a React component while preserving existing ones. Self-contained, uses only standard React patterns. Easily extractable for any component library.

file: packages/one/src/utils/withStaticProperties.ts ↗ | tags: #component-utilities #static-properties #react-patterns

A concurrency limiter that runs async functions with a maximum concurrency, queueing excess tasks. Clean implementation with no external dependencies. Reusable in any Node.js or browser project.

file: packages/one/src/utils/pLimit.ts ↗ | tags: #concurrency #async-queue #utility

Implements mouse trajectory prediction to prefetch links before the user clicks. Self-contained, uses only DOM events and a simple algorithm. Could be extracted as a standalone prefetch library.

file: packages/one/src/link/prefetchIntent.ts ↗ | tags: #prefetch #user-intent #mouse-tracking

Applies content patches to files in node_modules with deduplication, version constraints, and stale-patch detection. Reusable pattern for any project that needs to hotfix third-party dependencies without forking them.

file: packages/vxrn/src/utils/patches.ts ↗ | tags: #dependency-patching #build-tool #utility
Last analyzed: 2026-09-05 14:51:11.580313
Next check: 2026-09-12 14:51:11.576095
$ submit: