When to use Spools
Spools is for teams that want a CRM shaped around their work and build software with coding agents or TypeScript.
Choose Spools when#
- You want your agents to build it. They write the part that is yours, on sign-in, data, security and email that are already built.
- Your objects aren't the usual ones. You track jobs, sites, policies, or placements, and you want them to be first-class records with their own pipelines.
- You want the data in your own database. Records are ordinary tables in your Postgres, which your other software can read.
- The CRM has to do something particular. Winning a deal should open a project, or a new contact should be checked against another system. Hooks and handlers are plain TypeScript in your repository.
- You have already chosen your services. You use a certain sign-in provider, mail provider, or cloud, and the CRM should use them too.
- You want agents working on records. The assistant and your Swirls workflows go through the same checks, hooks, and timeline as your team.
- Some records are not for everyone. A role can be denied an object or left to read it, and record scopes keep each branch to its own records. The server enforces both.
- The same feature goes into several CRMs. Write it once as a module: its objects, code, tables and panels, listed in each Spool that uses it.
- You build CRMs for clients. Each client's CRM is a small repository: a config, a file of services, and whatever is theirs alone. The framework updates as a package.
Choose something else when#
- Nobody on the team works with code or coding agents. Views, filters, and reports can be changed in the app, while objects, fields, and services are changed in files. A hosted CRM is a better fit.
- You need a marketplace of plugins today. Spools has extension points, modules and a handful of adapters. It does not have a catalog of third-party apps.
- You need a telephone dialer, quoting, or billing. None of these is built in.
- You need permissions per field or per action. A role is denied a whole object or reads it, and a record scope covers every record of a group. Nothing says who may see one field or press one button. With neither set up, everyone on the access list sees and changes every record.
- You need a ready-made portal for customers. Spools has no sign-in or pages for people who are not teammates. You can build endpoints for them from small helpers, and the checks are yours to write.
- You need a stable API today. Spools is in its 0.x releases, and minor versions may include breaking changes.
What you need to run one#
| Runtime | Bun 1.4 or newer, in a container, on a VM, or on Vercel |
| Database | Postgres 15 or newer (tested on 17) |
| Sign-in | Clerk, or Better Auth in your own database |
| Optional | A mail provider, a place for files, a key for the vault, a Swirls project |
Spools is written with TanStack Start and Effect. You can configure a Spool and write hooks and pages without knowing either. You need Effect to write an adapter or to work on the framework.
Compared with a template#
Spools began as a template you copied and merged updates into. The framework is now a package. Your repository holds your own files and a version number, so you never merge the framework.