Packages

Unified API Gateway for North Shore AI services - handles routing, authentication, rate limiting, and circuit breaking

Current section

Files

Jump to
Raw

mix.exs

defmodule NsaiGateway.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/North-Shore-AI/nsai_gateway"
def project do
[
app: :nsai_gateway,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "NsaiGateway",
source_url: @source_url,
homepage_url: @source_url,
description: description(),
package: package(),
docs: docs()
]
end
def version, do: @version
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {NsaiGateway.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Core dependencies
{:plug, "~> 1.14"},
{:plug_cowboy, "~> 2.6"},
{:req, "~> 0.4"},
{:joken, "~> 2.6"},
{:hammer, "~> 6.1"},
{:jason, "~> 1.4"},
{:telemetry, "~> 1.2"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
# Circuit breaker and resilience
{:fuse, "~> 2.5"},
# Development and testing
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp description do
"Unified API Gateway for North Shore AI services - handles routing, authentication, rate limiting, and circuit breaking"
end
defp package do
[
name: "nsai_gateway",
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib mix.exs README.md LICENSE assets)
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
assets: %{"assets" => "assets"},
logo: "assets/nsai_gateway.svg",
extras: ["README.md", "LICENSE"]
]
end
end