Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
To install all of our protobuf, rust, and go toolchains install mise, then run:
mise trust
mise install
Recommended: Add mise shell integration so that the mise environment will automatically activate when you are this repo, giving you access to all executables and environment variables. Otherwise you will need will need to either manually mise activate [SHELL] or run all commands with the mise exec prefix.
We use pkg-config in the build process.
One way to install it is through brew:
brew install pkgconf
Lefthook gives us an easy way to declare pre-commit hooks (as well as other git hooks) so you're not pushing up PRs that immediately fail in CI.
You can either install it through mise (above, recommended) or brew:
brew install lefthook
Once it's installed, run lefthook install to install the git hooks, which will automatically run
when you did git commit. You can also run the hooks manually with lefthook run pre-commit.
After modifying the proto files, you can generate the Go files with the following command:
make
Our SO implementation uses ZMQ to listen for block updates from bitcoind. Install it with:
brew install zeromq
Note: whatever bitcoind you are running will also need to have been compiled with ZMQ. The default installation via brew has ZMQ, but binaries downloaded from the bitcoin core website do not.
brew install bitcoin
We use atlas to manage our database migrations. Install via mise install.
To make a migration, follow these steps:
mise gen-ent./scripts/gen-migration.sh <name>:run-everything.sh, the migration will be automatically
applied to each operator's database. But if you want to apply a migration manually, you can run (e.g. DB name is sparkoperator_0):atlas migrate apply --dir "file://so/ent/migrate/migrations" --url "postgresql://127.0.0.1:5432/sparkoperator_0?sslmode=disable"
If you are adding atlas migrations for the first time to an existing DB, you will need to run the migration command with the --baseline flag.
atlas migrate apply --dir "file://so/ent/migrate/migrations" --url "postgresql://127.0.0.1:5432/sparkoperator_0?sslmode=disable" --baseline 20250228224813
If spark_frost.udl file has issue with VSCode, you can add the following to your settings.json file:
"files.associations": {
"spark_frost.udl": "plaintext"
}
Golang linting uses golangci-lint, installed with mise install.
To run the linters, use either of
mise lint
golangci-lint run
We use Zap for logging in the SO. Here are some best practices:
fmt-style formatting), called "Sugared" and "Unsugared" respectively. Since we index
structured attribute keys in our logging backend, they should be reserved for common attributes
that we want searchable. For example:
error: we use this for logging all errors (through zap.Error).identity_public_key: we use this for logging the identity of the public key that is making
a particular request.
It should not be used for logging one-off attributes that don't have a clear purpose or common
meaning across the codebase, i.e. count, value, etc.logger.Sugar().Infof(...) for dynamic runtime values.zap.Logger and zap.SugaredLogger is easy and cheap. Use Logger.Sugar()
to go from zap.Logger to zap.SugaredLogger, and SugaredLogger.Desugar() to go the other way.zap.Logger injected into the Context with common fields
already present. This includes all requests, tasks, and most other major components (i.e.
chainwatcher). Use logging.GetLoggerFromContext to get the logger instance from the context. logger := logging.GetLoggerFromContext(ctx)
...
logger.With(zap.Error(err)).Sugar().Infof("Failed to broadcast node tx for node %s", node.ID)
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
Generated from the plugin's indexed repository (revofusion/spark2) — no native marketplace selected
npx claudepluginhub p/revofusion-spark