[FEATURE] Library Mode

Open
#27 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
cli

Research direction

Start by reviewing the current supertag-cli structure and the early work on the copilot/add-headless-library-mode fork. Define the library boundary and confirm how the CLI would consume it; done means TypeScript applications can use the core functionality programmatically while the CLI remains based on that library.

Written by the indexing model from the issue text.

Description

enhancement

Note: This is more of a big idea than a feature request. I'd love to use this issue to noodle on the idea more!

Problem Statement

I really love this tool and want to expand my use of it outside of the CLI. Right now, supertag-cli can't be used programmatically within other typescript applications, beyond calling the CLI from a subprocess.

Proposed Solution

Refactor to create a core library that the CLI can then be based on.

Alternatives Considered

Using the cli from a subprocess, which is limited.

Use Case

While I do not have a specific use case in mind at the moment, I think it opens up broader opportunities to use the excellent base that has been created here in other apps.

Example Commands

N/A

Additional Context

I've already had claude, copilot, and amp begin work on this idea on a fork. Really early still!

Are you willing to contribute?

  • I'd be willing to submit a PR for this feature
  • I'd be willing to help test this feature
Dominant language
TypeScript
Stars
49
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jcfischer/supertag-cli

All issues in jcfischer/supertag-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.