GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [feature]: Set up ob-api with a generic OpenBoxes client by deeonwuli · Pull Request #1 · EyeSeeTea/ob-api

Conversation

@deeonwuli

@deeonwuli deeonwuli commented Nov 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

📌 References

  • Task: ob-api layer

📝 Implementation

Sets up the ob-api library and adds a generic OpenBoxes API client.

  • Project setup: TypeScript, Vite, tests, the EST AI skeleton and the OpenSpec commands.
  • OBApi: a generic client with get, post, put, patch and delete. The API is close to d2-api's D2ApiGeneric.
  • Session: lazy login on the first request, a public login(locationId?), and one retry on 401. The location is kept only after a successful login.
  • HttpError { request, response? } for failed requests.
  • FetchHttpClientRepository: native fetch, Node and browser, no runtime dependencies. It keeps the session cookie in Node.
  • skipApiPrefix sends a request to a path outside apiPath. FormData, Blob, URLSearchParams and binary bodies are sent as they are.
  • Absent values use Maybe.

OpenSpec: generic-ob-api-client and skip-api-prefix-and-form-data (archived, specs synced).

📹 Screenshots/Screen capture

N/A (library, no UI).

🔥 Notes to the tester

  1. Run yarn install.
  2. Run the lint, type-check and test commands in DEVELOPMENT.md.
  3. Optional: create an OBApi against an OpenBoxes server and call api.get("/products").

#1amt6mz6vf8

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
deeonwuli added 14 commits October 30, 2026 08:46
@deeonwuli
chore: initial project setup
6e283d6
@deeonwuli
chore: add EST AI development skeleton
7cf09fa
@deeonwuli
chore: add OpenSpec commands
561ba23
@deeonwuli
chore(openspec): quote design rule in config
1b89a4f
@deeonwuli
docs(openspec): propose generic-ob-api-client change
c7dd938
@deeonwuli
feat: add generic OpenBoxes API client
ca67ce9
@deeonwuli
fix: keep the location only after a successful login
6be13d4
@deeonwuli
fix(openspec): move project-wide rules into context
94e9aa6
@deeonwuli
docs(openspec): archive generic-ob-api-client and sync specs
3b29dca
@deeonwuli
fix: support paths outside the API path and form data bodies
bcfce07
@deeonwuli
docs(openspec): record the live check for skip-api-prefix-and-form-data
9ea9390
@deeonwuli
docs(openspec): archive skip-api-prefix-and-form-data and sync specs
5087987
@deeonwuli
refactor(session): drop the duplicate location default in login
6aa61b3
@deeonwuli
refactor: use Maybe for absent values
9fa5f17
@deeonwuli deeonwuli mentioned this pull request Nov 13, 2026
[feature]: Add typed endpoints #2
Open
@deeonwuli deeonwuli changed the title feat: set up ob-api with a generic OpenBoxes client feat: Set up ob-api with a generic OpenBoxes client Nov 18, 2026
@deeonwuli deeonwuli changed the title feat: Set up ob-api with a generic OpenBoxes client [feat]: Set up ob-api with a generic OpenBoxes client Nov 18, 2026
@deeonwuli
deeonwuli marked this pull request as ready for review November 19, 2026 07:03
@deeonwuli deeonwuli changed the title [feat]: Set up ob-api with a generic OpenBoxes client [feature]: Set up ob-api with a generic OpenBoxes client Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@deeonwuli
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.