Repository navigation
refactor: comprehensive source code reorganization for guessability #25781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
116 commits
Select commit
Hold shift + click to select a range
e84b4b4
refactor: rename src/bun.js/ to src/buntime/
e0ae768
refactor: create src/transpiler/ for JS/TS transpiler
5fea6eb
refactor: create src/test_runner/ for bun:test
781a3f9
refactor: move console files to api/console/
7227eef
refactor: move inspector files to api/inspector/
0620ff5
refactor: move error files to api/error/
e306d9d
refactor: move cookie files to api/cookie/
bfc99fa
refactor: reorganize api/ subdirectories (step 4.5-4.14)
d8b43c2
refactor: move v8 compat to compat/v8/
ced6ba6
refactor: move webcrypto to webcore/webcrypto/
772533a
refactor: move node bindings to buntime/node/
c4205a4
refactor: move libuv and webcore to dedicated directories
b9af431
refactor: move napi and module files to dedicated directories
73abb99
refactor: move process files to api/process/
0197c54
refactor: move Bun core files to core/
57a92ae
refactor: move fetch-related files to web/fetch/
a8a15fe
refactor: move URL-related files to web/url/
f0db7ce
refactor: move blob-related files to web/blob/
f066c98
refactor: move encoding-related files to web/encoding/
f13396c
refactor: move compression files to web/compression/
cf86901
refactor: move event-related files to web/events/
c9bb8b1
refactor: move stream-related files to web/streams/
c67d618
refactor: move Response/Request/Body files to web/http/
5a33924
Move blob files to web/blob/
52407bc
Move Performance files to web/performance/
9ffbb5c
Move WebSocket files to web/websocket/
8696c55
Move S3 Zig files to api/s3/
313f714
Move Worker files to web/workers/
2194724
Move MessageChannel files to web/messaging/
f040a82
Move MIME files to web/mime/
e3cb63e
Move serialization files to web/serialization/
16e9854
Move HTTP parser files to web/http/
02a022f
Move CookieMap.zig to api/cookie/
834605e
Move FileReader.zig to web/blob/
018f9e0
Move AbortController/AbortSignal C++ files to web/events/
e993178
Move QueuingStrategy files to web/streams/
8c2ce7f
Move error-related files to api/error/
ff72b95
Move Node-related C++ files to node/
70daa60
Move JSNodePerformanceHooksHistogram files to node/
a02748e
Move Buffer-related C++ files to node/
742b0f0
Move Path files to node/
8fa79c2
Move X509Certificate files to node/crypto_bindings/
49fd4dc
Move ncrypto files to node/crypto_bindings/
f66d82a
Move debugger/profiler files to api/inspector/
64c75fe
Move Cookie C++ files to api/cookie/
0f2441f
Move CallSite/StackTrace files to api/error/
dc1bf7b
Move AsyncContextFrame to node/
ef9f4af
Move JSSocketAddressDTO to api/server/
8cf859f
Move ImportMetaObject to module/
31cf2e9
Move Serialization.cpp to web/serialization/
8e8d854
Move CodeCoverage.cpp to api/test/
5c76c0f
Move OsBinding.cpp to node/
9a1791d
Move DOMException to api/error/
f2ce862
Move JSNextTickQueue to node/
e137723
Move JSEnvironmentVariableMap to api/process/
c412073
Move BunProcessReportObjectWindows to api/process/
24b38f1
Move Crypto.zig to webcore/webcrypto/
ae4dd4e
Move prompt.zig to api/console/
2dfbeec
Move CPUFeatures to core/
289c26a
Move RegularExpression to core/
877c361
Move DoubleFormatter to core/
0efcfaa
Move CachedBytecode to module/
07d6e07
Move simdutf files to core/
25be9ea
Move highway_strings to core/
ff2ba59
Move stripANSI to api/console/
655038a
Move JSCTaskScheduler to core/
872a5a3
chore: move ZigException and ZigStackFrame files to api/error/
03c3949
chore: move uuid.zig to webcore/webcrypto/
2ad1284
chore: move Debugger.zig to api/inspector/
1f47e3f
chore: move ProcessAutoKiller.zig to api/process/
e4a2d75
chore: move web_worker.zig to web/workers/
cef59de
chore: move ipc.zig to api/ipc/
7952647
chore: move BuildMessage.zig to api/error/
eede4ef
chore: move ResolveMessage.zig to api/error/
790887e
chore: move HardcodedModule.zig to module/
601e9db
chore: move Counters.zig to core/
c88d0d2
chore: move config.zig to core/
793682b
chore: move ZigException.cpp to api/error/
5bdb625
chore: move spawn.cpp to api/bun/
ef906c3
chore: move linux_perf_tracing.cpp to api/inspector/
695db55
chore: move coroutine.cpp to core/
0d11a4e
chore: move JSBakeResponse.cpp to bake/
fca5b78
chore: move BakeAdditionsToGlobalObject files to bake/
0847104
chore: move EventLoopTask files to core/
d4adbae
chore: move ZigSourceProvider files to module/
e4a34a4
chore: move Sink.h and StreamGlobals.h to web/streams/
158d805
chore: move ares_build.h to api/bun/
316087d
chore: move dh-primes.h to node/crypto_bindings/
7ceb58f
chore: move uv-posix-polyfills.h to compat/libuv/
6f4fcfa
chore: move generated_perf_trace_events.h to api/inspector/
2936b29
chore: move CachedScript.h to module/
53b587a
chore: move memory allocator headers to core/
2a40325
chore: move string utility headers to core/
6c5f834
chore: move string utility headers to src/string/
a7797a7
chore: move debug-helpers.h to api/inspector/
b9a2852
chore: move Algo/Tuple.h to core/Algo/
9419868
refactor: move ModuleLoader, AsyncModule, RuntimeTranspilerStore/Cach…
fd84244
refactor: move SavedSourceMap.zig to module/
9dab6a8
refactor: move Strong.zig, Weak.zig, DeprecatedStrong.zig to bindings/
44727cb
refactor: move event_loop.zig and event_loop/ to core/
456176d
refactor: move jsc/ files to bindings/ and remove jsc/ directory
6e5ef1b
refactor: move rare_data.zig and hot_reloader.zig to core/
e7c861c
refactor: move bindgen files and JSC C API to bindings/
1fa3829
refactor: move VirtualMachine and virtual_machine_exports to core/
00ba826
refactor: move webcrypto from webcore/ to web/
c7ed08f
refactor: move string utility files to src/string/
fedccb4
refactor: move HTMLEntryPoint.cpp to src/bake/
d07c1bb
refactor: dissolve bindings/ into jsc/ directory with subdirectories
ab2f5a2
refactor: dissolve webcore/ directory into jsc/interop/
b40b442
refactor: organize node/ C++ files into domain subdirectories
9e71f44
refactor: move event_loop/ from core/ to buntime/ root
fd57125
refactor: complete core/ dissolution and fix documentation paths
3a1be14
refactor: rename transpiler files with js_ prefix for consistency
e48a998
docs: update CLAUDE.md with new source organization
e6db500
[autofix.ci] apply automated fixes
autofix-ci[bot] c2403a8
fix: correct JSONLineBuffer import path after rebase
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add languages to new fenced code blocks to satisfy markdownlint
markdownlint is flagging several of the newly-added fenced blocks (directory tree and command snippets) for missing languages (MD040). To keep docs lint‑clean and improve rendering, consider:
```text(or```plaintext) for the directory tree under “Top-Level Source Organization”.```bashfor shell command examples (e.g., thebun bdverification snippet).```zig) if you later add Zig examples to these sections.This is purely documentation hygiene; structure and content look good.
Also applies to: 220-229
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
164-164: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
176-176: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
185-185: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
196-196: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
208-208: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents