{"library":"plywood-base-api","title":"Plywood Base API","description":"Plywood Base API (v0.2.9) provides foundational TypeScript types and interfaces for implementing requesters in the Plywood ecosystem. It defines the contract that all Plywood requesters must conform to, ensuring consistency across different implementations. The library is dependency-light (only requires 'plywood' as a peer) and ships TypeScript declarations. It is released irregularly alongside Plywood changes.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install plywood-base-api"],"cli":null},"imports":["import { PlywoodBaseAPI } from 'plywood-base-api'","import type { RequesterInterface } from 'plywood-base-api'","import { BaseRequester } from 'plywood-base-api'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { BaseRequester } from 'plywood-base-api';\n\nclass MyRequester extends BaseRequester {\n  constructor() {\n    super();\n  }\n\n  async request(query: string): Promise<any> {\n    // Implement your request logic here\n    return { data: 'result' };\n  }\n}\n\nconst requester = new MyRequester();\nrequester.request('SELECT * FROM table').then(console.log);","lang":"typescript","description":"Shows how to subclass BaseRequester to create a custom Plywood requester with a request method.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}