{"id":16085672,"url":"https://github.com/aldotestino/notion-openapi","last_synced_at":"2026-01-20T09:33:23.407Z","repository":{"id":257815368,"uuid":"869528409","full_name":"aldotestino/notion-openapi","owner":"aldotestino","description":"Create a Notion database from your OpenAPI document. Automatically map API endpoints, methods, and parameters into a structured Notion DB.","archived":false,"fork":false,"pushed_at":"2024-10-08T18:54:44.000Z","size":157,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T00:45:30.510Z","etag":null,"topics":["api","documentation","generator","notion","openapi","reference","tool"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aldotestino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-08T12:56:12.000Z","updated_at":"2024-12-27T04:39:19.000Z","dependencies_parsed_at":"2024-10-14T01:16:39.463Z","dependency_job_id":null,"html_url":"https://github.com/aldotestino/notion-openapi","commit_stats":null,"previous_names":["aldotestino/notion-openapi"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/aldotestino/notion-openapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldotestino%2Fnotion-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldotestino%2Fnotion-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldotestino%2Fnotion-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldotestino%2Fnotion-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aldotestino","download_url":"https://codeload.github.com/aldotestino/notion-openapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldotestino%2Fnotion-openapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28600604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T08:51:33.170Z","status":"ssl_error","status_checked_at":"2026-01-20T08:51:10.855Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","documentation","generator","notion","openapi","reference","tool"],"created_at":"2024-10-09T13:08:34.537Z","updated_at":"2026-01-20T09:33:21.524Z","avatar_url":"https://github.com/aldotestino.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notion-openapi\n\nA utility to create Notion databases from an OpenAPI document. This package automatically generates a structured Notion database, mapping your API endpoints, methods, parameters, and descriptions directly from the OpenAPI spec. Perfect for documenting your API or sharing it with teams in a collaborative, visual format.\n\nFeatures include:\n- Supports OpenAPI 3.x\n- Easy authentication with Notion API\n- Auto-mapping of endpoints, methods, and parameters to Notion database properties\n\n## How to use\n\n1. Create a page on Notion\n2. Create a [Notion Integration](https://www.notion.so/profile/integrations) (leaving the default permissions is fine)\n3. Get the Token associated with the integration\n4. Connect the page to the integration\n5. Install `notion-openapi`\n    ```bash\n    npm install notion-openapi\n    # or\n    yarn install notion-openapi\n    # or\n    pnpm install notion-openapi\n    # or\n    bun add notion-openapi\n    ```\n6. Write some code\n    ```ts\n    import { NotionOpenapi, getOpenapiFromURL } from 'notion-openapi';\n\n    async function main() {\n      try {\n        const openapiUrl = ''; // URL of the openapi v3 JSON\n        const notionToken = ''; // notion token of the integration\n        const notionPageURL = ''; // URL of the notion page\n\n        // Uses the same options of axios (headers for auth...)\n        const openapi = await getOpenapiFromURL(url);\n\n        // Uses the same options of @notionhq/client\n        const notionOpenapi = new NotionOpenapi({ \n          auth: notionToken\n        });\n\n        const insertedEndpoints = await notionOpenapi.createDBFromOpeanpi({\n          openapi,\n          pageURL: notionPageURL\n        });\n\n        console.log('Inserted endpoints:', insertedEndpoints);\n\n      } catch (error) {\n        console.error(error);\n      }\n    }\n\n    main();\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldotestino%2Fnotion-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faldotestino%2Fnotion-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldotestino%2Fnotion-openapi/lists"}