Docs
Install the CLI, add the patterns you need, and keep them current. You own every line of code sinew gives you.
Install
Install the CLI globally, or run any command through npx.
npm install -g @greatnessinabox/sinew
# or run without installing
npx @greatnessinabox/sinew <command>Commands
sinew init
Set up sinew in your project. Creates a sinew.json with your framework and the path patterns should land in.
sinew initsinew add
Copy a pattern into your project. Files are written to your configured path and existing files are never overwritten without asking. The pattern is recorded in sinew.lock so audit can track it.
sinew add database/connection-poolingsinew list
Browse every available pattern, grouped by category.
sinew listsinew audit
Check your copied patterns against the current registry, and flag anything that has changed upstream or been removed.
sinew auditsinew update
Pull the latest registry version of outdated patterns. New files land in place; files you've changed are staged as .new beside your copy to review and merge.
sinew updateStaying current
Copy-paste usually freezes you at the version you copied. Sinew doesn't. It remembers what it gave you.
sinew add records each pattern in a sinew.lock file (its framework, the CLI version, and a content hash). Run sinew audit anytime to see which copied patterns have drifted from the registry:
$ sinew audit
✓ database/connection-pooling (1.1.0)
↑ auth/sessions (added with 1.1.0, CLI is 1.2.0)
1 outdated of 2 tracked.Run sinew update to pull the latest into outdated patterns. Nothing changes without you, so you keep full ownership of the code while still knowing when an upstream fix lands.