{"id":18498476,"url":"https://github.com/xpodev/jsblog","last_synced_at":"2025-06-20T18:07:58.151Z","repository":{"id":65521115,"uuid":"593885341","full_name":"xpodev/jsblog","owner":"xpodev","description":"A lightweight blog engine written in TypeScript.","archived":false,"fork":false,"pushed_at":"2023-10-18T14:23:10.000Z","size":515,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-08T20:06:10.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xpodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-27T03:53:04.000Z","updated_at":"2023-01-27T03:53:34.000Z","dependencies_parsed_at":"2024-11-27T20:48:25.510Z","dependency_job_id":null,"html_url":"https://github.com/xpodev/jsblog","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.33333333333333337","last_synced_commit":"21eb6bec15b12a10c0e8404f776691e1f5edeb3e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpodev%2Fjsblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpodev%2Fjsblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpodev%2Fjsblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpodev%2Fjsblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xpodev","download_url":"https://codeload.github.com/xpodev/jsblog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076862,"owners_count":22010613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-06T13:40:31.774Z","updated_at":"2025-05-14T05:23:17.415Z","avatar_url":"https://github.com/xpodev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Blog\nA lightweight blog engine written in TypeScript.\n\n## Installation\n**NOTE**: THIS IS NOT PUBLISHED YET SO DON'T EXPECT IT TO WORK!\n\nnpm\n```bash\nnpm install @jsblog/core\n```\nyarn\n```bash\nyarn add @jsblog/core\n```\n\n## Usage\n```js\nconst { Blog } = require('@jsblog/core');\nconst { MongoAdapter } = require('@jsblog/mongodb');\n\nconst adapter = new MongoAdapter({\n  uri: 'mongodb://localhost:27017/jsblog',\n});\nconst blog = new Blog({\n    adapter,\n});\n\nblog.init().then(() =\u003e {\n  blog.createPost({\n    title: 'Hello World',\n    content: 'This is my first post!',\n  });\n});\n```\n\n## Adapters\nThe core package only provides the basic functionality of the blog engine. To use a database, you need to install an adapter. The following adapters are available:\n### MongoDB\n```bash\nnpm install @jsblog/mongodb\n```\n### MySQL\n```bash\nnpm install @jsblog/mysql\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n### Development\n```bash\ngit clone\ncd jsblog\nyarn\nyarn build:dev\n```\n\n### Add new package\nIf you want to add a new package, you can use the `tttt` cli tool. It will create a new package with the correct folder structure and files, also it will add the package to the tsconfig.json file.\n```bash\nyarn global add ./dev\n```\n```bash\ntttt create \u003cpackage-name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpodev%2Fjsblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxpodev%2Fjsblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpodev%2Fjsblog/lists"}