Documentation / Getting started

Build with optr.

Set up the workspace, explore the dashboard and learn which interfaces are available today.

Availability

The website, configured OAuth sign-in, PostgreSQL project and release records, administrative audit history and monitoring API are implemented. Production licensing and private software delivery are not available. Do not use unfinished services for production secrets or customer data.

Local development

The current website lives in apps/site. Run these commands from the repository root with Node.js and npm installed.

shell
cd apps/site
npm install
npm run dev -- --host 127.0.0.1 --port 3000 --strictPort

Open http://127.0.0.1:3000. To test the Rust service, open a separate terminal at the repository root with a working Rust toolchain.

shell
cargo run -p optr-api

PostgreSQL and Redis have Docker Compose definitions. Copy the root environment template to .env and replace placeholder values before starting them. PostgreSQL backs configured signed-in workspaces. Redis integration is in development.

shell
docker compose up -d
docker compose ps

Developer accounts

Sign in using Google, Discord, or an existing email/password test account. Sign-in is available only when the deployment has the corresponding provider credentials and a valid session configuration.

Environment variablePurpose
OPTR_APP_ORIGINCanonical website origin
OPTR_SESSION_SECRETServer session secret, at least 32 characters
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRETGoogle OAuth credentials
DISCORD_CLIENT_ID / DISCORD_CLIENT_SECRETDiscord OAuth credentials

Keep credentials in server environment variables. Never commit them or expose them to browser code. The configured callbacks are /auth/google and /auth/discord on the application origin. The current dashboard session identifies a provider account; persistent organizations and customer licensing are not implemented.

Projects & releases

Open /dashboard without signing in to explore the guest workspace, or sign in to use your persistent workspace when PostgreSQL and the server bridge are configured. Create a named project draft, optionally add notes, and create release drafts for planning. Drafts can be searched, edited or deleted. Guest drafts use temporary tab storage and are separate from signed-in drafts. Configured signed-in workspaces use PostgreSQL; unconfigured workspaces use browser-local drafts.

Browser storage is not a security boundary. Clearing site data or switching devices can remove access to drafts. A release draft is not a published artifact.

Open project drafts

Public API & SDKs

The public API origin is https://optr.dev. The Docker web server forwards only GET /api/v1/health and GET /api/v1/ready to the loopback Rust API. Readiness includes PostgreSQL. Both endpoints return JSON and require no credentials.

shell
curl --fail-with-body https://optr.dev/api/v1/health
curl --fail-with-body https://optr.dev/api/v1/ready

HTTP 200 indicates healthy service; HTTP 503 indicates unavailable or not ready. The service version depends on the running build. The private workspace API is not publicly exposed.

JavaScript / Node.js

Download optr.mjs beside your application. Run the following module with Node.js 20 or newer.

javascript
import { OptrClient, OptrError } from "./optr.mjs";
const optr = new OptrClient({ baseUrl: "https://optr.dev" });
try {
  console.log(await optr.health());
  console.log(await optr.ready());
} catch (error) {
  console.error(error instanceof OptrError ? error.message : "Unexpected error");
}

Python

Download optr.py beside your script. Python 3.10+ requires no third-party packages.

python
from optr import OptrClient, OptrError
optr = OptrClient("https://optr.dev")
try:
    print(optr.health())
    print(optr.ready())
except OptrError as exc:
    print(exc)

The SDK currently supports monitoring. License activation, customer sessions and artifact endpoints are in development.

Feature availability

Current feature status.

Website and documentationAvailable
Google / Discord sign-inRequires configuration
Guest dashboardAvailable without sign-in
Project and release draftsPostgreSQL / guest tab
Monitoring API and SDKsImplemented
Licenses, sessions and customer portalIn development
Private builds and artifact deliveryIn development
Optimization and licensing SDKsIn development
Commerce, rewards and resellersIn development
Migration, telemetry and AIIn development

Troubleshooting

Sign-in unavailable

Verify the application origin, session secret and provider configuration on the server. Check the OAuth callback registration.

Health request fails

Make sure the Rust process is running and check the configured bind address. Fix toolchain errors before retrying.

Drafts are missing

Check the browser profile and signed-in account. Guest drafts are temporary and do not transfer to an account. Local drafts may disappear when browser data is cleared.

A dashboard section is unavailable

Sections in development require backend implementation before they can accept live data or perform actions.