Skip to content

Rename package to react-split-flap-display and refresh README intro#4

Merged
ashtom merged 3 commits into
mainfrom
rename-to-react-split-flap-display
Jun 14, 2026
Merged

Rename package to react-split-flap-display and refresh README intro#4
ashtom merged 3 commits into
mainfrom
rename-to-react-split-flap-display

Conversation

@ashtom

@ashtom ashtom commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rename the package from react-split-flap to react-split-flap-display. The npm name react-split-flap is taken by akira02's separate project, so this avoids the collision. Updates package.json, the README install/import examples, the demo repo URL and localStorage key, and the naming-collision note in docs/comparison-akira02.md.
  • Rewrite the README introduction for a first-time reader: lead with what a split-flap display is (the airport/train departure board) and a runnable example, instead of the project's origin story. Scope the 60fps claim to the canvas/WebGL paths, and document the previously-undocumented alphabet prop in a new section.

References to the third-party akira02/react-split-flap are intentionally left unchanged.

Notes

The GitHub repo itself is still named react-split-flap; renaming it to match will make the demo's new REPO_URL resolve (GitHub auto-redirects the old slug).

🤖 Generated with Claude Code

Rename the package from react-split-flap to react-split-flap-display
(the npm name react-split-flap is taken by akira02's separate project),
updating package.json, README install/import examples, the demo repo URL
and storage key, and the naming-collision note in the comparison doc.

Rewrite the README introduction to orient a first-time reader: lead with
what a split-flap display is and a runnable example instead of the
project's origin story, scope the 60fps claim to the canvas/WebGL paths,
and document the previously-undocumented `alphabet` prop.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 3562ac11e492

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the published npm package to react-split-flap-display to avoid a naming collision, and refreshes the README introduction/docs to be more newcomer-friendly (including documenting the alphabet prop).

Changes:

  • Rename the package from react-split-flap to react-split-flap-display and update install/import examples.
  • Rewrite the README intro and add a new Alphabet section documenting alphabet/DEFAULT_ALPHABET.
  • Update demo repo URL/localStorage key and refresh the naming-collision note in docs/comparison-akira02.md.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
README.md Updates package name references, rewrites intro, and adds alphabet documentation.
package.json Changes published package name to react-split-flap-display.
docs/comparison-akira02.md Updates naming-collision explanation to reflect the new package name.
demo/main.tsx Updates repo link text/URL and demo localStorage key to the new name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +108 to +110
give, so it also sets the sequence of characters seen during a flip. A target
character that is not in the alphabet renders as the pad character (a blank).
Set `alphabet` at the top level to apply it to every row, or per row in a row

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7feaa9d — reworded to "the pad character (padChar, a blank by default)" so it no longer implies the pad is always blank.

Comment thread demo/main.tsx Outdated
- Alphabet section: a non-alphabet character renders as `padChar` (blank by
  default), not always a blank — padChar is configurable.
- Revert the demo REPO_URL/label to the current `ashtom/react-split-flap`
  slug so the link works now and after an eventual repo rename (GitHub
  redirects the old slug).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 053f3133659f

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment on lines +58 to +60
declares `name: "react-split-flap"`). This repo originally shared that name, so
to avoid the collision it publishes as `react-split-flap-display`, signalling the
multi-row board / multi-renderer angle. Other options considered:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed — the note now says the repo "is named react-split-flap-display" rather than "publishes as" (it's still unpublished), and the status row is bumped from the stale 0.1.0 to 0.2.0 to match package.json.

The naming-collision note no longer claims the package "publishes as" the
new name (it is unpublished); it now says it "is named". Also bump the
status row from the stale 0.1.0 to 0.2.0 to match package.json.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: cd669eb2b23a

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@ashtom ashtom merged commit dea2781 into main Jun 14, 2026
1 check passed
@ashtom ashtom deleted the rename-to-react-split-flap-display branch June 14, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants