paper-shaders: breaking changes ship under patch versions, and publishing is meant to half-fail
Zero-dependency canvas shaders that can be installed from npm or designed in Paper
At a glance
- What is it?
- A set of animated canvas shaders published as two zero-dependency packages, one vanilla and one for React, that a designer tool can also emit for you. The install instructions tell you to pin your dependency because breaking changes arrive in patch releases, and the release script is built to tolerate each package failing independently.
- Who is it for?
- Use it if you want an animated background or a texture masked behind text and you would rather not write the graphics code, and if you are willing to pin your dependency and upgrade on purpose. That willingness is the whole decision, and the project is direct about why: breaking changes ship under patch versions, so an unpinned range will eventually move under you.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- paper-design/shaders4,023 ★ · +545
| Repository | 2026-09-24 | 2026-11-23 |
|---|---|---|
| paper-design/shaders | 3.5k | 4k |
545 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The install block tells you to pin because patches break
The third line of the getting-started block is a comment, and it is the most important thing in the file:
// Please pin your dependency – we will ship breaking changes under 0.0.x versioningSo the packages are on a 0.0.x line, and within that line a patch release may change the interface. For a consumer that means the usual caret range, which admits any 0.0.x patch, is not safe here, and an unpinned install will eventually fail to build or, worse, build differently. The warning is in the installation snippet rather than in a stability section, which is the right place for it, and it is worth more than a compatibility table would have been. The cost of that policy falls on everyone who installs it, which is why the guidance to pin is not optional politeness.
The release script is designed for a run where some packages fail
The publishing instructions are three steps and the third one contains the surprise:
> You can do this even if you just bumped one package version. The others will fail to publish and continue.
So a publish run is expected to be partially unsuccessful. Each package publishes independently, a version that already exists on the registry is treated as an outcome rather than an error, and the run continues past it. That is a defensible choice for a monorepo where one component's release should not wait on another's, and it is also a design in which a genuine failure looks identical to a version collision unless you read the output carefully. Two dry-run variants are wired up alongside it, one for the whole set and one for a canary, and both run the same clean and build steps first, so a dry run exercises the build rather than skipping it.
The repository builds with Bun and asks consumers to use npm
The toolchain is Bun, and it is pinned rather than floated: a version file at the root names the exact release, the lock file is Bun's, and every build, publish and dev script is invoked through it. The workspace filter syntax used for the documentation dev server is Bun's own rather than a package manager's. What a consumer sees is the opposite convention, since the install lines are npm, one for React and one for vanilla. That is unremarkable in practice, because a package published to a registry is installed by whatever the consumer's project already uses, but it does mean the build environment and the documented install environment are two different tools with two different lock formats. The root package is private and carries version 0.0.0, since it exists to hold the workspace configuration rather than to be published.
Zero dependency describes the install, not the repository
The headline claim is that these are zero-dependency shaders, and the claim is about the right thing: what a consumer installs. The readme's own framing is that they are meant to be used on websites to add texture as backgrounds or masked with shapes and text, animated or still, which is a use case where every transitive dependency is a liability. Behind that, the repository's development dependencies number eleven: bundler, a file watcher, a task runner for running scripts in sequence and in parallel, a glob library, two formatters including a plugin that sorts utility classes, a directory cleaner, the TypeScript compiler, and type definitions for the runtime. That is a normal, unremarkable toolchain for a graphics library with a documentation site. The distinction is worth keeping straight, because zero dependency is a promise about the artefact and not about the project.
The bundler sits a year and a half behind everything else in the list
The development dependency list is uniformly recent except for one entry. The glob library is on its eleventh major line, the directory cleaner on its sixth, the formatters on their third and fourth majors, the compiler on version 5.6, the watcher on 3.1. The bundler is on 0.24. That one package is behind its siblings by roughly a year and a half in the same block, and it is the one that produces the artefact every consumer installs. Nothing in the documentation says why, and there is no comment beside it. The risk is specific rather than general: a bundler left behind tends to keep working while missing newer syntax and newer output targets, so the failure mode is a shader that will not build on a current toolchain rather than an obvious breakage today.
A patch file for a pinned documentation dependency is committed
The package file carries a patched dependency table with one entry, a specific version of a parameter-tweaking library pinned to a patch file inside a patches directory in the tree. That library is the kind used to build interactive controls, which is what the documentation site's interactive examples need in order to let someone drag a slider and watch a shader respond. So the documentation depends on a patched build of a third-party package at a fixed version, and the patch travels with the repository. Nothing is wrong with that. It is worth knowing because it means the documentation site is not built from published packages alone, and because a patch tied to one version stops applying the moment that version moves, which is another reason the lock file is load-bearing.
Using it needs no credit, redistributing it does
The licence section is unusually explicit, and the distinction it draws is easy to miss:
> You can use Paper Shaders in commercial websites, apps, games, videos, prototypes, internal tools, and other end products without visible attribution.
Then the condition: if you redistribute the code as part of another shader library, plugin or tool, please preserve the included licence and notice files, and visible credit is appreciated rather than required. So using the output costs nothing, and shipping the code onward costs file preservation. That is the normal shape of a permissive licence, stated in the terms a designer or an agency will actually be asking about. The repository holds both of those files, the copyright line names a company rather than an individual, and the section heading above them appears twice in the file, with a general licence-and-use heading immediately followed by the licence heading itself.
Two front-ends produce the same artefact
The stated goal is to give designers a visual way to use these shaders in their designs, and the second goal is that what you make exports as lightweight code working in any codebase. The React example carries a closing comment that names both routes in one line: the settings can be configured in code or designed in the tool. So the same artefact is authored two ways, by writing props or by adjusting controls in a visual editor, and the code is the interchange format rather than a byproduct. Two packages ship today, one vanilla and one for React, and the framework support section states the policy for everything else in a single sentence: Vue and others, with an intent to accept community pull requests in the future. There are no release tags to inspect, so the changelog file is the version history.
Editorial conclusion
Use it if you want an animated background or a texture masked behind text and you would rather not write the graphics code, and if you are willing to pin your dependency and upgrade on purpose. That willingness is the whole decision, and the project is direct about why: breaking changes ship under patch versions, so an unpinned range will eventually move under you. Three checks before you commit. The versioning is manual, bumped by hand across two packages, with no release tags to fall back on, so your lockfile is the only record of what you are running. The two packages are separate dependencies, so a design that reaches for both is two upgrades rather than one. And read the licence wording closely, because it grants unrestricted commercial use with no credit required while asking you to preserve two files if you redistribute the code itself, which are different obligations for different things you might do with it.
Frequently asked questions
How do I install Paper Shaders?
Two packages, one for vanilla JavaScript and one for React, both installed from npm. The install block also asks you to pin your dependency, because the project states it will ship breaking changes under 0.0.x versioning, so an unpinned range can move under you.
What exactly are these shaders used for?
They are animated HTML canvas effects intended for websites, used to add texture as backgrounds or masked behind shapes and text. They can be animated or static, the settings are passed as component props, and the same settings can be produced by a visual design tool instead of being written by hand.
Do I need to credit Paper Shaders?
Not if you use it. The licence section states you can use it in commercial websites, apps, games, videos, prototypes and internal tools without visible attribution. If you redistribute the code as part of another shader library, plugin or tool, you are asked to preserve the included licence and notice files, and visible credit is described as appreciated.
Are Paper Shaders React-only?
No. There is a vanilla JavaScript package and a React package, and the framework support section says Vue and others are an intent to accept community pull requests in the future. The project's own build and documentation tooling uses Bun with a pinned runtime version, while the install instructions use npm.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/paper-design-shaders)Star history chart for your README
[](https://hysenlabs.com/projects/paper-design-shaders)Was this useful?