* fix(react-doctor): correctly exclude test files from scoring The intended test-file ignore in react-doctor.config.json was never applied: react-doctor's config precedence reads the "reactDoctor" key in package.json (which had no ignore), shadowing the config file. On top of that, react-doctor 0.4.0's ignore.files matcher is broken — any non-empty value collapses scan scope and drops real product files, not just tests. Consolidate to a single canonical doctor.config.json using ignore.overrides (which works correctly): only test files are excluded while all product code is still scored. Remove the shadowing package.json key and the dead react-doctor.config.json. Product-code baseline is 55 (92 errors, 515 warnings, 118 files). * chore(react-doctor): add long-running task tracking for score effort * refactor(react): remove compiler-redundant memoization in verified files Delete manual useMemo/useCallback/memo that the React Compiler already handles, in 7 files validated to be behavior-preserving (factories are pure functions of compiler-trackable reactive inputs). Kept memos whose factories read external mutable DOM/theme state with load-bearing deps (e.g. use-reply-height-estimates metrics). Also hoists a regex and reads a localStorage value once. Note: this is code-quality cleanup; react-doctor's score is error- weighted, so warning cleanup like this does not move the score. See docs/agent-runs/react-doctor-score/progress.md. * fix(react-doctor): adopt React-Compiler lint policy + fix one state-sync bug react-doctor's score is dominated by React-Compiler optimizability diagnostics that flag intentional patterns (the latest-ref idiom) and current compiler limitations (try/finally, throw-in-try/catch the compiler can't lower yet), not bugs. Rewriting that working code to satisfy them would degrade it. - Replace doctor.config.json with a documented doctor.config.jsonc that does not enforce the react-hooks-js (React Compiler) rules or react-compiler-no-manual-memoization. All real code-quality, a11y, and performance rules stay enforced. - Fix one genuine state-sync bug: use-now-seconds refreshed 'now' via a synchronous setState inside an effect (an extra render with a stale value); move it to a render-time prev-prop comparison (React's adjust-during-render pattern), behavior-equivalent. Score 54 (broken config) -> 63. type-check/lint/1051 tests pass; browser smoke confirms timestamps render with no re-render regression. The remaining no-adjust-state-on-prop-change diagnostics are real bugs but entangled with legitimate side effects (navigate/ref-cancel/async) in critical flows; left for careful follow-up. * chore(react-doctor): remove the vanity score badge, keep PR-diff review The single 0-100 react-doctor score mostly reflects React-Compiler optimizability and isn't a meaningful health grade to display (see docs/agent-runs/react-doctor-score). Remove the README badge and its now- dead generation infra (CI write/upload/publish steps + the write-react-doctor-badge.mjs script + doctor:badge package script). Kept: react-doctor's actual value -- the PR step that runs 'yarn doctor --diff <base> --annotations' on pull requests touching React files, surfacing newly-introduced issues inline. Coverage badge untouched. * docs(react-doctor): document why the score is not a target to chase Record the reasoning so future agents/contributors don't re-attempt to grind the react-doctor score: it overwhelmingly reflects React-Compiler optimizability (most 'errors' flag intentional patterns and current compiler limitations, not bugs) and saturates on the fraction of clean files, so ~63 is the honest ceiling and 90 only comes from disabling the linter. - Add a known-surprises entry with the full reasoning + mitigation. - Reframe the AGENTS.md react-doctor verification line: it's a PR-diff reviewer for newly-introduced issues, not an aggregate score to raise.
10 KiB
Telegram group for this repo https://t.me/fivechandev
5chan
5chan is a serverless, adminless, decentralized and open-source imageboard built on the Bitsocial protocol. It features the classic imageboard directory structure, but with a crucial difference: anyone can create and own boards, and multiple boards can compete for each directory slot.
Key Features
Decentralized Board Ownership
Unlike traditional imageboards, 5chan has no global admins or central authority. Anyone can create unlimited boards using 5chan Board Manager. Each board owner runs their own P2P node that users connect to peer-to-peer, giving them complete control over their board's content, moderation, and rules.
Competitive Directory System
5chan maintains the familiar imageboard directory structure (Japanese Culture, Video Games, Interests, Creative, etc.), but introduces competition: multiple boards can compete for each directory slot. For example, there can be unlimited "Business & Finance" boards, but only the highest-voted one appears in the directory on the homepage.
Currently, directory assignments are temporarily handpicked by developers through GitHub pull requests. In the future, each directory will have its own voting page. 5chan Pass holders are expected to participate in directory voting, while final governance mechanics are still being designed to include BSO-holder alignment instead of pass-only final control.
How It Works
-
Current System: Developers manually curate directory assignments by reviewing pull requests to the 5chan directory files.
-
Future System: Each directory will have its own voting page listing the boards competing for that slot. 5chan Pass holders are expected to participate in directory voting, while final governance mechanics are still being designed to include BSO-holder alignment instead of pass-only final control.
-
Accessing Boards: Users can access any board at any time using its address, regardless of directory assignment. Boards can be accessed via the search bar, by subscribing to them (which adds them to the top bar), or by directly navigating to their address.
Future Roadmap
In-App Board Creation
Creating boards directly from the 5chan web app (5chan.app) is planned. This requires connecting via RPC to a bitsocial node—technically already possible, but there's no default connection configured. A default connection would require a public RPC service (similar to what Infura provides for crypto wallets, but for bitsocial nodes). This would allow all users to be connected to a P2P node by default using a free tier subscription in the background, potentially monetized via ads injected in the RPC service-owned boards.
Directory Voting
Directory voting pages are planned for each slot on 5chan. These pages will list the competing boards for that directory, and 5chan Pass holders are expected to participate in voting. Final governance mechanics are still being designed to include BSO-holder alignment instead of pass-only final control.
Downloads
- Web version: https://5chan.app (also available using Brave/IPFS Companion on https://5chan.eth)
- Desktop version (full P2P bitsocial node, seeds automatically): Available for Mac/Windows/Linux, download from the release page
- Mobile version: Available for Android, download from the release page
Creating a Board
In the bitsocial protocol, a 5chan board is called a community. To deliver the expected 5chan imageboard UX, a board should run on a bitsocial node together with 5chan Board Manager. The board manager applies imageboard-style lifecycle rules that bitsocial communities do not enforce by themselves: thread limits, bump limits, archived-thread retention, and purging of author-deleted content.
To create and run a board:
- Follow the Docker Compose flow in the 5chan-board-manager README;
- Create your community and add it to 5chan Board Manager using the commands shown there;
- Keep the manager running so it can apply 5chan board behavior such as thread archiving, bump limits, and retention cleanup.
Once created, anyone can connect to your community using any bitsocial client (such as 5chan) by using the community address. The address is not stored in any central database—bitsocial is a pure peer-to-peer protocol.
Without 5chan Board Manager, a community can still be opened in 5chan, but it will not behave like a conventional imageboard board: old threads will not be archived when they fall past the last page, bump limits will not be enforced, archived threads will not be purged after the retention window, and author-deleted content will not be automatically purged.
Note: Creating boards directly from the 5chan web app is planned for the future (see Future Roadmap).
Submitting Your Board to a Directory
To have your board appear in a directory on the 5chan homepage:
-
Ensure your board meets these requirements:
- Active and well-moderated
- Relevant to the directory category
- 99% uptime (since a board acts like its own server—it's a P2P node)
-
Open a pull request on GitHub by editing the relevant file in the 5chan-directories folder
-
Add your board's entry with:
- Title: in the format
/directoryCode/ - Title, e.g. "/biz/ - Business & Finance"; - Address: the bitsocial community address, whether IPNS key (
12KooW...) or readable crypto address (mydomain.eth); - NSFW status:
trueorfalse, must match the standard classification for the directory code.
- Title: in the format
-
The developers will review your PR and merge it if approved
Note: Even if your board isn't assigned to a directory, users can still access it at any time using its bitsocial community address. Directory assignment only affects visibility on the homepage.
Development
Prerequisites
- Node.js 22.12.0, pinned in
.nvmrc - Corepack enabled once per machine:
corepack enable
Contributor Setup
- Run
nvm install && nvm use - Run
corepack enableonce - Use plain
yarn install,yarn build, andyarn test
Setup
- Clone the repository
- Install dependencies:
yarn install - Start the web client:
yarn start
The dev server normally runs at https://5chan.localhost via Portless, which gives each Bitsocial project a stable, named URL instead of a random port. Portless 0.11 serves this URL through an HTTPS proxy on port 443, so the first yarn start after install or proxy reset may prompt for sudo; accept the prompt so the URL can stay portless. On non-master branches, or when another legacy process is already holding the canonical route, yarn start will automatically use a branch-scoped *.5chan.localhost URL instead of failing. To bypass Portless and use a plain Vite dev server, run PORTLESS=0 yarn start; it will start at http://localhost:3000 and automatically fall forward to the next free port if 3000 is already in use.
For device testing on a USB-connected Android phone (without relying on 5chan.localhost DNS from the device):
yarn start:android-usbstarts Vite bound to127.0.0.1and runsadb reverse, so the phone can load the dev site athttp://localhost:3000. When the server is up, it opens that URL in each connected device’s default browser viaadb. SetANDROID_USB_OPEN_BROWSER=0to skip auto-open. Requires Android platform-tools (adbon yourPATH), USB debugging enabled, and the device showing asdeviceinadb devices.
Scripts
- Web client:
yarn start(https://5chan.localhost) - Web client (Android phone over USB):
yarn start:android-usb(see above) - Electron client (must start web client first):
yarn electron - Electron client (don't delete data):
yarn electron:no-delete-data - Web client and electron client:
yarn electron:start - Web client and electron client (don't delete data):
yarn electron:start:no-delete-data
Challenge Types
Bitsocial communities can require users to solve one or more anti-spam challenges before a publication is accepted. 5chan already supports multiple challenge types, including url/iframe challenges so Mintpass communities can run their iframe flow directly inside a modal. The modal first shows a hostname confirmation (showing only the host for mintpass.org, full URL otherwise), then opens the HTTPS iframe with the current theme, replaces {userAddress} tokens with the signed-in address, and submits automatically when the user finishes.
Build
The Linux/Windows/macOS/Android build scripts are in .github/workflows/release.yml
License
5chan is open-source software (GPL-3.0-or-later) with no owner—anyone can host their own instance on any domain. The operator of any domain is merely hosting the web app and does not own, create, moderate, or control 5chan or any board content, which is stored peer-to-peer and generated by board owners and users.