MIT
pnpm run buildpnpm run formatpnpm run lintNote: All API servers listen on the port specified by the PORT environment variable. If PORT is not set, they default to port 3000. Use process.env.PORT for proper operation in most hosting environments.
pnpm run start:api-expressThis will start the Express API workspace. The server listens on http://localhost:3000; send POST requests to /api/v1/parse to test the parser.
pnpm run start:api-fastifyThis will start the Fastify API workspace. The server listens on http://localhost:3000; send POST requests to /api/v1/parse with Content-Type: text/plain to test the parser.
pnpm run start:api-hapiThis will start the Hapi API workspace. The server listens on http://localhost:3000; send POST requests to /api/v1/parse to test the parser.
pnpm run start:api-honoThis will start the Hono API workspace. The server listens on http://localhost:3000; send POST requests to this endpoint to test the parser.
pnpm run start:api-koaThis will start the Koa API workspace. The server listens on http://localhost:3000; send POST requests to /api/v1/parse to test the parser.
pnpm run start:api-nestjsThis will start the NestJS API workspace. The server listens on http://localhost:3000; send POST requests to /api/v1/parse to test the parser.
pnpm run start:cliThis will start the CLI workspace. In TTY mode, enter input and press Ctrl+D to finish.
- All commands should be run from the repository root.
- Ensure dependencies are installed with
pnpm installbefore running any commands.
To send test requests to the APIs using the REST Client extension:
- Install the REST Client extension in VS Code.
- Open any
.restfile in thetestdata/directory. - Click the "Send Request" button above a request to execute it.
- The response will appear in a new VS Code pane.
The .rest files contain sample requests for all supported APIs.