The Reatom source registry

Good patterns.
Your source code.

Small, tested building blocks for Reatom. Add the pieces you need to your project, read every line, and adapt them as you go.

TypeScript source · MIT licensed · Distributed with jsrepo

your-project / terminal

# Start with the registry

npx jsrepo init github/reatom/reusables

# Add a little history

npx jsrepo add withHistory

Source added. Ready to make it yours.

The collection

Find your next building block.

15 reusables, ready to adapt

A few things to know

Copy it.
Understand it.
Make it yours.

Reusables live in your repository. You decide how they evolve.

Read the jsrepo docs
How does this work?

jsrepo copies TypeScript source into your project and resolves the files it depends on. You own the code and can change it to fit your application. It can also help you review and pull in upstream updates.

Do I have to use jsrepo?

No. Open any reusable to read its docs, examples, and source. Copy the files by hand if you prefer.

Can I include tests and examples?

Yes. Add --with-tests, --with-docs, or --with-examples to your add command. For example, npx jsrepo add withHistory --with-tests includes its tests and the shared Reatom test harness.

What makes a good reusable?

A focused pattern with a clear purpose, readable source, and tests. Integrations can have third-party dependencies. The source should be small enough for someone to understand and adapt.

Can I contribute?

Yes. Read the contribution guide and open a pull request with your implementation, documentation, example, and tests.