Skip to content

gethandlebar/handlebar-js

Repository files navigation

Handlebar JavaScript SDK

JavaScript SDKs for implementing Handlebar, the agentic governance runtime.
Supports popular agent frameworks, such as Vercel AI sdk.

About

Project structure

This repository is a monorepo containing installable packages for different JS/TS agent building frameworks.

For each package, check out its specific README.

Frameworks coming soon:

  • langchain (+ for python, not in this repository)
  • crew
  • llamaindex
  • openai
  • ...and your favourite (open an issue requesting it and we'll add it to the roadmap)

How-to

Check out the ./examples/ folder to see the handlebar packages in action.

N.b.: Developer docs are coming soon.

Roadmap

Immediate updates:

  • Other agent frameworks + python frameworks
  • JSON-to-rule conversion
  • Audit logs
  • Agent escalations (e.g. human-in-the-loop)

Handlebar is in early development. We have a lot of functionality planned, but need your feedback on what you need to help you build better agents.

Contributing

We welcome contributions from the community: bug reports, feedback, feature requests Please refer to CONTRIBUTING.md for ways you can help, and guidelines.

Examples

Examples of applying Handlebar to agents can be found in ./examples/. If you want to run one locally:

  1. Clone the repo
  2. Install deps with bun i (or npm i)
  3. Create a .env file in the repo root
  4. Add your own openai api key as OPENAI_API_KEY=<your key>
  5. Run the example you want, e.g. bun run examples/<path-to-example-script>

More comprehensive examples coming soon.

License

These SDKs defined under packages/ are currently licensed under the Apache License 2.0. You’re free to use and distribute it in accordance with that license.

About

JS/TS SDKs for Handlebar governance. Integrate into your favourite agent builder

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published