Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boxcars-station

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxcars-station

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Boxcars::Station

This gem provides an engine for the popular boxcars gem. Once installed to your Rails application, you can navigate to /boxcars/station/chat to do Q&A with ActiveRecord using an LLM for translation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem "boxcars-station"

And then execute:

$ bundle

Or install it yourself as:

$ gem install boxcars-station

Configure Permissions and Route

Note - for security, you should probably mount this only for Admins for now since this is early days and we haven't hardened Boxcars to prevent malicious prompt injection. For example, if you use Adminstrate, you could do the following in the routes file:

authenticated :user, ->(u) { u.admin? } do
  mount Boxcars::Station::Engine => "/boxcars/station"
end

Initializer

by default, Boxcars-station is set to read-only, but will consider all models. To limit the scope, create an initializer to configure the settings with something like:

Boxcars::Station.configure do |config|
  config.read_only = false # true by default
  config.active_record_models = [Model1, Model2, ...] # limit to only these models instead of all models
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/BoxcarsAI/boxcars-station. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Boxcars project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 09 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc