Skip to content

Conversation

@elijah-potter
Copy link
Collaborator

@elijah-potter elijah-potter commented Jan 15, 2026

Description

See my recent blog post for the full context: https://elijahpotter.dev/articles/imagine-a-weir-marketplace

In short: With Weir making it easier to write rules and otherwise extend Harper, it would be useful to be able to share collections of rules with other users. To that end, I've defined "Weirpack" to be a shareable file containing collections of Harper rules.

I've set up the infrastructure to read and write Weirpacks, including changes to harper-core, harper.js, and an interactive playground available at the /weir/playground endpoint.

I intend to follow up on this PR with improvements to the Weir interpreter and ways to load Weirpacks from disk and over the network.

Demo

image

How Has This Been Tested?

Mostly manually. This PR will remain not be merged until I feel confident in the robustness of the systems.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

@hippietrail
Copy link
Collaborator

Hmm this could mean I could contribute more "opinionated" rules that don't have to default to "on". Will keep it in mind.

@elijah-potter
Copy link
Collaborator Author

Hmm this could mean I could contribute more "opinionated" rules that don't have to default to "on". Will keep it in mind.

Precisely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants