{"id":18382552,"url":"https://github.com/dimpu/angular2-loki","last_synced_at":"2025-10-13T09:06:53.745Z","repository":{"id":71413373,"uuid":"71957355","full_name":"dimpu/angular2-loki","owner":"dimpu","description":"Lokijs with localforgage for angualr2, Ionic, NativeScript applications.","archived":false,"fork":false,"pushed_at":"2017-10-15T10:48:01.000Z","size":15,"stargazers_count":1,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T09:06:53.212Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimpu.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":"2016-10-26T02:17:58.000Z","updated_at":"2017-10-15T09:28:38.000Z","dependencies_parsed_at":"2023-02-23T13:45:52.868Z","dependency_job_id":null,"html_url":"https://github.com/dimpu/angular2-loki","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimpu/angular2-loki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangular2-loki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangular2-loki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangular2-loki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangular2-loki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimpu","download_url":"https://codeload.github.com/dimpu/angular2-loki/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimpu%2Fangular2-loki/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014482,"owners_count":26085535,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T01:06:33.336Z","updated_at":"2025-10-13T09:06:53.713Z","avatar_url":"https://github.com/dimpu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular2-loki\n\nLokijs for angular2, Ionic 2, NativeScript with Angualr.\n\n\nHow to use\n```shell\nnpm install angular2-loki\n\n```\n\n\n```ts\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { LokiModule } from './loki/loki.module';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    LokiModule,\n    .....\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n\n```ts \nimport { Component } from '@angular/core';\nimport { LokiService } from 'angular2-loki';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n  constructor(private loki: LokiService) {\n    let db = loki.init('mydb.txt');\n    // db will export lokijs object\n    // full docs at https://rawgit.com/techfort/LokiJS/master/jsdoc/Loki.html\n    let users = db.addCollection('users');\n    users.insert({\n        name: 'Odin',\n        age: 50,\n        address: 'Asgard'\n    });\n\n    console.log(users.findOne({ name: 'Odin' }));\n  }\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpu%2Fangular2-loki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimpu%2Fangular2-loki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimpu%2Fangular2-loki/lists"}