Simple and cute rhythm game, where anyone can create and share charts.
For more information, play, and chart creation, please visit the Falling Nikochan top page: https://nikochan.utcode.net .
- シンプルでかわいい音ゲーです。PC、タブレット、スマートフォンなどのブラウザーで手軽に遊べます。
- さらに、アカウント登録やログイン不要で誰でも譜面を作成でき、SNSなどで譜面IDを共有することで他の人に遊んでもらうことができます。
- 音源としてYouTube埋め込みを利用しています。
遊び方などの説明、プレイ、譜面作成 は、Falling Nikochan トップページからどうぞ: https://nikochan.utcode.net
See CONTRIBUTING.md for the full development setup guide, project structure, conventions, and how to open a pull request.
The code for the backend is in the route/ directory, NOT in the api/ directory.
API Reference (Scalar UI) is available at https://nikochan.utcode.net/api, and OpenAPI schema can be downloaded from https://nikochan.utcode.net/api/openapi.json
The Lua script API used for chart editing is available in a separate repository (na-trium-144/fn-commands)
This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later), with the exception of the assets located in the frontend/public/assets/ directory.
The full text of the AGPL-3.0 license can be found in the LICENSE file.
The use of Falling Nikochan's API and embedding it in an iframe are exempt from AGPL-3.0-or-later and can be done freely. The OpenAPI Specification of the API (/api/openapi.json) is licensed under the MIT License.
The assets in frontend/public/assets/ (including images, sounds, etc.) are licensed under the Creative Commons Attribution 4.0 International (CC-BY-4.0) license.
The full text of the CC-BY-4.0 license for assets can be found in the frontend/public/assets/LICENSE file.
Copyright (c) 2024-2026 @na-trium-144 (and contributors)
Note: ver13.22 is the last version licensed under MIT License.
[Form] 動作が重いので軽量化機能をつけてください
https://github.com/na-trium-144/falling-nikochan/issues/1512
Labels: 없음
Thank you for your interest in contributing!
Please run the following checks:
Format — run Prettier on all code:
pnpm run format
Lint — verify there are no type or lint errors (warnings are acceptable):
pnpm run lint
Test — if you have changed chart/ or backend code, and MongoDB is available:
pnpm run test
pnpm run test)localhost:27017
nikochan.docker run --rm -p 27017:27017 -d mongodb/mongodb-community-server:latest
or equivalently:
pnpm run mongo-docker
Create a .env file in the repository root with the following contents:
MONGODB_URI="mongodb://localhost:27017"
BACKEND_PREFIX="http://localhost:8787"
API_ENV="development"
API_NO_RATELIMIT="1"
Alternatively, if you are only working on the frontend, you can access all public charts with:
BACKEND_PREFIX="https://nikochan.utcode.net"
pnpm install
Adding External Libraries
pnpm add <package> --filter <package_dir>) rather than at the workspace root, unless the dependency is truly used by all packages.
chart/)The chart/ directory contains chart data schemas and conversion logic shared between the frontend and backend.
The frontend does not import .ts files from chart/ directly; it uses the compiled .js files.
After modifying files in chart/, run:
pnpm run t
To watch for changes and recompile automatically during development:
pnpm run cdev
The compiled files are also regenerated automatically when building the frontend or before running tests.
Conventions
Valibot schemas are defined as functions (e.g., export const FooSchema = () => v.object(...)). This is intentional: lazy evaluation avoids circular reference errors.
For frequently used data types, OpenAPI schemas are also defined simultaneously to simplify OpenAPI documentation and registered in docSchema.ts.
Making changes to the chart data format (chart/legacy/) involves a complicated procedure. It is recommended that you do not touch it unless you have a thorough understanding of Falling Nikochan's internal structure.
chart/src/legacy/
chart/src/index.ts so it can import the new file in legacy/.chart/src/chart.tsroute/src/api/chart.ts,
route/src/api/chartFile.ts, newChartFile.ts and seqPreview.ts to support the last 2 versions, including the OpenAPI documentation (describeRoute).currentChartVer satisfies 15; indicates that not only that statement but also the surrounding code needs to be updated when the version changes.fn-commands libraryStart the Next.js development server (hot-reload) at http://localhost:3000/ja or /en:
pnpm run ndev
http://localhost:3000/ returns 404. Always access /ja or /en.
To build and export the static HTML (to frontend/out/):
pnpm run nbuild
Convention
@/... path alias resolves to app/[locale]/..js, .jsx) are mixed in the codebase. All work fine; new code can use any style.import IconName from "@icon-park/react/lib/icons/IconName";
app/[locale]/globals.cssmain-wide: instead of standard md: or lg:.styles/utilities.css