Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
43 changes: 0 additions & 43 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/code_of_conduct.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/contributing.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/pull_request_template.md

This file was deleted.

98 changes: 0 additions & 98 deletions .github/workflows/build.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ v8.log
package-lock.json
.nyc_output
.kiro

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: "pnpm"
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# shmynamo

Gratefully forked from [dynalite](https://github.com/architect/dynalite). This version only provides an in-memory implementation of dynamo for fast and somewhat accurate testing. See the original repository for caveats around accuracy (ala dynamodb local).

# Goals
1. Modern (typed, esm)
1. Accurate
1. Fast
1. No IO


## Example
```js
import { db, httpHandler } from 'shmynamo';
import mitm from 'mitm';

const store = db.create()
const handler = httpHandler.bind(null, store)

const httpIntercept = mitm();
httpIntercept.on('request', handler);

const dynamoClient = DynamoDBClient();
await dynamoClient.send(new CreateTableCommand({...}))
```
39 changes: 0 additions & 39 deletions cli.js

This file was deleted.

57 changes: 2 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,4 @@
{
"name": "dynalite",
"version": "4.0.0",
"description": "An implementation of Amazon's DynamoDB built on LevelDB",
"homepage": "https://github.com/architect/dynalite",
"repository": {
"type": "git",
"url": "https://github.com/architect/dynalite"
},
"bugs": "https://github.com/architect/dynalite/issues",
"main": "index.js",
"bin": "cli.js",
"scripts": {
"t": "mocha --require should --timeout 10000 test/listTables.js",
"build": "for file in ./db/*.pegjs; do pegjs \"$file\"; done",
"test": "npm run lint && mocha --require should --reporter spec -t $([ $REMOTE ] && echo 30s || echo 4s)",
"coverage": "npx nyc@latest mocha --require should -t 4s",
"lint": "eslint . --fix"
},
"engines": {
"node": ">=20"
},
"author": "Michael Hart <michael.hart.au@gmail.com>",
"license": "Apache-2.0",
"dependencies": {
"async": "^3.2.4",
"big.js": "^6.2.1",
"buffer-crc32": "^0.2.13",
"lazy": "^1.0.11",
"level": "^10.0.0",
"lock": "^1.1.0",
"memory-level": "^3.0.0",
"minimist": "^1.2.8",
"once": "^1.4.0"
},
"devDependencies": {
"@architect/eslint-config": "^3.0.0",
"aws4": "^1.12.0",
"eslint": "^9.35.0",
"eslint-plugin-filenames": "^1.3.2",
"mocha": "^11.7.2",
"pegjs": "^0.10.0",
"should": "^13.2.3"
},
"keywords": [
"aws",
"amazon",
"cloud",
"dynamo",
"dynamodb",
"fake",
"leveldb",
"mock",
"serverless",
"test"
]
"name": "shmynamo",
"packageManager": "yarn@4.9.4"
}
Loading