i tried reading some tutorials about datalog (linked from the datascript repo) and there's not much info about how to insert new records. is :db/id required for all new records? do i need to use decremented negative numbers when adding multiple maps in a single call?
There are many ways to add new records (maybe too many ways). You don't need to use :db/id, unless you want to have related datoms that refer to each other, so you use negative numbers (or string) for temp entity ids. If your records do not refer to each other, just use map or vector.
BTW, when we release 1.0. there will be a companion book, Datalevin: the Definite Guide at http://datalevin.org Web site, Stay tuned.
a book sounds great
having a definitive source for the accepted syntax would help newcomers like me, especially when this has small divergences from datomic and datascript
Are there any differences between datomic and datalevin wrt insertions of triples, or is it all the same?
There are some slight differences. Datalevin supports large values, doesn't have a URI type, no partition, schema/data type is not mandatory, etc. Syntax wise, it's pretty much the same.